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

@realtime-md/cli

v0.1.0

Published

Command-line client for the Realtime.md server: clone vaults into local folders, sync, and manage vaults from the terminal.

Readme

@realtime-md/cli

rtmd — a command-line client for a Realtime.md server. It binds local folders to vaults, syncs files both ways without a daemon, and exposes most of the server API (@realtime-md/sdk) as git-like subcommands.

bun run --filter @realtime-md/cli build
node packages/cli/dist/cli.js --help   # or `rtmd` once linked/installed

The .rtmd file

Every synced folder has a .rtmd JSON file at its root holding the server URL, the bound vault, the folder's credentials, and the snapshot of the last sync. Commands locate it by walking up parent directories, like a git root. The file is never synced (along with all dot-files/dot-directories and symlinks), and it contains tokens — add it to .gitignore if the folder is also a git repo.

To find the bound vault ID, run rtmd whoami; its human and --json output include the ID. It is also stored as vaultId in .rtmd. In Obsidian, open Settings → Realtime → Technical details at the bottom of the settings page.

Getting a folder

rtmd login [dir]          # log in, pick one of your vaults, bind the folder
rtmd clone <vault> [dir]  # log in and download a vault into a new folder
rtmd init [dir] --name N  # create a new vault from a folder's current contents

login/clone/init run a browser login (--paste to paste a token instead). After picking a vault, admins are offered the login-to-cursor hand-off: create a named remote cursor for the folder and store its secret token instead of your personal session token — the folder then acts as that auditable, vault-scoped cursor, and the temporary user session is invalidated.

Auth modes stored in .rtmd:

| mode | credential | acts as | |---|---|---| | user | session token | you (full API: vaults, members, cursors, rollback…) | | cursor | cursor secret token | a remote cursor (vault-scoped, audited) | | cursor-oauth | OAuth client + refresh tokens | a remote cursor, auto-refreshing (clone --cursor-oauth <mcpUrl>) |

Syncing

rtmd status        # local + remote changes since the last sync
rtmd pull          # remote → local   (--theirs overwrites local conflicts)
rtmd push          # local → remote   (--force overwrites remote conflicts)

Sync is a three-way diff of local files, the .rtmd snapshot, and the server's listings. .md files sync as notes, .canvas/.base as structured JSON docs, everything else as binary attachments. status cannot see remote edits to notes/canvases/bases (only attachments carry a listing hash); pull detects them by fetching content.

Attachment sync is configured per bound folder:

rtmd config attachments off
rtmd config attachments on --include "assets/**,**/*.pdf"
rtmd config attachments on --all
rtmd config attachments             # show the current policy

Include globs match vault-relative paths. Non-matching attachments are ignored locally and remotely: sync commands do not upload, download, or delete them. Turning attachment sync off ignores every attachment while notes, Canvases, and Bases continue to sync. Use clone or init with --no-attachments or --attachment-filter <globs> to apply the setting before the first sync.

Everything else

rtmd mv <from> <to>            # move/rename remotely and locally
rtmd rm / cat / write / append / patch / ls / permalink
rtmd search <q> / tags / backlinks <path> / reindex
rtmd history log [path] / history show <hash> [path]
rtmd rollback <hash> [--yes]   # previews first; admin only
rtmd cursor list/create/rename/rm/token/audit/undo
rtmd vault list / vault create <name>
rtmd members list/promote/rm ; rtmd invite create/redeem
rtmd attach ls/get/put/from-url/rm
rtmd canvas-apply <path> [--file batch.json] [--mutation-id <id>]
rtmd storage [--gc] ; rtmd backup get/set/rm/test
rtmd whoami / logout

Global flags: --dir <path> (operate on another folder), --json (machine-readable output).