Link previews: link cards for GitHub issues, pull requests and repositories, Linear issues and Figma files are read through the services' APIs and show a status pill (Open, Merged, In Progress…) and a line of details. Public items need nothing; a workspace's tokens, set by its admins under Workspace settings → Integrations and checked with each service before being sealed, reach private ones and Linear. GET /link-preview takes the workspace; the link card stores kind, status, state and meta. Slack: each workspace connects its own Slack app, made from a manifest the settings page fills in. Docwell posts chosen page and comment events to a channel (edits at most every 30 minutes per page), previews links to Docwell pages posted in Slack, and answers /docwell with a search as the member whose email matches the Slack user, shown only to them. Only pages every member can open are posted or previewed. Requests from Slack are signature-checked; the webhook dispatcher gained listeners so Slack follows the same events. Confluence: a space's HTML export imports with its page tree (from index.html, else breadcrumbs), links between pages, pictures and attachments. Panels become callouts, code macros code blocks with their language, expand macros toggles, task lists to-dos. New collection workspace_integrations (schema snapshot regenerated), OpenAPI and generated Go, TypeScript and Dart types, strings in all five languages, the user guide, and a rebuilt mobile editor bundle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Database schema
docwell-db is a stock PocketBase: the stack runs
tajniak81/pocketbase-docker-root
(source) as it is. There is no Docwell image for it any more.
docwell-server brings PocketBase up to Docwell's schema itself, every time it starts
(Server/internal/pbschema): missing collections and fields are created,
existing ones keep their data. It also writes the DOCWELL_* settings (app name and URL, mail, file storage) and
sends Docwell's own emails, so PocketBase needs no hooks either.
This folder is where that schema is written:
pb_migrations/holds the JS migrations, the source of truth for the schema.export-schema.shturns them intoServer/internal/pbschema/schema.json, the snapshot docwell-server embeds and applies.- All collection API rules are
null, so only superusers have access. Never expose PocketBase publicly; only docwell-server talks to it.
Changing the schema
-
Add a migration to
pb_migrations/(pocketbase migrate create "add_comments" --migrationsDir ./pb_migrations, or copy an existing file). Leave earlier migrations alone. -
Regenerate the snapshot (needs Docker and Go):
sh Database/export-schema.sh -
Commit the migration and the new
schema.jsontogether.go test ./internal/pbschemachecks the snapshot.
Removing a collection or a field is not done by the snapshot: it only adds and updates. Do that by hand, once, in the PocketBase dashboard of each install, after the release that stops using it.
The admin panel manages two parts of the users collection itself, the OAuth2 providers and the magic link switch
(otp.enabled), so the snapshot leaves them out and they keep whatever is set.
Run locally
Download PocketBase v0.40.6 for your OS into Database/bin/, then:
./bin/pocketbase superuser upsert admin@docwell.test devpassword123 --dir ./pb_data
./bin/pocketbase serve --dir ./pb_data --http 127.0.0.1:8070
Start docwell-server against it (DOCWELL_PB_EMAIL and DOCWELL_PB_PASSWORD set to that superuser) and it creates
the collections. The PocketBase dashboard is at http://127.0.0.1:8070/_/.