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

v0.1.0

Published

Create a new launch.now saas app

Downloads

12

Readme

create-saas-app

Official CLI for Launch.now — the production-ready SaaS boilerplate for solo builders, indie hacker, and developers, built in Next.Js.


Requirements


Usage

npx create-saas-app my-app
# or
pnpm dlx create-saas-app my-app

The CLI will guide you through an interactive setup:

  1. License key — validates your Launch.now license
  2. Project name — the name of the folder to create
  3. Architecture — choose between B2B or B2C mode
  4. Auth features — optionally enable 2FA and/or Passkeys
  5. Git — optionally initialize a git repository
  6. Dependencies — optionally run pnpm install

Options

| Flag | Description | | ---------------- | ---------------------------- | | --b2b | Use B2B mode (skip prompt) | | --b2c | Use B2C mode (skip prompt) | | --skip-git | Skip git initialization | | --skip-install | Skip dependency installation |

# Example: create a B2C app without installing deps
npx create-saas-app my-app --b2c --skip-install

Modes

Multi-tenant SaaS model - B2B

Multi-tenant architecture with organizations, roles, and invitations. Includes:

  • Organization setup and management
  • Member invitations and role-based access
  • Per-organization billing via Stripe

Single-tenant SaaS model - B2C

Individual user architecture with personal billing. Includes:

  • User profile and account management
  • Personal Stripe subscription
  • Simplified auth flow

Authentication Plugins

Both modes support optional advanced authentication features:

| Plugin | Description | | ------------------- | ---------------------------------------------------------- | | Two-Factor Auth | TOTP-based 2FA with backup codes | | Passkeys | WebAuthn passwordless login (requires HTTPS in production) |

Unselected plugins are fully removed from the output — including their files, components, and npm dependencies.


What gets generated

my-app/
├── app/                  # Next.js App Router pages
├── src/
│   ├── components/       # UI and feature components
│   ├── lib/              # Auth, Stripe, Prisma, Inngest...
│   ├── store/            # Zustand stores
│   └── utils/            # Shared utilities
├── prisma/               # Prisma schema and migrations
├── emails/               # React Email templates
├── .env.local            # Pre-filled env template
└── package.json          # Cleaned up for your chosen mode

The .env.local is generated automatically with all the required variables for your stack.


After setup

cd my-app

# 1. Fill in your environment variables
#    Edit .env.local with your DB, Stripe, Resend, etc.

# 2. Push the database schema
pnpm db:push

# 3. Start the dev server
pnpm dev

Full documentation: docs.launch.now


Additional commands

gen-index

Generates barrel index.ts files for TypeScript directories.

# Generate index.ts for a single directory
create-saas-app gen-index src/components/ui

# Recursively generate for all subdirectories
create-saas-app gen-index src/components --recursive

# Preview without writing
create-saas-app gen-index src/components --dry

# Watch mode — auto-regenerate on file changes
create-saas-app gen-index src/components --watch

Files matching *.test.ts, *.spec.ts, *.stories.ts are automatically excluded. Add // @barrel-ignore as the first line of any file to exclude it manually. Type-only files automatically use export type * instead of export *.


License

This CLI is part of the Launch.now boilerplate and is covered by your Launch.now license. Redistribution or resale is not permitted.