Files
Docwell/Web-Clipper
tajniak81andClaude Opus 5.5 3d1cf362d7 Add calendars, a web clipper, more importers and workspace snapshots
Phase F of the AFFiNE plan (ADR-16):

- Calendars: people subscribe to iCal feeds (webcal, Google's secret
  address, Outlook) or CalDAV accounts in account settings; their
  events show at the top of journal pages in the reader's time zone.
  Repeats, moved and cancelled occurrences, IANA and Windows zones
  are handled. Events are read on demand and kept in memory for 15
  minutes; passwords are sealed with DOCWELL_SECRET_KEY; sources
  follow the webhook address rules. New calendar_accounts collection.
- Importers: zips of Markdown (Obsidian vaults, Bear TextBundles and
  .bear2bk, Readwise's Markdown, Docwell's own space export) keep
  folders as pages, resolve [[wikilinks]] and embeds by name, and turn
  front matter and #tags into properties and tags. OneNote .mht
  exports, Readwise CSV, and any other CSV as a database page.
- Exports: PNG of a page drawn in the browser, print styles that print
  only the page in the light theme, and workspace snapshots (records,
  Yjs states, JSON and files in one zip) that restore as a new
  workspace. Old ids are swapped byte for byte inside the Yjs updates,
  so links point at the restored pages and comments stay anchored.
- Web-Clipper/: a Manifest V3 extension for Chrome, Edge and Firefox
  that saves the article or the selection as Markdown through the
  import API with a personal API token.
- OpenAPI, generated clients, translations and user docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:56:03 +01:00
..

Docwell Web Clipper

A browser extension (Manifest V3, Chrome, Edge and Firefox 128+) that saves the page you are reading to Docwell as a new page: the article on it (found with Mozilla's Readability), or only what you selected, as Markdown with its links and pictures, under a note saying where it came from.

It reads a page only when you click it, turns it into Markdown inside the extension, and sends it to your Docwell server through the import API (POST /api/v1/spaces/{id}/import). It talks to no other server.

Build

npm install
npm run build -w @docwell/web-clipper

The extension is in Web-Clipper/dist/.

  • Chrome / Edge: open chrome://extensions, turn on Developer mode, choose Load unpacked and pick dist/.
  • Firefox: open about:debugging#/runtime/this-firefox, choose Load Temporary Add-on… and pick dist/manifest.json. For a lasting install, sign the zipped dist/ folder through addons.mozilla.org.

Set up

  1. In Docwell, open Account settings → API tokens and create a token with Read and write access.
  2. Open the clipper's options (right-click its button → Options), enter the address you open Docwell at and the token, and choose Connect. The browser asks once to let the clipper reach that server.
  3. Pick the workspace and the space new clips go to, and save.

The clipper finds the API through the web app's /config.json, so it works when docwell-web and docwell-server have different addresses.

Use

Click the Docwell button in the toolbar. Check the title and the space, then Clip article (or Clip selection when text is selected), or Whole page to keep everything on the page. When it is saved, Open in Docwell opens the new page.