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/dav

v0.1.1

Published

DAV/WebDAV file store and editor adapter for embedding the Fidus Writer editor in Nextcloud, opencloud and other WebDAV-based hosts

Readme

@fiduswriter/dav — DAV/WebDAV adapter for the Fidus Writer editor

This repository is the storage adapter that lets the Fidus Writer editor run against documents stored as .fidus files on a DAV/WebDAV server — Nextcloud, opencloud, ownCloud or any generic WebDAV host. It is published on npm as @fiduswriter/dav and is the piece that the fiduswriter-nextcloud app builds on. It deliberately contains no editor code itself and no Fidus Writer server backend: it only turns "a .fidus file somewhere on a DAV server" into a running editor and back.

Fidus Writer is an online collaborative editor especially made for academics who need to use citations and/or formulas. The editor focuses on the content rather than the layout, so that with the same text, you can later on publish it in multiple ways: on a website, as a printed book, or as an ebook.

What this package does

  • Loads a .fidus file from a DAV server: Fetches the container, validates its MIME type and schema version, migrates older document versions and hands the editor everything it needs — document content, bibliography, and images as ready-to-display data URLs — through the @fiduswriter/editor static bootstrapping API.
  • Saves the editor state back to a .fidus file: Re-serializes the document, comments, bibliography and images into a byte-exact .fidus container (including any embedded document template) and PUTs it to the server with an If-Match etag, so concurrent edits are detected rather than silently overwritten.
  • Handles conflicts: When the server rejects a save because the file changed elsewhere, it returns a 409 so the editor's built-in merge kicks in — local changes are re-fetched against the server version and merged without losing work.
  • Manages editing locks: Acquires a Nextcloud Files lock (or a WebDAV LOCK, or no-op fallback) for the editing session and releases it when the page is left, so two users do not edit the same file at the same time.
  • Switches storage backends behind one interface: A NextcloudStore (Nextcloud WebDAV + the files_lock OCS API) and a WebdavStore (generic WebDAV with If-Match/LOCK) both implement the same small DavFileStore interface, which makes porting to other DAV systems a matter of adding another implementation.
  • Boots the whole editor for you: mountFidusEditor is a single high-level entry point that takes a store and a file id, loads the document, starts the editor in direct-save mode with autosave and the 409 merge wired up, and reports save status to the host page.

Quick start (development)

Development happens with all Fidus Writer repositories checked out next to one another, since this package depends on @fiduswriter/editor, @fiduswriter/document, @fiduswriter/image-manager and fwtoolkit from their sibling checkouts:

npm install
npm run build
npm test

The test suite covers .fidus round-trips (content, bibliography, images and embedded templates), the conflict path and the store implementations.

License

All of Fidus Writer's original code is licensed under the GNU AFFERO GENERAL PUBLIC LICENSE, for details see LICENSE. Some third party libraries are licensed under other, compatible open source libraries. Licensing information is included in those files.