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

clispark

v1.15.0

Published

Interactive scaffolding tool for new CLI projects

Readme

clispark

Interactive scaffolding tool for new CLI projects. Run npx clispark to generate a new, ready-to-run TypeScript CLI project with consistent logging, error handling, and command structure — no manual setup required.

npm version CI license

Quickstart

npx clispark

Answer four prompts — project name, work/private profile, an optional private registry URL (for "work"), and whether you plan to publish to npm — and clispark scaffolds a new directory, running git init, npm install, and npm run build for you. Thirty seconds later:

cd my-cli
node bin/run.ts hello

...prints a greeting from your first working command, with structured logging and clean error handling already wired up.

What you get

Every generated project includes:

  • oclif-based CLI structure with convention-based command discovery — drop a file in src/commands/, no manual registration needed
  • Structured logging (pino, one log file per invocation in an OS-appropriate log directory) that automatically covers every command
  • Consistent error handling with no opt-out — clean Error: <message> output on failure, full stack trace captured in the log file
  • A working test setup (vitest + @oclif/test) with an example test to copy from
  • Example commands — a minimal hello starting point plus a task/task complete/task list reference covering required args, optional args, enum-constrained args, an integer arg, a boolean flag, and subcommands
  • A clean build pipeline (tsup) producing a directly runnable binary

Usage

npx clispark

The wizard asks:

  1. Project name
  2. Profilework or private. work unlocks an optional registry URL prompt.
  3. Registry URL (work profile only) — leave empty for the public npm registry, or point at a private/company registry. If set, an .npmrc is generated so every future npm install in the project uses it automatically.
  4. Publish to npm? (default: No) — if yes, the project name is checked for availability against the target npm registry, and a taken name prompts you to try another instead of blocking hard. If no, the check is skipped entirely and the generated package.json is marked "private": true, so an accidental npm publish refuses to run.

Scaffolding then happens automatically: files are copied, git init plus an initial commit run, and npm install && npm run build leave you with a directly runnable project.

Updating a project

Generated projects track which files and package.json fields are generator-managed ("core") versus yours, in a .clispark/manifest.json written at scaffold time. From inside a generated project:

npx clispark update

pulls in the latest core improvements (base command, logger, build/test config, ARCHITECTURE.md, and the relevant package.json dependencies/scripts) from whichever clispark version npx resolves. It never touches anything under src/commands/, your README.md, or an .npmrc you added — those are yours. If you've hand-edited a core file yourself, update leaves it alone and reports it as skipped rather than overwriting your changes. It refuses to run against an unclean git working tree, and commits its own changes as a single, easily revertible commit.

npx clispark releasenotes

shows what changed between the clispark version your project last updated to and the latest one available, pulled straight from the project's GitHub releases.

Tech stack

Generator itself (clispark): TypeScript, commander (CLI structure), @clack/prompts (interactive wizard), cross-spawn (cross-platform shelling out to git/npm), pino + env-paths (own logging), tsup + vitest.

Generated boilerplate: TypeScript, oclif (command framework), pino + env-paths (logging), tsup (build), vitest + @oclif/test (testing).

Releases & CI

Releases are automated via release-please: commits to master follow Conventional Commits, and merging the running release PR publishes to npm via Trusted Publishing (OIDC) — no long-lived npm token involved. ci.yml runs on every push/PR: unit tests, typecheck, build, a blocking npm audit, and an end-to-end scaffold smoke test.

Development status

clispark is under active development — see CHANGELOG.md for the full release history and the implementation plans for the reasoning behind each milestone.

Development notes

This project is being built with the help of Claude. Implementation plans are written before coding starts and committed alongside the code under docs/superpowers/plans/, so the reasoning and step-by-step approach behind each milestone stays visible in version control.

Planning and execution follow the Superpowers skill set for Claude Code (brainstorming → writing-plans → subagent-driven-development) — credit to obra for that workflow.

License

MIT