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

@sahan-sac/create-admin

v0.1.0

Published

Scaffold a new project from the admin-template (auth, RBAC, CMS, blog, media, leads, chatbot on Next.js). Run with `npm create @sahan-sac/admin@latest`.

Readme

create-admin

Scaffold a new project from admin-template: a Next.js admin panel starter with auth, RBAC, a CMS, a blog, media, leads/CRM and a chatbot.

Usage

npm create @sahan-sac/admin@latest my-app

npm maps npm create @sahan-sac/admin to the @sahan-sac/create-admin package (this one) and runs its create-admin binary. You can also run it directly:

npx @sahan-sac/create-admin my-app

If you omit the directory, the CLI asks for one.

Options

Usage: create-admin [dir] [options]

Arguments:
  dir                       Directory to create the project in (asked if omitted)

Options:
  --ref <git-ref>           Template tag/branch/commit to use (default: v<cli-version>)
  --pm <pnpm|npm|yarn|bun>  Package manager to install with (default: auto-detected)
  --auth <next-auth|better-auth>  Auth engine (asked if omitted; default: next-auth)
  --orm <prisma|drizzle>    ORM for the data layer (asked if omitted; default: prisma)
  --no-install              Skip installing dependencies
  --no-git                  Skip `git init` and the initial commit
  -h, --help                Show help
  -v, --version             Print the CLI version

A CLI version always scaffolds the matching template tag: [email protected] downloads v0.1.0 of the template unless you pass --ref.

What it does

  1. Refuses to run if dir already exists and is not empty.
  2. Downloads github:ks-official-Sahan/next-js-admin#<ref> with giget.
  3. Removes the scaffold's own cli/ folder and .github/workflows/release-cli.yml — those belong to the template repo, not to your project.
  4. Applies the chosen auth engine and ORM from the template's variants/variants.json (lib/variants.mjs): copies the overlay files, deletes what the choice does not use, edits package.json and .env.example, then removes variants/. Without a terminal, missing --auth/--orm take the defaults. A template version older than the variants only works with the defaults.
  5. Sets package.json's name to a valid npm package name derived from dir.
  6. Copies .env.example to .env.local, filling every *_SECRET/*_SIGNING_KEY variable with a fresh crypto.randomBytes(32) value and leaving provider keys (database, email, AI, Cloudinary, ...) blank for you to fill in.
  7. Optionally installs dependencies and initializes a git repository with one commit.
  8. Prints next steps (set DATABASE_URL, push the schema, seed the owner account, start the dev server).

Development

Pure helpers (argument parsing, npm name normalization, .env.local rendering, package-manager detection) live in lib/, each with node:test tests in test/:

node --test test/*.test.mjs

index.mjs is the thin orchestration layer (filesystem, giget, spawning install/git) and is exercised end-to-end by using the CLI itself, not unit tested directly.