npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@fiduswriter/editor

v0.2.19

Published

Fidus Writer browser editor

Readme


What it does

The main browser-based collaborative editor for Fidus Writer. Built on ProseMirror, it provides real-time collaboration, comments, tracked changes, footnotes, citations, end-to-end encryption (E2EE), menus, dialogs, and clipboard import/export.

Key features

  • Real-time collaboration — WebSocket-based collaborative editing with participant carets, diffs, and versioning
  • Track changes — Accept/reject individual changes with full change history
  • Comments — Threaded commenting with annotation marks and resolution
  • Footnotes — Inline footnote editing with proper layout
  • Citations — Citeproc-js based citation rendering with bibliography generation
  • E2EE — End-to-end encryption with key management and passphrase support
  • Clipboard — Paste from Word, LibreOffice, Google Docs with format preservation
  • Tables, figures & equations — Full editing support for tables, images, math formulas, and code blocks

Installation

npm install @fiduswriter/editor

Usage

The library can be used in two modes: static (no backend server, like the standalone demo) or server-backed (the classic Fidus Writer Django setup).

For a quick start without a backend, import createStaticEditor from the @fiduswriter/editor/static_editor subpath:

import {createStaticEditor} from "@fiduswriter/editor/static_editor"

const editor = await createStaticEditor({
    locale: "en",
    username: "Demo User",
    documentData: async () => ({doc, doc_info, time: Date.now()}),
    documentStyles: [ /* style fixtures */ ],
    exportTemplates: [ /* export template fixtures */ ],
    documentTemplates: { /* document template fixtures */ }
})

Full API documentation, configuration options, and a complete server-backed usage example are available on the project site:

https://fiduswriter.pages.fiduswriter.org/fiduswriter-editor-ts/

Embedding in another application

The editor can be embedded directly into a host page (a CMS, a plugin, another application) — no iframe required:

  1. Mount the editor into a container element with the mount option. The editor renders its UI inside a div.fw-editor container (in full-page mode it replaces document.body instead, and that body carries the fw-editor class).
  2. Load the editor's own stylesheets as-is: they are container-safe (fw--prefixed classes, and the editor root targets .fw-editor).
  3. Load fwtoolkit's scoped stylesheets for the host page. fwtoolkit ships scripts/build-scoped-css.js which writes css-scoped/ — copies of its sheets with the page-context body/html rules scoped to a container selector: node node_modules/fwtoolkit/scripts/build-scoped-css.js --prefix "#my-app .fw-editor"
  4. Add an inert reset link (<link rel="stylesheet" href=".../css/reset.css" disabled />) so the editor does not inject the global (unscoped) reset.
  5. If the editor opens dialogs that should stay inside the container, the host can additionally scope stylesheets with bare element selectors (document.css) via scopeCss(css, {prefix, elements: true}) (exported by fwtoolkit).

A working reference implementation is the embedded demo:

https://fiduswriter.pages.fiduswriter.org/fiduswriter-editor-ts/embedded/

demo/embedded/ shows the editor running inside a page that has its own header and content — the pattern that a WordPress/Drupal/Joomla plugin or any other host would use.

Demo

A standalone browser demo is published on Forgejo Pages:

https://fiduswriter.pages.fiduswriter.org/fiduswriter-editor-ts/editor/

The demo loads the editor without a Django backend. On startup it lets you choose a language, import an existing document, or start from a default template. Changes are saved locally and can be downloaded as a .fidus file.

Development

npm install          # Install dependencies
npm run build        # Compile TypeScript to dist/
npm run typecheck    # Check types without emitting
npm run lint         # Lint with ESLint
npm run format:check # Check formatting with Prettier
npm test             # Run the test suite

License

AGPL-3.0 — see LICENSE for details.