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

@mariozechner/jot

v0.1.2

Published

Minimal self-hosted markdown editor with inline comment threads

Readme

jot

Minimal self-hosted collaborative markdown editor with inline comment threads. Built for humans and agents.

Quick Start

npm install -g @mariozechner/jot
jot serve

Open http://localhost:3210. Set the owner password on first visit.

Features

  • Collaborative real-time editing (multiple tabs, multiple users)
  • Remote cursors with names
  • Inline comment threads anchored to text selections
  • Threaded replies, resolve/reopen
  • Share notes with configurable access (view, comment, edit)
  • CLI for humans and agents (owner API keys or share links)
  • Agent setup modal with copy-paste instructions
  • Dark and light theme
  • Mobile support
  • .md files on disk (derived from collaborative state)

Server

npm install -g @mariozechner/jot
jot serve                    # port 3210, data in ./data
jot serve --port=8080        # custom port
jot serve --data=/var/jot    # custom data dir

Docker

cd docker
bash control.sh start

Sharing

Click the share icon in the editor to configure access:

  • Not shared (default)
  • View only: read-only preview
  • View & comment: preview with comment threads
  • Edit & comment: full collaborative editor with comments

Each note has a stable share URL (/s/<id>). Anyone with the link gets the configured level of access, both in the browser and via the CLI. Toggle access without changing the link.

CLI

The CLI works in two modes depending on how you register.

Owner mode

The instance owner creates API keys from the settings gear on the landing page. An API key grants full access to all notes.

jot register myserver https://jot.example.com <api-key>
jot myserver list
jot myserver search "query"
jot myserver read <note-id>
jot myserver create "My note"
jot myserver edit <note-id> '[{"oldText":"foo","newText":"bar"}]'
jot myserver comment <note-id> "quoted text" "comment body"
jot myserver reply <note-id> <thread-id> <message-id> "reply"
jot myserver resolve <note-id> <thread-id>
jot myserver reopen <note-id> <thread-id>
jot myserver edit-comment <note-id> <message-id> "new body"
jot myserver delete-comment <note-id> <message-id>
jot myserver delete-thread <note-id> <thread-id>
jot myserver update <note-id> title "New title"
jot myserver delete <note-id>

Shared mode

Anyone with a share link can use it to register. No API key needed. The link itself is the credential, and access depends on what the owner configured (view, comment, or edit). This works for both humans and their agents. Humans can use the link in the browser for better UX.

jot register shared https://jot.example.com/s/abc123
jot shared read
jot shared edit '[{"oldText":"foo","newText":"bar"}]'
jot shared comment "quoted text" "comment body" --name="My Agent"
jot shared reply <thread-id> <message-id> "reply" --name="My Agent"

Agent integration

Click the robot icon in the editor or on a shared note to get copy-paste CLI instructions. The instructions are pre-filled with the instance URL and note ID. Hand them to your agent and it can read, edit, and comment on the note.

Data

data/
  auth.json
  notes/
    <id>.md
    <id>.json

The .md files are derived from the collaborative editing state stored in the .json sidecar. The JSON is the source of truth. The markdown files are written for convenience (grep, backup, external tooling).

HTTP API

All owner endpoints require Authorization: Bearer <api-key>.

| Method | Endpoint | Description | | ------ | ------------------------------------- | ----------------------------------- | | GET | /api/notes?q=<query> | List/search notes | | POST | /api/notes | Create note | | GET | /api/notes/:id | Read note | | PUT | /api/notes/:id | Update title, markdown, shareAccess | | DELETE | /api/notes/:id | Delete note | | POST | /api/notes/:id/edit | Apply text edits | | POST | /api/notes/:id/threads | Create comment thread | | POST | /api/notes/:id/threads/:tid/replies | Reply to thread | | PATCH | /api/notes/:id/threads/:tid | Resolve/reopen thread | | DELETE | /api/notes/:id/threads/:tid | Delete thread | | PATCH | /api/notes/:id/messages/:mid | Edit comment | | DELETE | /api/notes/:id/messages/:mid | Delete comment | | GET | /api/keys | List API keys | | POST | /api/keys | Create API key | | DELETE | /api/keys/:id | Delete API key |

Share endpoints (no auth, access controlled by shareAccess):

| Method | Endpoint | Description | | ------ | -------------------------------------- | ------------------------------ | | GET | /api/share/:sid | Read shared note | | GET | /api/share/:sid/note | Read shared note (lightweight) | | POST | /api/share/:sid/edit | Edit (requires edit access) | | POST | /api/share/:sid/threads | Create comment | | POST | /api/share/:sid/threads/:tid/replies | Reply | | POST | /api/share/:sid/render | Render markdown to HTML |

License

MIT