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

v1.3.6

Published

Governed AI-native SaaS scaffolder for Nebutra Sailor. Bootstrap a production-ready Next.js + Hono + Prisma monorepo with multi-tenant foundations, region-aware defaults, and AI integrations.

Readme

create-sailor

Governed scaffolding for AI-native SaaS. Bootstrap the Nebutra Sailor platform baseline with multi-tenant foundations, region-aware defaults, and production-ready AI integrations.

npm version License: AGPL-3.0 Commercial License

Quick Start

# npx
npx create-sailor@latest

# npm
npm create sailor@latest

# pnpm
pnpm create sailor@latest

# bun
bunx create-sailor@latest

What You Get

  • Governed platform baseline — web app, marketing site, API gateway, docs, Storybook, studio, and supporting infra packages scaffolded as one coherent monorepo
  • Verified scaffolding path — region-aware defaults, template checks, and reproducible project bootstrap instead of hand-assembling a starter stack
  • AI runtime foundation — provider registry, Vercel AI SDK v5, OpenAI-compatible endpoints, and agent-ready packages wired into the platform baseline
  • Global + China delivery surface — email, storage, monitoring, analytics, SMS, payments, and CN social login options selected through one scaffolding flow
  • Brand, tenant, and compliance primitives — white-label branding, multi-tenant foundations, and China-market compliance scaffolding already wired in

Usage

Interactive (recommended)

npx create-sailor@latest

Asks just 4 questions: project name / region / auth / AI topology. Everything else uses region-aware smart defaults.

The AI prompt is topology-first:

  • gateway — Multi-provider AI Gateway / router, the recommended default. The scaffold seeds a small provider registry for local development, but runtime provider enablement stays a governance/routing concern.
  • direct — Direct SDK/provider adapters for teams that intentionally want concrete providers wired at create time.
  • custom — OpenAI-compatible endpoint for proxy, local, or enterprise gateway deployments.
  • none — Skip AI scaffolding.

Non-interactive (expert mode)

npm create sailor@latest my-app \
  --region=cn \
  --auth=clerk \
  --social-login=wechat,dingtalk,feishu \
  --ai=deepseek,qwen,siliconflow \
  --email=aliyun-dm \
  --storage=aliyun-oss \
  --monitoring=sentry \
  --analytics=baidu \
  --sms=aliyun-sms \
  --payment=wechat \
  --deploy=selfhost \
  -y

CLI Flags

| Flag | Values | Default | |------|--------|---------| | --region | global · cn · hybrid | global | | --auth | clerk · betterauth · none | clerk | | --social-login | wechat,qq,dingtalk,workweixin,feishu,weibo (comma-sep) | none | | --payment | stripe · lemon · wechat · alipay · none | region-based | | --ai | expert/non-interactive provider seed, comma-separated ids; omit it to use the governed gateway topology | gateway seed | | --email | resend · postmark · ses · aliyun-dm · tencent-ses · netease · none | region-based | | --storage | r2 · s3 · supabase-storage · aliyun-oss · tencent-cos · qiniu · none | region-based | | --monitoring | sentry · datadog · aliyun-arms · tingyun · none | region-based | | --analytics | posthog · plausible · umami · baidu · sensors · none | region-based | | --sms | twilio · aliyun-sms · tencent-sms · yunpian · none | region-based | | --deploy | vercel · railway · cloudflare · selfhost | vercel | | --docs | fumadocs · none | fumadocs | | --orm | prisma · drizzle · none | prisma | | --db | postgres · mysql · sqlite · none | postgresql | | --i18n / --no-i18n | boolean | true | | -y, --yes | accept all defaults (non-interactive) | — | | --dry-run | preview actions without writing | — | | --json | machine-readable output | — |

Region Presets

| Region | Email | Storage | Analytics | Monitoring | SMS | Payment | |--------|-------|---------|-----------|------------|-----|---------| | global | Resend | R2 | PostHog | Sentry | Twilio | Stripe | | cn | Alibaba Cloud DirectMail | Alibaba Cloud OSS | Baidu Analytics | Sentry | Alibaba Cloud SMS | WeChat Pay | | hybrid | Resend | Alibaba Cloud OSS | PostHog | Sentry | Alibaba Cloud SMS | Stripe |

Social login (CN)

Adding --social-login=wechat,dingtalk extends your primary auth provider (Clerk or Better Auth) with China-region OAuth:

  • Generates apps/web/src/app/api/auth/callback/<id>/route.ts stubs with the correct token-exchange endpoints (WeChat / QQ / DingTalk / WeCom / Feishu / Weibo)
  • Generates apps/web/src/components/auth/SocialLoginButtons.tsx with one button per selected provider
  • Appends all required env vars to .env.example

The primary auth provider still owns user/session lifecycle — the generated callbacks exchange code for provider access tokens and leave a // TODO: upsert into primary auth marker for the user to wire up.

After Scaffolding

cd my-app
pnpm install
# create .env.local and add your provider credentials
pnpm db:migrate
pnpm db:seed
pnpm dev

Useful follow-ups:

pnpm brand:init
pnpm brand:apply
pnpm generate:api-types

Why Sailor?

Sailor is not a thin starter with a long feature checklist. It is the governed platform baseline Nebutra uses for AI-native SaaS: auth, billing, branding, docs, tenant-aware app structure, and AI integration are scaffolded into a single monorepo you can extend instead of re-assembling from scratch.

Roadmap

  • Verified scaffolding — immutable template delivery, scaffold smoke validation, and safer bootstrap defaults
  • Remote feature registrynebutra add with compatibility checks, provider awareness, and controlled file application
  • Harness runtime — stronger MCP, agent, and automation primitives for AI-native SaaS workflows
  • Upgrade path — version-aware migrations, diagnostics, and guided adoption of new platform capabilities

Documentation

License

AGPL-3.0 with a commercial license exception. See LICENSE-COMMERCIAL.md for details. Commercial and individual licensing details: get-license.


Built by Nebutra for teams shipping AI-native products.