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

@rozek/sds-command-yjs

v0.0.13

Published

CLI tool for shareable-data-store (Y.js CRDT backend)

Readme

@rozek/sds-command-yjs

CLI tool for the shareable-data-store (SDS) family, using the Y.js CRDT backend. Exposes every store and entry operation as a one-shot command, an interactive REPL shell, and a batch script runner.

Built on top of @rozek/sds-command.


Prerequisites

| requirement | details | | --- | --- | | Node.js 22.5+ | required to run sds-yjs. Download from nodejs.org. | | SDS server | only required for network operations (store sync, store ping, token issue). Local read/write commands work entirely offline. | | JWT tokens | server operations need a client token (--token, scope read or write) or an admin token (--admin-token, scope admin). |

All clients and servers connected to the same relay must use the same CRDT backend. Use @rozek/sds-command-yjs together with @rozek/sds-websocket-server and @rozek/sds-mcp-server-yjs.

SQLite support is built directly into Node.js 22.5+ — no native addon and no build toolchain is needed.


Installation

npm install -g @rozek/sds-command-yjs

Or use without installation via npx:

npx @rozek/sds-command-yjs entry get <id>

Synopsis

sds-yjs [global-options] <command> [command-options]
sds-yjs shell
sds-yjs --script <file>

Global options

| option | env var | description | | --- | --- | --- | | --server <url> | SDS_SERVER_URL | WebSocket server base URL | | --store <id> | SDS_STORE_ID | store identifier | | --token <jwt> | SDS_TOKEN | client JWT with read or write scope | | --admin-token <jwt> | SDS_ADMIN_TOKEN | admin JWT with admin scope | | --persistence-dir <path> | SDS_PERSISTENCE_DIR | directory for local SQLite files (default: ~/.sds) | | --format <fmt> | — | output format: text (default) or json | | --on-error <action> | — | error handling in script/batch mode: stop (default), continue, or ask | | --version | — | print version and exit |


Commands

See @rozek/sds-command for full command reference. All commands available in sds-yjs are identical to those in sds-command — the only difference is the CRDT backend used to store and synchronise data.

Quick reference:

| command | description | | --- | --- | | token issue | request a JWT from the server | | store info | show store existence, entry count, and DB path | | store ping | check WebSocket server reachability | | store sync | exchange CRDT patches with the server | | store destroy | permanently delete the local SQLite file | | store export | export the store snapshot to stdout or a file | | store import | merge a snapshot into the local store | | entry create | create a new item or link | | entry get | read fields of a single entry | | entry list | list entries inside a container | | entry update | modify an existing entry | | entry move | move a live entry to a different container | | entry delete | soft-delete (move to trash) | | entry restore | restore a trashed entry | | entry purge | permanently delete a trashed entry | | trash list | list all entries in the trash | | trash purge-all | permanently delete all trashed entries | | trash purge-expired | permanently delete trashed entries older than a TTL | | tree show | display the store as an ASCII tree | | shell | open an interactive REPL | | --script <file> | run commands from a file or stdin |


Examples

# create an entry
sds-yjs --store notes entry create --label "Draft" --mime text/plain

# show the full tree
sds-yjs --store notes tree show

# sync with the server
sds-yjs --store notes store sync

License

MIT License © Andreas Rozek