Phase F follow-ups (ADR-16): - Calendars: events are now stored in calendar_events by a calendars.sync job (every 15 minutes per account, 90 days back and 400 ahead), so journals open at once and keep showing events while a source is down. Google accounts connect with OAuth (calendar.readonly) through DOCWELL_GOOGLE_CLIENT_ID/SECRET; reconnecting renews access. - OneNote: whole notebooks import through Microsoft Graph (Notes.Read, DOCWELL_MICROSOFT_CLIENT_ID/SECRET/TENANT) in the background, with section groups, sections, subpages, pictures and attached files. The Microsoft sign-in lives in memory for an hour and is never stored. - Readwise: an hourly sync with the person's sealed access token; new books get a page under "Readwise", new highlights are appended once. New readwise_syncs collection. - internal/oauth: signed states and one callback route per provider, routed by purpose. directory gains ImportConverted and CallerOf. - Phone app: "Today's journal" on the home screen and calendar events on journal pages. - Web clipper: `npm run package` builds Chrome/Edge, Firefox and source zips; store/ holds listing texts, permission notes and a privacy policy. - OpenAPI, generated clients, translations, compose and .env examples, and user docs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 lines
2.1 KiB
Markdown
34 lines
2.1 KiB
Markdown
# 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
|
|
|
|
```sh
|
|
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.
|
|
|
|
## Publish
|
|
|
|
`npm run package -w @docwell/web-clipper` builds store-ready zips for Chrome, Edge and Firefox (plus the source zip Firefox reviewers ask for) in `Web-Clipper/release/`. [store/STORE.md](store/STORE.md) walks through each store with the listing texts and permission justifications, and [store/PRIVACY.md](store/PRIVACY.md) is the privacy policy to link from the listings.
|