Files
Docwell/Web-Clipper/store/STORE.md
T
tajniak81andClaude Opus 5.5 6984c7d162 Connect Google Calendar, import OneNote notebooks, sync Readwise, and package the clipper
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>
2026-11-16 14:59:34 +01:00

4.4 KiB
Raw Blame History

Publishing the Docwell Web Clipper

The packages come from one command:

npm run package -w @docwell/web-clipper

It builds the extension and writes three files to Web-Clipper/release/:

File For
docwell-web-clipper-<version>-chrome.zip Chrome Web Store and Microsoft Edge Add-ons
docwell-web-clipper-<version>-firefox.zip addons.mozilla.org (AMO)
docwell-web-clipper-<version>-source.zip AMO's "source code" upload (the extension is built with Vite)

Raise version in public/manifest.json (and package.json) before each new upload; the stores refuse a version they already have.

Chrome Web Store

  1. Sign in at https://chrome.google.com/webstore/devconsole with the account that will own the listing (a one-time developer registration fee applies).
  2. New item → upload the -chrome.zip.
  3. Store listing: paste the texts below, pick the category Productivity → Tools (or Workflow & Planning), upload the 128×128 icon (public/icons/icon-128.png) and at least one screenshot of 1280×800 or 640×400 (the popup over an article, and the options page, work well).
  4. Privacy: single purpose and permission justifications below; data use: the extension handles website content only to send it to the server the user configured, and sells or shares nothing. Link the privacy policy: publish store/PRIVACY.md somewhere public (the Docwell docs site, a repository page) and paste its address.
  5. Submit for review. Unlisted is fine if only your organization should find it.

Microsoft Edge Add-ons

  1. Sign in at https://partner.microsoft.com/dashboard/microsoftedge (registration is free).
  2. Create new extension → upload the same -chrome.zip.
  3. Fill in the same texts, category Productivity, the privacy policy address, and screenshots (1280×800).

Firefox (addons.mozilla.org)

  1. Sign in at https://addons.mozilla.org/developers/ → Submit a New Add-on.

  2. Choose On this site (listed) or On your own (self-distributed, signed but not listed), and upload the -firefox.zip. The add-on id is web-clipper@docwell.app (in public/manifest.json); change it before the first upload if you publish under your own name.

  3. When asked whether the code is generated, answer yes and upload the -source.zip. Build instructions for the reviewer:

    Node 22 or later. Unzip, then cd Web-Clipper && npm install && npm run build. The extension is in Web-Clipper/dist/; it matches the uploaded package except for the source-path comments Vite writes at the top of each bundled module.

  4. Fill in the listing texts, category Other or Feeds, News & Blogging, and the privacy policy.

Listing texts

Name: Docwell Web Clipper

Summary (max. 132 characters): Save articles, pages and selections to your own Docwell server as new pages, with their links and pictures.

Description:

Docwell Web Clipper saves what you are reading to Docwell, the open-source, self-hosted knowledge base.

• Clip the article on a page: the clipper finds the main text (with Mozilla's Readability) and leaves menus, ads and sidebars out. • Clip only what you selected, or the whole page. • Links, pictures, code blocks and tables come along, under a note saying where the clip came from and when. • Pick the space each clip goes to, and edit its title first.

The clipper talks only to the Docwell server you connect it to, with a personal API token. It reads a page only when you click its button, and turns it into Markdown inside the extension before sending it.

You need a Docwell server and an account on it. Docwell is free software (AGPL-3.0).

Single purpose: Save the web page the user is viewing, or the part they selected, as a new page on the user's own Docwell server.

Permission justifications:

Permission Why
activeTab Reads the page in the current tab, and only when the user clicks the clipper's button.
scripting Runs the function that returns the page's HTML and the selection from that tab.
storage Keeps the server address, API token and chosen space on this device.
Optional host access (https://*/*, http://*/*) Asked for one origin only, the Docwell server the user enters in the options, so the clipper can send clips to it. No other site is requested.

Remote code: none; everything the extension runs is in the package.