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

create-nexpress

v0.1.31

Published

Scaffolder CLI for new NexPress projects (npx create-nexpress).

Downloads

1,629

Readme

create-nexpress

Scaffolder CLI for NexPress — the Next.js-based CMS.

Usage

npx create-nexpress my-site
cd my-site
pnpm install
docker compose -f docker/docker-compose.yml up -d db
pnpm run setup    # browser env wizard: DB, NP_SECRET, storage, migrations
pnpm dev

Every scaffold ships the four built-in themes (default, magazine, portfolio, docs) along with example collections and plugins. The active theme and whether to seed sample content are picked in the first-boot admin setup wizard at /admin/setup, not at scaffold time.

create-nexpress writes both .env.example and .env for you. Use the setup wizard to confirm the DB connection, generate or accept the auth secret, run migrations, create the first admin, pick a theme, and optionally seed starter content.

The site runs at localhost:3000 and the admin panel is at localhost:3000/admin.

What you get

A Next.js 16 App Router project with:

  • src/collections/ — example collections (posts, pages) using defineCollection()
  • src/nexpress.config.ts — site config (storage, auth, plugins)
  • src/db/generated/ — Drizzle schema generated from collections
  • src/app/(site) — public site routes with the catch-all [[...slug]]
  • src/app/(admin)/admin — login + protected admin shell
  • src/app/api/ — REST endpoints (rate-limited, CSRF-enforced via proxy.ts)
  • docker/docker-compose.yml — Postgres 16 plus Mailpit, with a project-specific host port to avoid collisions between scaffolds
  • .env.example / .env — every env var the project actually reads

Prerequisites

  • Node ≥ 20
  • pnpm ≥ 10
  • Docker (for the bundled Postgres) or any Postgres ≥ 14 reachable via DATABASE_URL

Next steps after scaffolding

  • Run the first-boot wizard: pnpm run setup
  • Start the site: pnpm dev, then open /admin
  • Publish your first page or post from the admin
  • Plan the deploy target: pnpm run deploy:plan -- --target vercel --brief --no-color
  • Apply production migrations: pnpm db:migrate
  • Run the pre-deploy gate: pnpm run ops:preflight -- --target vercel --brief --no-color
  • Capture release evidence: pnpm run ops:release -- check --target vercel --json
  • Verify after deploy: pnpm run ops:release -- verify --url https://your-domain.example --json
  • Deploy on Vercel: push your scaffold to GitHub, then import it from Vercel New Project
  • Add a collection: edit src/collections/<name>.ts, run pnpm db:generate && pnpm db:migrate
  • Read AGENTS.md — architecture overview
  • Read deployment.md — Docker, Vercel, Fly.io, Render, Railway

Links

License

MIT