This example encapsulates the BlockSuite editor and doc collection in React, demonstrating document management within an IndexedDB database.
Note that here we persist a doc collection with multiple documents in IndexedDB. If you only need to save single document, please checkout the minimal vanilla-indexeddb example.
git clone https://github.com/toeverything/blocksuite.git
cd blocksuite/examples
pnpm install
pnpm dev react-indexeddb
This project is created using the pnpm create vite
cli.