# Publishing the Docwell Web Clipper The packages come from one command: ```sh npm run package -w @docwell/web-clipper ``` It builds the extension and writes three files to `Web-Clipper/release/`: | File | For | |---|---| | `docwell-web-clipper--chrome.zip` | Chrome Web Store and Microsoft Edge Add-ons | | `docwell-web-clipper--firefox.zip` | addons.mozilla.org (AMO) | | `docwell-web-clipper--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 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 (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 → **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.