This repository is a pnpm workspace with four packages:
sdk: framework-agnostic publishable may-db SDK (@may-db/core)react: React bindings for the SDK (@may-db/react)example: living spreadsheet app that consumes the SDKexample-tiny: minimal runnable app for the SDK README snippet
pnpm installpnpm dev # run example app
pnpm build # build sdk, react, then example
pnpm lint # lint sdk, react, and example
pnpm preview # preview example buildpnpm --filter ./sdk build
pnpm --filter ./sdk lint
pnpm --filter ./react build
pnpm --filter ./react lint
pnpm --filter ./example dev
pnpm --filter ./example build
pnpm --filter ./example-tiny dev
pnpm --filter ./example-tiny buildexampleresolves@may-db/coreto../sdk/src/index.tsand@may-db/reactto../react/src/index.tsin Vite/TypeScript so both packages can evolve together without manual prebuilds.- The SDK publish artifact is produced from
sdk/distviapnpm --filter ./sdk build. - The React publish artifact is produced from
react/distviapnpm --filter ./react build. - Current tested Matrix dependency pair for
@may-db/core:matrix-crdt@0.2.1-alpha.1withmatrix-js-sdk@40.2.0.