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

@getstrata/cli

v2.2.35

Published

Strata CLI: framework commands for Bun apps (dev, start, migrate, run)

Readme

@getstrata/cli

The strata binary for Strata apps. Bun stays the runtime, installer, and test runner; strata owns the app lifecycle. Requires Bun >=1.4.3 (tested on 1.4.3).

Commands

strata dev
strata start
strata migrate
strata migrate:fresh
strata run src/scripts/backfill.ts
strata help

strata --help and strata -h print the same list as strata help.

strata run <file> executes a file with the app preload. It is not an alias for bun run <script>.

strata start does not migrate when APP_ENV=production. Run strata migrate as an explicit deploy step.

App commands from src/cli/register.ts merge with this list. Generated apps add queue:work, failed-job commands, make:*, openapi:*, and schedule:run. User-auth starters also add explicit auth:provision-admin; its initialAdmin subpath reads bounded password input from a pipe and redacts provisioning errors. The app owns its transactional one-time claim and user schema. See initial-admin provisioning before adoption.

Running it

This package installs into your app, not globally, so strata lands in node_modules/.bin and is not on your PATH. Use the scripts a generated app already ships:

bun run dev
bun run db:migrate

Or call it directly from inside the app directory:

bunx strata dev

Running bunx strata from outside a Strata app resolves an unrelated npm package named strata and starts a static file server. Stay in the app directory.

How it finds your app

From the current working directory, strata loads strata.config.ts if present, then falls back to conventions:

| Setting | Convention | | --- | --- | | preload | src/bootstrap/preload.ts or src/bootstrap/preloadModules.ts | | server | src/bootstrap/server.ts | | modulesDirectory | src/modules | | commands | src/cli/register.ts | | migrate | src/db/migrate.ts | | fresh | src/db/fresh.ts |

src/cli/register.ts can export commands or registerCommands() to add your own commands. Generated apps ship queue:work, which boots the app (bootstrapApp / createApp) rather than the monorepo provider stack, plus make:*, failed-job commands, openapi:*, and schedule:run. User-auth starters also add explicit auth:provision-admin; its initialAdmin subpath reads bounded password input from a pipe and redacts provisioning errors. The app owns its transactional one-time claim and user schema. See initial-admin provisioning before adoption.

Helpers live on package subpaths: @getstrata/cli/queueWorker, @getstrata/cli/queueFailed, @getstrata/cli/scaffold, @getstrata/cli/openapi, and @getstrata/cli/schedule. queue:work takes { boot, close } and does not call assertProductionSecrets() (that belongs in app boot). Scaffold commands resolve paths from the app working directory (src/modules, src/db/migrations, src/jobs, views/ or resources/views). See docs/BUILDING-APPS.md.

A migrate entry may export close(). The CLI calls it after migrate() and fresh() so pooled drivers such as mysql2 release the event loop instead of hanging the command.

Creating a new app

This package does not scaffold. Use the starter:

bunx create-strata my-app

Docs