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

@tenantscale/create-app

v0.2.0

Published

Scaffold a full-stack multi-tenant SaaS app with Next.js, Hono, and TenantScale

Readme

create-tenantscale-app

Scaffold a multi-tenant SaaS app with TenantScale — in minutes.

Usage

# Using npm
npm create tenantscale-app@latest

# Using pnpm
pnpm create tenantscale-app

# Using npx
npx create-tenantscale-app

Follow the interactive prompts to customize your project.

Non-interactive mode

In CI or non-TTY environments, defaults are used automatically. You can also pass a project name directly:

pnpm create tenantscale-app my-app

Interactive Prompts

| Prompt | Options | Description | |--------|---------|-------------| | Project name | text | Validated alphanumeric + hyphens/underscores | | Template tier | Minimal / Example / Full | How much starter code to include | | Framework | Next.js + Hono (more coming) | Which stack to scaffold | | Language | TypeScript / JavaScript | Source language for generated code | | Package manager | pnpm / npm / yarn | Used for dependency install | | Tenant column | tenant_id (default) or custom | Column name for tenant isolation | | Supabase | Skip / Enter credentials | Pre-fill .env.example with your project | | Stripe billing | Yes / No | Include billing integration (Example/Full tiers) | | Git init | Yes / No | Initialize repo + initial commit | | Install deps | Yes / No | Run package manager install |

Templates

Minimal

Bare scaffold with just the essentials:

  • API server with Hono + TenantScale SDK
  • Next.js web app shell
  • Supabase client setup
  • .env.example with required vars

Example (recommended)

Full-featured starter with working routes:

  • API: tenant management, API keys, team, audit, webhooks
  • Web: dashboard, login, register, team management, audit log, API keys, settings
  • Supabase: initialization migration with RLS policies
  • Components: navigation, auth providers, utility functions

Full Demo

Everything in Example, plus:

  • Stripe billing — checkout sessions, customer portal, webhook handling
  • RLS policies — helper functions and example policies for Supabase
  • Test file — tenant isolation test template
  • Subscription management pages

Post-Scaffold Hooks

After scaffolding, the CLI can:

  • Install dependencies with your chosen package manager
  • Initialize a git repo with an initial commit
  • Print framework-specific next steps

Adding New Frameworks

Template infrastructure supports multiple frameworks. To add one, create a new directory under each tier:

templates/
  minimal/
    next-hono/      # existing
    express/        # future
    fastify/        # future
  example/
    next-hono/      # existing
    ...
  full/
    next-hono/      # existing
    ...

Then add the framework to the FRAMEWORKS array in src/prompts.ts.

Development

# Install dependencies (from repo root)
pnpm install

# Build
pnpm --filter @tenantscale/create-app build

# Test
pnpm --filter @tenantscale/create-app test

# Run locally
node packages/create-app/dist/index.js test-project

What You Get

A complete multi-tenant SaaS starter with:

  • 🏢 Tenant isolation via Supabase RLS
  • 🔑 API key authentication
  • 📋 Audit logging
  • 💳 Stripe billing integration (optional)
  • 🚦 Rate limiting
  • 🔐 User authentication with Supabase Auth