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

@sapienx/saas-core-cli

v2.6.0

Published

SaaS Core product lifecycle CLI

Readme

@sapienx/saas-core-cli

Current package release: 2.6.0; Core schema compatibility coordinate remains 2.0. The CLI is the source-delivery and readiness boundary for the coordinated release. It carries the Core-managed billing persistence, entitlement-lock, and plan-catalog sources through package packing, init, and update, but never executes SQL. Each consumer owns the controlled migration apply and verification workstream.

Portable init, doctor, diff, and update commands for a SaaS Core consumer. The CLI ships the canonical @sapienx/saas-core-app template at pack time, including the billing migration source, records managed-file hashes, detects product-versus-Core ownership, backs up safe updates, and preserves conflicts instead of overwriting them. doctor reports Core source, consumer, and manifest readiness separately from its credential-dependent database metadata check; absent server credentials are a warning.

For local multi-repository development, diff and update accept an explicit Core repository or template source:

saas-core diff ../PlaceDJ --source ../saas-core --json
saas-core update ../PlaceDJ --source ../saas-core --dry-run --json
saas-core update ../PlaceDJ --source ../saas-core

--source resolves a Core repository to packages/app/template (or accepts a template directory directly). It is an explicit development-source override; without it, the installed/packed template and normal release update semantics are unchanged. The same manifest conflict checks, product-owned exclusions, backup, post-update validation and rollback apply to local-source updates. When the source is inside a Git checkout, init/update records its 40-character coreSourceCommit in the consumer manifest; it records no local path and older manifests without this optional field remain valid.

The CLI is tooling, not application runtime. Generated consumers place it in devDependencies; the app package is a template carrier and is not retained as a runtime dependency after materialization. update preflights the complete plan, blocks on managed conflicts, creates an independent backup, validates the result, and rolls back automatically if an apply or validation step fails.

pnpm run core:pack produces the five release tarballs used by the disposable consumer proof. The packed CLI carries the managed billing routes, persistence, entitlement, plan UI, lifecycle files, and Core migration sources; a legacy consumer receives those files during update while its catalog, styles, routes, product-owned migrations under supabase/migrations/product/**, and domain files remain product-owned. A same-path local file at the Core migration path blocks the update before mutation, and a failed update restores package and manifest metadata while removing newly added Core files.

init also creates runnable consumer scripts for local Supabase start/stop/ reset, generated database types, catalog sync (with .env.local support), lint, typecheck, tests, build and verify. It writes a product-specific README.md, AGENTS.md and .gitignore; the ignore policy is seeded from the canonical template/consumer.gitignore and is only created when missing. Those files plus .env.example and generated types/supabase.ts are explicitly product-owned or consumer-local and are never overwritten by update. The executable ownership list is packages/cli/bin/ownership.mjs, which is also used by the root/template parity check.