Editor: - "/" opens a filterable block menu (text, headings, lists, quote, code, divider, and image or file upload when the host can store files). - Selecting text shows a formatting toolbar (bold, italic, strike, code, link) and, for anyone who may comment, a Comment button. - "@" finds people in the page's workspace; the mention node is always in the schema so documents with mentions open in every client. - The popups are plain DOM in the design system's slash-menu style, so the framework-free mobile bridge keeps building and can use them. - Menu words come from the host; the web app passes English or Polish. Inline comments (basic): commenters cannot edit the document, so a comment's anchor is a pair of Yjs relative positions stored with the comment rather than a mark in the text. Highlights follow local edits by mapping and are re-resolved when comments change or remote edits arrive. Pages get a comments panel (side column, or a bottom sheet on narrow screens). Authors and space admins can delete comments. Server: comments collection and endpoints, and a people lookup any workspace member may use for mentions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docwell-db
The official PocketBase binary (pinned in Dockerfile) with Docwell's schema migrations.
pb_migrations/holds JS migrations, applied in filename order at startup.pb_hooks/holds optional JS hooks (keep these minimal).- All collection API rules are
null, so only superusers have access. Never expose this service publicly; only docwell-server talks to it.
Run locally
Download PocketBase v0.40.6 for your OS into Database/bin/, then:
./bin/pocketbase migrate up --dir ./pb_data --migrationsDir ./pb_migrations
./bin/pocketbase superuser upsert admin@docwell.test devpassword123 --dir ./pb_data
./bin/pocketbase serve --dir ./pb_data --migrationsDir ./pb_migrations --hooksDir ./pb_hooks
The PocketBase dashboard is at http://127.0.0.1:8090/_/.
New migration
./bin/pocketbase migrate create "add_comments" --dir ./pb_data --migrationsDir ./pb_migrations