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

@simple-auth-kit/cli

v3.1.1

Published

simple-auth-kit add <combo> — copies registry source (backend combos, admin consoles, mobile apps) into a consumer repo, shadcn-CLI-style. Nothing is ever installed as a runtime dependency of the consumer.

Downloads

4,544

Readme

@simple-auth-kit/cli

The CLI for simple-auth-kit — a shadcn/ui-style auth library. It copies source (backend combos, admin consoles, mobile apps) into your own project; nothing is ever installed as a runtime dependency of your app.

Install

Nothing to install — use it directly with npx:

npx @simple-auth-kit/cli add nestjs-prisma --into .

Package: https://www.npmjs.com/package/@simple-auth-kit/cli

Commands

npx @simple-auth-kit/cli                              # don't know which combo yet? asks: kind, then framework, then variant
npx @simple-auth-kit/cli add <combo> [--workspaces]   # already know? install it directly
npx @simple-auth-kit/cli update [--check]             # re-installs whatever you installed last — no args needed
npx @simple-auth-kit/cli diff                         # shows the actual content diff for every file that differs from the registry (api combos only)
npx @simple-auth-kit/cli --help                       # full command/flag reference + available combos

init and bare add do the same guided walkthrough as running the CLI with no arguments at all; init additionally writes .simple-auth-kit.json (install path, alias) first.

--into <path> targets any directory (defaults to the current one). In a real terminal, without --force or --check, a file that's changed locally since install prompts you — per file — before it's overwritten; outside a TTY (CI/scripts) it's left alone by default and reported at the end, same as --force always applying and --check never writing anything.

Dependencies are installed for you, shadcn-add-style — no separate npm install step, and version-pinned to match what each combo is actually built and tested against (not just bare package names left to resolve to "latest"). The package manager is auto-detected from a lockfile already in the target directory; with no lockfile to go on (a brand new directory, most commonly) a real terminal is asked which one to use. Override either with --pm <npm|pnpm|yarn|bun>, or skip the install entirely with --skip-install if you'd rather review package.json first.

Available combos

Add --workspaces to any of these for the workspaces variant.

api — merged into src of an existing project by default (configurable via --path/--alias; the Prisma/Drizzle config + database/ land at the project root regardless — see below):

npx @simple-auth-kit/cli add nestjs-prisma --into .
npx @simple-auth-kit/cli add nestjs-drizzle --into .
npx @simple-auth-kit/cli add express-prisma --into .
npx @simple-auth-kit/cli add express-drizzle --into .

admin — a whole new standalone app, scaffolded at the target (refuses a non-empty target unless --force):

npx @simple-auth-kit/cli add admin-nextjs --into ./admin
npx @simple-auth-kit/cli add admin-react --into ./admin

mobile — a whole new standalone app, scaffolded at the target (same non-empty-target rule):

npx @simple-auth-kit/cli add mobile-expo --into ./mobile
npx @simple-auth-kit/cli add mobile-bare-rn --into ./mobile

Your own database models are safe

The Prisma combos install prisma.config.ts + database/ at your project root, using Prisma's own multi-file schema support: the CLI's own models live in database/schema/, split by domain (schema.prisma for the generator and datasource, then user, rbac, auth, audit-log, and workspace in the workspaces variant), and Prisma merges every .prisma file in that folder. Add your own models in a file alongside them under a name the kit doesn't use (e.g. database/schema/app.prisma) — the CLI only ever tracks the files it installed (by name, in auth.lock.json), so update never touches yours, --force included. database/ also holds migrations/, seed.ts + seedData/ (seed-only data the app never imports — edit or delete it freely), and the generated Prisma client (database/generated/prisma/), all reachable from your own source via the "@/database/*": ["./database/*"] tsconfig alias the CLI asks you to add.

The Drizzle combos work the same way at a smaller scale: drizzle.config.ts's schema field is [schema.ts, *.schema.ts], both under database/ — add your own tables in a sibling *.schema.ts file (e.g. billing.schema.ts, next to the CLI-managed database/schema.ts) and drizzle-kit picks it up automatically, with no edits to drizzle.config.ts itself.

Clone the source

This is a standalone copy, published from the monorepo, with the registry it installs from bundled in. To pull just this package's source without cloning the whole repo:

npx degit shahriar-ratul/simple-auth-kit/packages/cli cli

(Note: unlike a plain npm install, this clone won't have registry/ bundled in — that folder is generated fresh from the monorepo's own registry/ right before every publish. Run against the monorepo checkout instead if you need the registry alongside the CLI source — see Development below.)

Development

Run directly against this monorepo's own registry/ (no publish/bundle step needed — see simple-auth-kit.ts's REGISTRY_ROOT resolution):

cd packages/cli
npm run typecheck
npx tsx simple-auth-kit.ts add <combo> --into ../../examples/<app>

npm run prepack (or a real npm publish/npm pack) bundles a fresh copy of the repo's registry/ into registry/ here first — that's what makes the published package self-contained. See scripts/bundle-registry.mjs.

Source

Full source, every backend combo, and every consuming app: simple-auth-kit.