bunkit-cli 0.1.3 → 0.3.0

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.
Files changed (3) hide show
  1. package/README.md +233 -0
  2. package/dist/index.js +293 -251
  3. package/package.json +30 -2
package/README.md ADDED
@@ -0,0 +1,233 @@
1
+ # bunkit-cli
2
+
3
+ <div align="center">
4
+
5
+ ```
6
+ ╔══════════════════════════════════════════════════╗
7
+ ║ ║
8
+ ║ ┏┓ ┳ ┳┏┓┓┏o╋ ║
9
+ ║ ┣┫ ┃ ┃┃┃┣┫┃ ┃ Modern. Fast. Opinionated. ║
10
+ ║ ┗┛•┗━┛┛┗┛┗┻ ┻ ║
11
+ ║ ║
12
+ ║ Bake production-ready apps in seconds ║
13
+ ║ ║
14
+ ╚══════════════════════════════════════════════════╝
15
+ ```
16
+
17
+ [![npm version](https://img.shields.io/npm/v/bunkit-cli.svg)](https://www.npmjs.com/package/bunkit-cli)
18
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
19
+ [![Bun](https://img.shields.io/badge/Bun-1.3+-black)](https://bun.sh)
20
+
21
+ **Beautiful CLI for creating production-ready Bun projects**
22
+
23
+ [Features](#features) • [Installation](#installation) • [Commands](#commands) • [Examples](#examples) • [Repository](https://github.com/Arakiss/bunkit)
24
+
25
+ </div>
26
+
27
+ ---
28
+
29
+ ## Features
30
+
31
+ - **Lightning Fast** - Powered by Bun runtime for instant scaffolding
32
+ - **Interactive CLI** - Beautiful prompts powered by @clack/prompts (same as Astro)
33
+ - **Multiple Presets** - Choose from minimal, web, api, or full-stack templates
34
+ - **Modular Features** - Add auth, database, payments, and more on demand
35
+ - **Modern Stack** - Next.js 16, React 19, Hono, Drizzle ORM, TypeScript 5
36
+ - **Monorepo Ready** - Bun workspaces with dependency catalogs
37
+ - **Zero Config** - Smart defaults, fully customizable
38
+
39
+ ## Installation
40
+
41
+ ### Global Installation (Recommended)
42
+
43
+ ```bash
44
+ bun install -g bunkit-cli
45
+ ```
46
+
47
+ ### Or use with bunx (No installation)
48
+
49
+ ```bash
50
+ bunx bunkit-cli@latest init
51
+ ```
52
+
53
+ ## Commands
54
+
55
+ ### `bunkit init`
56
+
57
+ Create a new project interactively with beautiful prompts.
58
+
59
+ ```bash
60
+ bunkit init
61
+ ```
62
+
63
+ You'll be guided through:
64
+ - Project name selection
65
+ - Preset choice (minimal, web, api, full)
66
+ - Feature selection (auth, database, payments, etc.)
67
+ - Package manager preference
68
+ - Git initialization
69
+
70
+ ### `bunkit create`
71
+
72
+ Quickly create a project without prompts.
73
+
74
+ ```bash
75
+ bunkit create <preset> <name> [options]
76
+
77
+ # Options:
78
+ --no-git Skip git initialization
79
+ --no-install Skip dependency installation
80
+ ```
81
+
82
+ **Available Presets:**
83
+
84
+ - `minimal` - Bare Bun project with TypeScript
85
+ - `web` - Next.js 16 + React 19 frontend
86
+ - `api` - Hono backend with TypeScript
87
+ - `full` - Full-stack monorepo (web + api + shared packages)
88
+
89
+ ### `bunkit add`
90
+
91
+ Add features to an existing project.
92
+
93
+ ```bash
94
+ bunkit add <feature> [options]
95
+
96
+ # Options:
97
+ --provider <provider> Specify provider (e.g., supabase, stripe)
98
+ ```
99
+
100
+ **Available Features:**
101
+
102
+ - `auth` - Authentication (Supabase Auth, NextAuth, etc.)
103
+ - `database` - Database with Drizzle ORM (PostgreSQL, MySQL, SQLite)
104
+ - `ui` - UI components with shadcn/ui + Tailwind CSS 4
105
+ - `payments` - Payment integration (Stripe, Paddle)
106
+ - `email` - Email service (Resend, Nodemailer)
107
+ - `storage` - File storage (Supabase Storage, S3)
108
+
109
+ ## Examples
110
+
111
+ ### Create a Full-Stack Project
112
+
113
+ ```bash
114
+ bunkit create full my-saas-app
115
+ cd my-saas-app
116
+ bun install
117
+ bun dev
118
+ ```
119
+
120
+ ### Create Next.js Frontend Only
121
+
122
+ ```bash
123
+ bunkit create web my-landing-page
124
+ cd my-landing-page
125
+ bun dev
126
+ ```
127
+
128
+ ### Create Hono API Only
129
+
130
+ ```bash
131
+ bunkit create api my-backend
132
+ cd my-backend
133
+ bun --hot src/index.ts
134
+ ```
135
+
136
+ ### Add Authentication to Existing Project
137
+
138
+ ```bash
139
+ cd my-project
140
+ bunkit add auth --provider supabase
141
+ ```
142
+
143
+ ### Add UI Components
144
+
145
+ ```bash
146
+ bunkit add ui
147
+ # Installs shadcn/ui with Tailwind CSS 4 and iconoir-react icons
148
+ ```
149
+
150
+ ## What You Get
151
+
152
+ ### Full-Stack Monorepo Structure
153
+
154
+ ```
155
+ my-app/
156
+ ├── apps/
157
+ │ ├── web/ # Next.js 16 customer-facing app
158
+ │ ├── platform/ # Next.js 16 dashboard/admin
159
+ │ └── api/ # Hono backend with Bun.serve
160
+ ├── packages/
161
+ │ ├── ui/ # Shared UI components (shadcn/ui)
162
+ │ ├── db/ # Database schema (Drizzle ORM)
163
+ │ ├── utils/ # Shared utilities
164
+ │ └── types/ # Shared TypeScript types
165
+ ├── package.json # Root with dependency catalogs
166
+ ├── bunfig.toml # Bun configuration
167
+ └── biome.json # Code quality (linting + formatting)
168
+ ```
169
+
170
+ ### Tech Stack
171
+
172
+ - **Runtime:** Bun 1.3+ (fast, native TypeScript)
173
+ - **Monorepo:** Bun workspaces with dependency catalogs
174
+ - **Frontend:** Next.js 16 + React 19 (Server Components)
175
+ - **Backend:** Hono (ultra-fast web framework)
176
+ - **Database:** Drizzle ORM with native Bun drivers
177
+ - **Language:** TypeScript 5 (strict mode)
178
+ - **Styling:** Tailwind CSS 4 (CSS-first configuration)
179
+ - **UI Components:** shadcn/ui with iconoir-react icons
180
+ - **Code Quality:** Biome (NO ESLint, NO Prettier)
181
+
182
+ ## Why bunkit?
183
+
184
+ ### For Indie Hackers
185
+
186
+ Ship your MVP in hours, not weeks. bunkit handles all the boring setup so you can focus on building your product.
187
+
188
+ ### For Teams
189
+
190
+ Production-ready architecture from day one. Monorepo structure scales from prototype to enterprise.
191
+
192
+ ### For Developers
193
+
194
+ Modern stack with zero legacy baggage. Bun runtime means fast installs, fast tests, fast everything.
195
+
196
+ ## Requirements
197
+
198
+ - **Bun 1.3+** - [Install Bun](https://bun.sh)
199
+ - **Node.js 20.9+** (required for Next.js 16) - [Download](https://nodejs.org/)
200
+ - **Git** - For version control
201
+
202
+ ## Philosophy
203
+
204
+ - **Quality First** - Enterprise-grade code from day one
205
+ - **Type Safety** - Strict TypeScript everywhere
206
+ - **Performance** - Native Bun APIs, minimal dependencies
207
+ - **Developer Experience** - Fast iteration with HMR
208
+ - **Modern Stack** - Latest stable versions only
209
+
210
+ ## Community & Support
211
+
212
+ - **GitHub Repository:** [Arakiss/bunkit](https://github.com/Arakiss/bunkit)
213
+ - **Issues:** [Report bugs or request features](https://github.com/Arakiss/bunkit/issues)
214
+ - **License:** MIT
215
+
216
+ ## Credits
217
+
218
+ Built with love for the indie hacker community.
219
+
220
+ Made possible by:
221
+ - [Bun](https://bun.sh) - Incredibly fast JavaScript runtime
222
+ - [@clack/prompts](https://github.com/natemoo-re/clack) - Beautiful CLI prompts
223
+ - [Next.js](https://nextjs.org) - React framework
224
+ - [Hono](https://hono.dev) - Ultra-fast web framework
225
+ - [Drizzle ORM](https://orm.drizzle.team) - TypeScript ORM
226
+
227
+ ---
228
+
229
+ <div align="center">
230
+
231
+ **Don't Panic - your app is being baked** 🍞
232
+
233
+ </div>