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

strylb

v0.2.2

Published

Publish stories to strylb from the command line, or from an AI writing harness.

Readme

strylb

Publish stories to strylb without a browser.

Written for two people at once: a writer who would rather stay in a terminal, and the AI assistant they are drafting with. A chapter that exists as a markdown file should be publishable from the folder it lives in, without anyone copying an id between windows.

npx strylb --help

No dependencies, one file, Node 20 or later. It speaks HTTP to a strylb server's /api and knows nothing about the story format — markdown goes up, the server converts it to the editor's own representation, so what you post is what the reader renders.

Getting started

npx strylb login                      # approve in the browser, once
cd my-book
npx strylb init                       # writes .strylb/manifest.json
npx strylb push                       # every chapter, as drafts
npx strylb status
npx strylb publish <id>

init also writes a short block into the project's AGENTS.md, so an assistant working in the folder can find the workflow without being told it.

For agents

  • strylb guide first. It describes what a story on this platform should look like — the markdown that survives conversion, what the title, excerpt and category fields are for, and the difference between prose and a document. A fiction platform is not the default thing a markdown file is for, so the brief ships in the tool rather than living in someone's head.
  • strylb whoami reports the scopes the current key carries and names the ones it lacks. Check it before planning work: scopes are fixed when a key is minted and cannot be widened, so a missing one is a new key, not a retry.
  • --json on any command: the payload on stdout with no decoration, errors on stderr as { "error": { "code", "message" } }. Exit 0 ok, 1 failed, 2 misused.
  • Drafts by default. push creates private stories unless --publish is given.
  • delete needs --yes, and push refuses rather than overwriting a story that changed on the server since it was last pulled.
  • Publishing is capped per account — a limited number of distinct stories made public per rolling 24 hours. Drafts never count, so push is always safe; only publish spends budget. strylb whoami shows what is left. Past the ceiling you get { "error": { "code": "publish_quota" } } and a Retry-After header: back off and leave the work as drafts rather than retrying.
  • strylb agent-instructions prints the whole workflow as markdown.

Run strylb --help for the full surface.

Credentials

Keys are minted per-tool and revocable, and carry scopes — stories:read, stories:write, collections:read, collections:write — so a tool that only reads your back catalogue cannot rewrite it.

strylb login stores one in ~/.strylb/config.json, mode 0600. STRYLB_API_KEY and STRYLB_URL override it, so a CI job or a sandboxed agent never has to write a key to disk.