create-next16-saas 0.1.3
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.hbs +51 -0
- package/README.md +53 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +9 -0
- package/package.json +55 -0
package/README.hbs
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# {{packageName}} - The Indie Kit CLI
|
|
2
|
+
|
|
3
|
+
The official CLI for [Indie Kit](https://indiekit.pro) - The ultimate Next.js SaaS Starter Kit.
|
|
4
|
+
|
|
5
|
+
Scaffold a new production-ready SaaS application in seconds.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
To scaffold a new project, run the following command directly:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
# ✅ Correct usage
|
|
13
|
+
{{command}}
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Features
|
|
17
|
+
|
|
18
|
+
- 🚀 **Instant Setup**: Scaffolds a Next.js 14+ project optimized for SaaS.
|
|
19
|
+
- 📦 **Smart Caching**: Uses `tiged` for fast, history-free cloning.
|
|
20
|
+
- 🛠 **Interactive Wizard**: Customized setup for your needs.
|
|
21
|
+
- 💎 **Version Selection**: Choose between the free Open Source version or the Pro Production Suite.
|
|
22
|
+
|
|
23
|
+
## Versions
|
|
24
|
+
|
|
25
|
+
### Lite (Open Source)
|
|
26
|
+
Free forever. Includes:
|
|
27
|
+
- Next.js 14 (App Router)
|
|
28
|
+
- Tailwind CSS & Shadcn UI
|
|
29
|
+
- Basic Authentication Setup
|
|
30
|
+
- Marketing Landing Page
|
|
31
|
+
|
|
32
|
+
### Pro (Production SaaS)
|
|
33
|
+
Everything in Lite, plus:
|
|
34
|
+
- Stripe Payments & Subscriptions
|
|
35
|
+
- Admin Dashboard
|
|
36
|
+
- AI Integration
|
|
37
|
+
- Blog & Documentation Support
|
|
38
|
+
- Email Marketing Integration
|
|
39
|
+
|
|
40
|
+
### Pro (B2B Multi-tenant)
|
|
41
|
+
Advanced features for B2B applications:
|
|
42
|
+
- Organization/Team Management
|
|
43
|
+
- Member Invites & Roles
|
|
44
|
+
- RBAC (Role-Based Access Control)
|
|
45
|
+
- Enterprise Features
|
|
46
|
+
|
|
47
|
+
[Get Indie Kit Pro](https://indiekit.pro)
|
|
48
|
+
|
|
49
|
+
## License
|
|
50
|
+
|
|
51
|
+
ISC © [Indie Kit](https://indiekit.pro)
|
package/README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# create-next16-saas - The Indie Kit CLI
|
|
2
|
+
|
|
3
|
+
The official CLI for [Indie Kit](https://indiekit.pro) - The ultimate Next.js SaaS Starter Kit.
|
|
4
|
+
|
|
5
|
+
Scaffold a new production-ready SaaS application in seconds.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
To scaffold a new project, run the following command directly:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
# ✅ Correct usage
|
|
13
|
+
npm init next16-saas
|
|
14
|
+
# or
|
|
15
|
+
pnpm create next16-saas
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Features
|
|
19
|
+
|
|
20
|
+
- 🚀 **Instant Setup**: Scaffolds a Next.js 14+ project optimized for SaaS.
|
|
21
|
+
- 📦 **Smart Caching**: Uses `tiged` for fast, history-free cloning.
|
|
22
|
+
- 🛠 **Interactive Wizard**: Customized setup for your needs.
|
|
23
|
+
- 💎 **Version Selection**: Choose between the free Open Source version or the Pro Production Suite.
|
|
24
|
+
|
|
25
|
+
## Versions
|
|
26
|
+
|
|
27
|
+
### Lite (Open Source)
|
|
28
|
+
Free forever. Includes:
|
|
29
|
+
- Next.js 14 (App Router)
|
|
30
|
+
- Tailwind CSS & Shadcn UI
|
|
31
|
+
- Basic Authentication Setup
|
|
32
|
+
- Marketing Landing Page
|
|
33
|
+
|
|
34
|
+
### Pro (Production SaaS)
|
|
35
|
+
Everything in Lite, plus:
|
|
36
|
+
- Stripe Payments & Subscriptions
|
|
37
|
+
- Admin Dashboard
|
|
38
|
+
- AI Integration
|
|
39
|
+
- Blog & Documentation Support
|
|
40
|
+
- Email Marketing Integration
|
|
41
|
+
|
|
42
|
+
### Pro (B2B Multi-tenant)
|
|
43
|
+
Advanced features for B2B applications:
|
|
44
|
+
- Organization/Team Management
|
|
45
|
+
- Member Invites & Roles
|
|
46
|
+
- RBAC (Role-Based Access Control)
|
|
47
|
+
- Enterprise Features
|
|
48
|
+
|
|
49
|
+
[Get Indie Kit Pro](https://indiekit.pro)
|
|
50
|
+
|
|
51
|
+
## License
|
|
52
|
+
|
|
53
|
+
ISC © [Indie Kit](https://indiekit.pro)
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{Command as O}from"commander";import r from"path";import n from"fs-extra";import _ from"tiged";import u from"ora";import{input as $,select as C,confirm as j}from"@inquirer/prompts";import{execa as g}from"execa";import N from"open";import E from"picocolors";import R from"crypto";import S from"picocolors";var k=()=>{console.log(),console.log(S.cyan(`
|
|
3
|
+
\u2588\u2588\u2557\u2588\u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557
|
|
4
|
+
\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D \u2588\u2588\u2551 \u2588\u2588\u2554\u255D\u2588\u2588\u2551\u255A\u2550\u2550\u2588\u2588\u2554\u2550\u2550\u255D
|
|
5
|
+
\u2588\u2588\u2551\u2588\u2588\u2554\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2554\u255D \u2588\u2588\u2551 \u2588\u2588\u2551
|
|
6
|
+
\u2588\u2588\u2551\u2588\u2588\u2551\u255A\u2588\u2588\u2557\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u255D \u2588\u2588\u2554\u2550\u2588\u2588\u2557 \u2588\u2588\u2551 \u2588\u2588\u2551
|
|
7
|
+
\u2588\u2588\u2551\u2588\u2588\u2551 \u255A\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551 \u2588\u2588\u2557\u2588\u2588\u2551 \u2588\u2588\u2551
|
|
8
|
+
\u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u2550\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D
|
|
9
|
+
`)),console.log(S.dim(" Next.js SaaS Starter Kit CLI")),console.log()};import d from"picocolors";var s={success:t=>console.log(d.green(`\u2714 ${t}`)),error:t=>console.log(d.red(`\u2716 ${t}`)),info:t=>console.log(d.blue(`\u2139 ${t}`)),warn:t=>console.log(d.yellow(`\u26A0 ${t}`))};var T=async t=>{k();let a=t[0];a||(a=await $({message:"Where should we create your new project?",default:"my-saas"}));let o=r.resolve(process.cwd(),a);n.existsSync(o)&&n.readdirSync(o).length>0&&(s.error(`Directory ${a} is not empty.`),process.exit(1));let w=await C({message:"Which version would you like to use?",choices:[{name:"Lite (Open Source) - Free, basic features",value:"lite"},{name:"Pro (Production SaaS) - Payments, Auth, Admin, AI",value:"pro"},{name:"Pro (B2B Multi-tenant) - Organizations, Roles, Invites",value:"b2b"}]}),f="Indie-Kit/nextjs-saas-starter",p=!1,m="";if(w==="pro"?(f="indie-kit/indie-kit",m="https://github.com/indie-kit/indie-kit.git",p=!0):w==="b2b"&&(f="indie-kit/b2b-boilerplate",m="https://github.com/indie-kit/b2b-boilerplate.git",p=!0),p){let e=u("Checking repository access...").start();try{await g("git",["ls-remote",m],{env:{GIT_TERMINAL_PROMPT:"0"}}),e.succeed("Access verified.")}catch{e.fail("Access denied."),s.error("You do not have access to this repository."),s.info("Opening access page..."),await N("https://indiekit.pro/app/repo-access?ref=cli&utm_source=cli&utm_medium=terminal"),process.exit(0)}}let x=u("Downloading template...").start();try{p?(await g("git",["clone","--depth","1",m,o]),await n.remove(r.join(o,".git"))):await _(f,{disableCache:!0,force:!0}).clone(o),x.succeed("Template downloaded successfully.")}catch(e){x.fail("Failed to download template."),s.error(e.message),process.exit(1)}let b=await j({message:"Install dependencies now?",default:!0});if(b){let e=u("Installing dependencies...").start(),i=process.env.npm_config_user_agent||"",v=i.startsWith("yarn")?"yarn":i.startsWith("pnpm")?"pnpm":"npm";try{await g(v,["install"],{cwd:o}),e.succeed("Dependencies installed.")}catch(l){e.fail("Failed to install dependencies."),s.error(l.message)}}if(await j({message:"Initialize .env.local file with fresh secrets?",default:!0})){let e=u("Generating secrets...").start();try{let i=r.join(o,".env.example"),v=r.join(o,".env.local");if(n.existsSync(i)){let l=n.readFileSync(i,"utf-8"),P=R.randomBytes(32).toString("hex");l=l.replace(/BETTER_AUTH_SECRET=.*|NEXTAUTH_SECRET=.*/g,`BETTER_AUTH_SECRET="${P}"`),n.writeFileSync(v,l),e.succeed("Generated .env.local with secure keys.")}else e.warn("No .env.example found, skipping.")}catch{e.fail("Failed to setup .env.local")}}let h=r.join(o,"package.json");if(n.existsSync(h)){let e=n.readJsonSync(h);e.name=r.basename(o),e.version="0.1.0",n.writeJsonSync(h,e,{spaces:2})}s.success(`Project created at ${E.green(o)}`),console.log(),console.log("Next steps:"),console.log(` cd ${a}`),b||console.log(" pnpm install"),console.log(" pnpm dev"),console.log(),console.log(E.yellow('AI Tip: "Open in Cursor/Claude and run /bootstrap"'));let c=await C({message:"Open project in which editor?",choices:[{name:"Cursor (Recommended)",value:"cursor"},{name:"Claude (CLI)",value:"claude"},{name:"Antigravity",value:"antigravity"},{name:"Windsurf",value:"windsurf"},{name:"VS Code",value:"code"},{name:"None",value:"none"}]});if(c!=="none")try{await g(c,[o]),s.success(`Opened project in ${c}.`)}catch{s.warn(`Could not open ${c} automatically. Please run "${c} ." manually.`)}};var I={name:"indiekit",version:"0.1.3",description:"The AI-Native Next.js SaaS CLI",private:!1,homepage:"https://indiekit.pro",bugs:{url:"https://indiekit.pro/contact"},keywords:["nextjs","saas","boilerplate","starter","ai","cli"],type:"module",bin:{indiekit:"./dist/index.js"},scripts:{dev:"tsup --watch",build:"tsup",start:"node dist/index.js",release:"bumpp","multi-publish":"tsx scripts/publish-all.ts"},files:["dist"],publishConfig:{access:"public",provenance:!1},dependencies:{"@inquirer/prompts":"^8.2.0",commander:"^14.0.3",execa:"^9.6.1","fs-extra":"^11.3.3",open:"^11.0.0",ora:"^9.3.0",picocolors:"^1.1.1",tiged:"^2.12.7"},devDependencies:{"@types/fs-extra":"^11.0.4","@types/node":"^25.2.2",bumpp:"^10.4.1",handlebars:"^4.7.8",tsup:"^8.5.1",tsx:"^4.21.0",typescript:"^5.9.3"}};var A=()=>I.version;var y=new O;y.name("indiekit").description("CLI to scaffold Next.js SaaS applications").version(A());y.argument("[directory]","Directory to create the project in").action(t=>{T(t?[t]:[])});y.parse(process.argv);
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "create-next16-saas",
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "The AI-Native Next.js SaaS CLI",
|
|
5
|
+
"private": false,
|
|
6
|
+
"homepage": "https://indiekit.pro",
|
|
7
|
+
"bugs": {
|
|
8
|
+
"url": "https://indiekit.pro/contact"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"nextjs",
|
|
12
|
+
"saas",
|
|
13
|
+
"boilerplate",
|
|
14
|
+
"starter",
|
|
15
|
+
"ai",
|
|
16
|
+
"cli"
|
|
17
|
+
],
|
|
18
|
+
"type": "module",
|
|
19
|
+
"bin": {
|
|
20
|
+
"indiekit": "./dist/index.js"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public",
|
|
27
|
+
"provenance": false
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@inquirer/prompts": "^8.2.0",
|
|
31
|
+
"commander": "^14.0.3",
|
|
32
|
+
"execa": "^9.6.1",
|
|
33
|
+
"fs-extra": "^11.3.3",
|
|
34
|
+
"open": "^11.0.0",
|
|
35
|
+
"ora": "^9.3.0",
|
|
36
|
+
"picocolors": "^1.1.1",
|
|
37
|
+
"tiged": "^2.12.7"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@types/fs-extra": "^11.0.4",
|
|
41
|
+
"@types/node": "^25.2.2",
|
|
42
|
+
"bumpp": "^10.4.1",
|
|
43
|
+
"handlebars": "^4.7.8",
|
|
44
|
+
"tsup": "^8.5.1",
|
|
45
|
+
"tsx": "^4.21.0",
|
|
46
|
+
"typescript": "^5.9.3"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"dev": "tsup --watch",
|
|
50
|
+
"build": "tsup",
|
|
51
|
+
"start": "node dist/index.js",
|
|
52
|
+
"release": "bumpp",
|
|
53
|
+
"multi-publish": "tsx scripts/publish-all.ts"
|
|
54
|
+
}
|
|
55
|
+
}
|