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-celsian

v0.6.3

Published

Scaffold new CelsianJS applications

Downloads

268

Readme

create-celsian

Scaffold a new CelsianJS project. No install needed, no external dependencies.

npm create celsian@latest my-api
cd my-api
npm install
npm run dev

Equivalent forms:

npx create-celsian my-api
npx create-celsian my-api --template rest-api
npx @celsian/cli create my-api --template rest-api

Usage

npx create-celsian <name> [--template <id>] [--force]

| Flag | Default | Description | |------|---------|-------------| | --template, -t <id> | full | Which template to scaffold | | --force | off | Scaffold into an existing non-empty directory |

Passing flags through npm create

npm create claims every flag that follows the package name for itself, so a -- separator is required. Without it npm eats the flag and passes only its value through, which the scaffolder refuses rather than guessing at:

npm create celsian@latest my-api -- --template basic   # correct
npx create-celsian@latest my-api --template basic      # also correct

npm create celsian@latest my-api --template basic      # error: npm ate --template

<name> must be a valid npm package name: lowercase, no spaces, not starting with . or _. The project is created in ./<name> and the name is substituted into package.json and the README.

Templates

| Template | What you get | |----------|--------------| | full | Auth (JWT), user CRUD, RPC, background tasks, cron, OpenAPI/Swagger, CSRF + CORS + rate limiting, Docker, tests | | basic | One app file with a health route and a params route | | rest-api | REST CRUD with TypeBox request validation | | rpc-api | @celsian/rpc procedures under /_rpc/* with an exported AppRouter type |

Every template ships with:

  • TypeScript, ESM, strict mode
  • .env plus a dev script that loads it
  • npm test (Vitest, driving the app through app.inject() with no open port)
  • npm run lint (tsc --noEmit)
  • npm run build / npm start

The full template additionally ships .env.example, a multi-stage Dockerfile, and a much longer README.

Scripts in a scaffolded project

npm run dev     # tsx watch mode, loads .env
npm test        # Vitest
npm run lint    # tsc --noEmit
npm run build   # tsc -> dist/
npm start       # node dist/index.js, loads .env

What the entry file looks like

Every template exports the app and only starts a server when the file is the process entry point, so tests, celsian routes, and serverless handlers can import it without binding a port:

import { pathToFileURL } from 'node:url';
import { createApp, serve } from 'celsian';

export const app = createApp();

app.get('/health', (_req, reply) => reply.json({ status: 'ok' }));

if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) {
  serve(app);
}

Production notes for the full template

It refuses to boot with NODE_ENV=production when it is still insecure by default:

  • JWT_SECRET left at a scaffold placeholder value.
  • TRUST_PROXY unset, which would put every client in a single shared rate-limit bucket. Set TRUST_PROXY=true (and TRUSTED_PROXY_HOPS if more than one proxy sits in front of the app) so the limiter keys on the real client IP, or replace the keyGenerator in src/plugins/security.ts.

The dev-only GET /auth/token route is not registered in production either.

Requirements

Node.js 20 or newer.

License

MIT