create-sailor 1.3.2 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -29
- package/dist/index.js +130 -130
- package/package.json +13 -15
package/README.md
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
# create-sailor
|
|
2
2
|
|
|
3
|
-
> AI-
|
|
3
|
+
> Governed scaffolding for AI-native SaaS. Bootstrap the Nebutra Sailor platform baseline with multi-tenant foundations, region-aware defaults, and production-ready AI integrations.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/create-sailor)
|
|
6
6
|
[](https://www.gnu.org/licenses/agpl-3.0)
|
|
7
|
-
[](https://nebutra.com/licensing)
|
|
8
8
|
|
|
9
9
|
## Quick Start
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
+
# npx
|
|
13
|
+
npx create-sailor@latest
|
|
14
|
+
|
|
12
15
|
# npm
|
|
13
16
|
npm create sailor@latest
|
|
14
17
|
|
|
@@ -16,31 +19,23 @@ npm create sailor@latest
|
|
|
16
19
|
pnpm create sailor@latest
|
|
17
20
|
|
|
18
21
|
# bun
|
|
19
|
-
|
|
22
|
+
bunx create-sailor@latest
|
|
20
23
|
```
|
|
21
24
|
|
|
22
25
|
## What You Get
|
|
23
26
|
|
|
24
|
-
- **
|
|
25
|
-
- **
|
|
26
|
-
- **
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
- **Monitoring**: Sentry / Datadog / 阿里云 ARMS / 听云
|
|
30
|
-
- **Analytics**: PostHog / Plausible / Umami / 百度统计 / 神策 / GrowingIO
|
|
31
|
-
- **SMS**: Twilio / 阿里云短信 / 腾讯云短信 / 云片
|
|
32
|
-
- **Payment**: Stripe / Lemon Squeezy / 微信支付 / 支付宝
|
|
33
|
-
- **Social login (CN)**: 微信开放平台 · QQ · 钉钉 · 企业微信 · 飞书 · 微博
|
|
34
|
-
- **中国合规套件**: ICP 备案 · 公安备案 · Cookie 弹窗 · AIGC 算法备案声明 · 隐私政策模板
|
|
35
|
-
- **White-label**: `brand.config.ts` 一键换品牌(colors · domains · logos · SEO)
|
|
36
|
-
- **AGPL-3.0 + Commercial Exception**(Individual / OPC 免费)
|
|
27
|
+
- **Governed platform baseline** — web app, marketing site, API gateway, docs, Storybook, studio, and supporting infra packages scaffolded as one coherent monorepo
|
|
28
|
+
- **Verified scaffolding path** — region-aware defaults, template checks, and reproducible project bootstrap instead of hand-assembling a starter stack
|
|
29
|
+
- **AI runtime foundation** — provider registry, Vercel AI SDK v5, OpenAI-compatible endpoints, and agent-ready packages wired into the platform baseline
|
|
30
|
+
- **Global + China delivery surface** — email, storage, monitoring, analytics, SMS, payments, and CN social login options selected through one scaffolding flow
|
|
31
|
+
- **Brand, tenant, and compliance primitives** — white-label branding, multi-tenant foundations, and China-market compliance scaffolding already wired in
|
|
37
32
|
|
|
38
33
|
## Usage
|
|
39
34
|
|
|
40
35
|
### Interactive (recommended)
|
|
41
36
|
|
|
42
37
|
```bash
|
|
43
|
-
|
|
38
|
+
npx create-sailor@latest
|
|
44
39
|
```
|
|
45
40
|
|
|
46
41
|
Asks just 4 questions: **project name / region / auth / AI providers**. Everything else uses region-aware smart defaults.
|
|
@@ -114,23 +109,33 @@ callbacks exchange `code` for provider access tokens and leave a
|
|
|
114
109
|
```bash
|
|
115
110
|
cd my-app
|
|
116
111
|
pnpm install
|
|
112
|
+
# create .env.local and add your provider credentials
|
|
113
|
+
pnpm db:migrate
|
|
114
|
+
pnpm db:seed
|
|
117
115
|
pnpm dev
|
|
118
116
|
```
|
|
119
117
|
|
|
118
|
+
Useful follow-ups:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
pnpm brand:init
|
|
122
|
+
pnpm brand:apply
|
|
123
|
+
pnpm generate:api-types
|
|
124
|
+
```
|
|
125
|
+
|
|
120
126
|
## Why Sailor?
|
|
121
127
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
128
|
+
Sailor is not a thin starter with a long feature checklist. It is the governed
|
|
129
|
+
platform baseline Nebutra uses for AI-native SaaS: auth, billing, branding,
|
|
130
|
+
docs, tenant-aware app structure, and AI integration are scaffolded into a
|
|
131
|
+
single monorepo you can extend instead of re-assembling from scratch.
|
|
125
132
|
|
|
126
133
|
## Roadmap
|
|
127
134
|
|
|
128
|
-
-
|
|
129
|
-
-
|
|
130
|
-
-
|
|
131
|
-
-
|
|
132
|
-
- 🔜 **v1.4** — `sailor add <feature>` with remote registry
|
|
133
|
-
- 🔜 **v1.5** — Interactive AI Welcome page with onboarding assistant
|
|
135
|
+
- **Verified scaffolding** — immutable template delivery, scaffold smoke validation, and safer bootstrap defaults
|
|
136
|
+
- **Remote feature registry** — `nebutra add` with compatibility checks, provider awareness, and controlled file application
|
|
137
|
+
- **Harness runtime** — stronger MCP, agent, and automation primitives for AI-native SaaS workflows
|
|
138
|
+
- **Upgrade path** — version-aware migrations, diagnostics, and guided adoption of new platform capabilities
|
|
134
139
|
|
|
135
140
|
## Documentation
|
|
136
141
|
|
|
@@ -141,10 +146,10 @@ process.
|
|
|
141
146
|
|
|
142
147
|
## License
|
|
143
148
|
|
|
144
|
-
AGPL-3.0 with
|
|
149
|
+
AGPL-3.0 with a commercial license exception.
|
|
145
150
|
See [LICENSE-COMMERCIAL.md](https://github.com/nebutra/nebutra-sailor/blob/main/LICENSE-COMMERCIAL.md) for details.
|
|
146
|
-
|
|
151
|
+
Commercial and individual licensing details: [get-license](https://nebutra.com/get-license).
|
|
147
152
|
|
|
148
153
|
---
|
|
149
154
|
|
|
150
|
-
**
|
|
155
|
+
**Built by [Nebutra](https://nebutra.com)** for teams shipping AI-native products.
|