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

@storylet-studio/cli

v1.1.3

Published

storyletengine - the Storylet Engine CLI: init, new box, validate, format, export (bundle, playable page, workbook), peek, deal, resolve, links, coverage, contract, share-scopes, pack, unpack, merge. A thin front-end over @storylet-studio/ops.

Readme

@storylet-studio/cli

storyletengine - the Storylet Engine CLI, a thin front-end over @storylet-studio/ops (one implementation of each operation; the editor and CI consume the same functions).

storyletengine init [dir] [--name X]     scaffold a new .storylets project from a game kit
    [--kit starter|map-story|action-game]
storyletengine new box [path] [--kit K]  add a box, scaffolded from a kit
storyletengine validate [path]           publish gate + bundle staleness + canonical form
storyletengine format [path] [--check]   rewrite shards to canonical form (alias: fmt)
storyletengine export [path] [-o FILE]   compile to the .storyletsc bundle (-o - for stdout),
    [--map|--no-map]                     and bring game-scopes/storylets.scopes.json up to
                                         date where the game shares its scopes; --map and
                                         --no-map override the project's export.map
storyletengine peek <box> [path]         look at the stock through the reference runtime
    [--where group=tag ...] [--n N] [--set path=value ...] [--seed N] [--deal-all]
storyletengine deal <hand> [path]        refresh a hand through the reference runtime
    [--set path=value ...] [--seed N] [--deal-all]
storyletengine resolve <query> [path]    find an item by gameId, id or title: where it lives
                                         (the same lookup as Storyletter's --at)
storyletengine contract show             what each installation contract depends on
    [installation] [path]
storyletengine export-html [path]        one self-contained playable .html (runtime, board
    [-o FILE]                            and bundle inlined; opens in any browser)
storyletengine export-xlsx [path] -o F   the whole project as a readable .xlsx workbook
storyletengine links [path]              the influence graph: which cards open which
    [--deck X | --box X | --card X] [--refs] [--json]
storyletengine share-scopes [path] [--at DIR]  make the game's game-scopes/ folder and write this project's files into it
storyletengine pack [path] -o FILE       pack a project into one portable .storyletpack
    [--assets|--no-assets]               (--assets carries the background pictures too)
storyletengine unpack FILE -o DIR        explode a .storyletpack into source shards
    [--merge --base SENT.storyletpack]   (--merge folds a RETURNED pack back in by id)
storyletengine merge BASE OURS THEIRS    id-keyed 3-way merge (+ .storyletconflict sidecar)
    [-o out] [--path realfile] [--json]
storyletengine coverage [path]           seeded playthroughs: per-hand and per-card coverage
    [--runs N] [--max-turns M] [--seed S] [--order least|deck]
    [--json] [--fail-on-gap] [--propose]
storyletengine --version                 print the version (also -v, version)
storyletengine licences                  print its licence and its libraries' (also licenses)
storyletengine <command> --help          print one command's usage (also help <command>)

A flag that takes a value takes it inline too: --runs=50, --where=area=docks.

Exit codes: 0 ok, 1 the operation found problems, 2 usage. merge alone maps a malformed input to 2 as well, so a version-control driver can fall back. Every usage error prints under one prefix, usage: , and ends on the command's whole short form.

export and export-html refuse a project with a load error (a shard that does not parse, say), rather than build from the part that loaded; links, coverage and share-scopes exit 1 on one. Every command that loads the project prints its load issues.

Where the game shares its scopes (a game-scopes/ folder at or above the project, up to the repository root; patterkit design/shared-scopes.md), validate checks references into the other tools' scopes as warnings and warns when storylets.scopes.json is stale, export rewrites it when it changed, and peek, deal and coverage stand the other engines in from their files' defaults, so content naming @patter plays. pack carries a read-only copy of the folder's *.scopes.json files, and unpack puts it in game-scopes/ inside the project, where the other commands look first. unpack --merge never writes the returned copy back; if the other author changed the World properties, it writes the merged list to your game.scopes.json and says so, since the next save would otherwise copy the old list back into the project.

Shipping shape

Patter's CLI distribution, carried whole.

  • npm: npm install -g @storylet-studio/cli installs the storyletengine command, and npx @storylet-studio/cli <command> runs it without installing.
  • dist/cli.js is thin: the CLI's own code, with its libraries (@storylet-studio/ops and theirs) installed from npm beside it (the same shape as Patter's npm CLI).
  • Standalone binaries: npm run build:standalone (Bun --compile) emits one native executable per platform - no Node required - carrying its own licence and every bundled library's notice (storyletengine licences). macOS binaries are Developer ID signed (hardened runtime + JIT entitlements, entitlements.plist); Windows ships unsigned by policy.
  • Release flow: Changesets versions and publishes the npm package with the others; npm run ship:cli -- patch runs the whole chain, and npm run release:cli then tags cli-vX.Y.Z, which runs .github/workflows/cli.yml - macOS builds and signs its own binaries, Linux cross-compiles the Linux + Windows set, and all five land as GitHub Release assets.