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

init-offense

v0.1.0

Published

Create a new app from the init-offense template: sign-in, Postgres, Redis and a PageSpace drive, running locally in one command.

Readme

init-offense

Start a new app from init-offense with one command:

npx init-offense my-app
# or
bunx init-offense my-app
# or install it once, then run it anywhere
npm i -g init-offense
init-offense my-app

It checks for Git and Bun (offering to install Bun with the official installer), downloads the template, and starts a guided setup that:

  1. asks for your app's name and where to put it;
  2. checks the tools it needs (Docker, the GitHub CLI, the PageSpace CLI) and offers to install the missing ones, showing each command first;
  3. signs you in to GitHub and PageSpace (it opens the PageSpace sign-up page if you have no account yet);
  4. creates the project, a private GitHub repository and the project's PageSpace drive, using a temporary PageSpace key it revokes afterwards;
  5. starts the database and the app on free local ports and opens the sign-in page and your drive in the browser. Sign-in links print in the terminal (lines starting with [dev-mail]) until you add a Resend key.

Every flag after the directory goes to the guided setup:

| Flag | Effect | | ------------------- | ------------------------------------------------- | | --name <slug> | short name for code and URLs, e.g. widget-app | | --display <name> | the app's name as people see it | | --owner <owner> | GitHub account or organization for the repository | | --no-github | no GitHub repository | | --no-drive | no PageSpace drive | | --no-run | do not start the app at the end | | --yes | accept every default without asking | | --dry-run | show every action without running any | | --template <path> | use a local checkout or another Git URL |

INIT_OFFENSE_TEMPLATE=<path or git url> does the same as --template.

Requires Node 18 or newer (only to run this starter) and macOS or Linux (on Windows, run it inside WSL).

License

MIT