trilium/apps/web-clipper
2026-09-14 00:21:54 +00:00
..
assets feat(web-clipper): use new Trilium icon for now 2026-01-24 16:20:36 +02:00
bin Add 'apps/web-clipper/' from commit '786d249a6effe0262859d05e6cb1737e5fc8bdd8' 2025-06-02 10:26:57 +03:00
entrypoints fix(web-clipper): satisfy stricter tsconfig generated by wxt 0.21 2026-07-30 19:30:23 +03:00
lib fix(web-clipper): cash not working in Chrome 2026-01-26 19:38:11 +02:00
.gitignore chore(web-clipper): make entrypoints actually run 2026-01-24 09:59:46 +02:00
build.ts chore(web-clipper): port the remaining files to TypeScript 2026-01-24 14:01:58 +02:00
LICENSE Add 'apps/web-clipper/' from commit '786d249a6effe0262859d05e6cb1737e5fc8bdd8' 2025-06-02 10:26:57 +03:00
package.json chore(deps): update pnpm to v12.4.1 2026-09-14 00:21:54 +00:00
README.md chore(web-clipper): add README for Firefox submission 2026-01-25 21:19:43 +02:00
tsconfig.json chore(web-clipper): set up for TypeScript 2026-01-24 12:35:31 +02:00
types.d.ts chore(web-clipper): port most files to TypeScript 2026-01-24 13:20:27 +02:00
utils.ts feat(web-clipper): handle manifest V3 2026-01-24 15:28:47 +02:00
wxt.config.ts fix(web-clipper): restore complete Firefox sources zip under wxt 0.21 2026-07-30 19:30:32 +03: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.