trilium/apps/web-clipper
Elian Doran bbf090edf0
Some checks are pending
Checks / main (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
Deploy Documentation / Build and Deploy Documentation (push) Waiting to run
Dev / Test development (push) Waiting to run
Dev / Build Docker image (push) Blocked by required conditions
Dev / Check Docker build (Dockerfile) (push) Blocked by required conditions
Dev / Check Docker build (Dockerfile.alpine) (push) Blocked by required conditions
/ Check Docker build (Dockerfile) (push) Waiting to run
/ Check Docker build (Dockerfile.alpine) (push) Waiting to run
/ Build Docker images (Dockerfile, ubuntu-24.04-arm, linux/arm64) (push) Blocked by required conditions
/ Build Docker images (Dockerfile.alpine, ubuntu-latest, linux/amd64) (push) Blocked by required conditions
/ Build Docker images (Dockerfile.legacy, ubuntu-24.04-arm, linux/arm/v7) (push) Blocked by required conditions
/ Build Docker images (Dockerfile.legacy, ubuntu-24.04-arm, linux/arm/v8) (push) Blocked by required conditions
/ Merge manifest lists (push) Blocked by required conditions
playwright / E2E tests on linux-arm64 (push) Waiting to run
playwright / E2E tests on linux-x64 (push) Waiting to run
Deploy web clipper extension / Build web clipper extension (push) Waiting to run
Deploy website / Build & deploy website (push) Waiting to run
Merge branch 'main' of github.com:TriliumNext/Trilium
2026-01-26 21:11:02 +02:00
..
2026-01-24 15:28:47 +02:00

Trilium Web Clipper

Context

The Web Clipper is an extension for the Trilium Notes application, an open-source note-taking application that can be used either in standalone mode via the desktop application or connected to a server.

The source is extracted from the official monorepo, where it can be found under apps/web-clipper. The only change made to the provided source code is to have tsconfig.base.json in the same directory as the Web Clipper. The submitted source code is a snapshot of the following commit: https://github.com/TriliumNext/Trilium/commit/1cf93ff0dec89ee1a80654934cb30fad74920043 

There are some warnings regarding the use of innerHTML but they come from a third-party library (Readability). We plan to update to a newer version of that library soon, but we would like to publish the extension first (if possible).

Building from source

To build from the provided sources:

  1. pnpm i to install the dependencies.
  2. pnpm build:firefox to trigger the Firefox build.
  3. The output will be available in .output/firefox-mv2.

Note

To generate the ZIP instead that can be imported into Firefox, run pnpm zip;firefox which will generate .output\triliumnextweb-clipper-1.0.1-sources.zip.

Testing

To test it, a functional Trilium Notes desktop application is required:

  1. Download the latest version of Trilium Notes from https://triliumnotes.org/ (top-right bottom automatically detects the platform).
  2. During the first setup, create a new database.
  3. Allow the Firewall port if asked.
  4. Install the Web Clipper extension into the browser.
  5. The extension should be able to see the Trilium instance and become active.
  6. Web pages can now be clipped and they will appear in the local Trilium instance.