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

v0.1.1

Published

Scaffolds a new project from the Orbit SaaS starter kit. Asks which optional features to include (teams, billing, uploads, waitlist) and strips the rest.

Readme

create-orb

Scaffolds a new project from the Orbit SaaS starter kit.

npm create orb@latest my-app
# or
npx create-orb my-app
# or
pnpm create orb my-app

What it does

  1. Asks which optional features you want. Four y/n prompts:
    • Teams + per-team PBAC — nested role scope inside a workspace
    • Billing — Stripe subscriptions, webhooks, customer portal
    • File uploads — UploadThing-backed avatars/images
    • Waitlist — gated signups behind an allowlist
  2. Clones the upstream Orbit repo at the chosen ref.
  3. Runs a strip pass that removes any feature you said no to. It uses // +feature:<name> / // -feature:<name> fence markers inside source files plus a repo-root features.json manifest to know what to delete.
  4. Optionally runs npm install.
  5. Prints next steps.

Nothing is written until after you confirm the summary.

Flags

create-orb [<target>] [options]

  --from <url|path>          Template source. Git URL or local directory.
                             Default: upstream Orbit repo.
  --ref <branch>             Branch, tag, or commit to clone. Default: main.

  --teams=yes|no             Include per-team PBAC.
  --billing=yes|no           Include billing (Stripe).
  --billing-provider=stripe  Pick a billing provider. Only stripe today.
  --uploads=yes|no           Include file uploads (UploadThing).
  --waitlist=yes|no          Include the waitlist flow.

  --no-install               Skip `npm install` after scaffolding.
  -y, --yes                  Accept defaults for anything not given as a flag.
  -h, --help
  -v, --version

Env-var equivalents: ORBIT_TEMPLATE_SOURCE, ORBIT_TEMPLATE_REF.

Headless / CI example

create-orb ./out \
  --from ~/code/orbit \
  --teams=yes --billing=no --uploads=yes --waitlist=no \
  --no-install -y

How the strip works

Every optional feature declares itself in features.json at the root of the template:

{
  "features": {
    "teams": {
      "files": ["apps/api/src/teams/", "apps/api/src/interfaces/http/controllers/teams.controller.ts", ...],
      "envKeys": []
    }
  }
}

For each feature the user opts out of, the strip pass:

  1. Deletes every files path recursively (directories or single files).
  2. Walks the whole repo once and removes every line between // +feature:<name> and // -feature:<name> markers, inclusive. The walker skips node_modules/, .git/, build outputs, etc. This means contributors can add fences in new files without having to update features.json — the walk is the source of truth.
  3. Scrubs every envKeys entry from apps/*/.env.example.

Three fence syntaxes are accepted so the same markers work across TS, TSX, Prisma, and JSX contexts:

// +feature:teams
// -feature:teams

/* +feature:teams */
/* -feature:teams */

{/* +feature:teams */}
{/* -feature:teams */}

Fences must live on their own line, paired, at the same nesting. Nested SAME-name fences are disallowed; nested DIFFERENT-name fences are fine.

Development

# in the Orbit monorepo
cd packages/create-orb
npm run dev -- ./tmp-app --from /Users/you/code/orbit -y --no-install

--from accepts a local path for fast dev loops (no git round-trip).