-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
293 lines (279 loc) · 17.2 KB
/
Copy pathindex.html
File metadata and controls
293 lines (279 loc) · 17.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>nb-cli | Generative AI Image CLI</title>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
olive: {
50: '#f8f9f4',
100: '#f1f2e9',
200: '#e1e3d1',
300: '#cbd0ad',
400: '#abb282',
500: '#8c945b', // Primary Professional Olive
600: '#717849',
700: '#565c38',
800: '#3c4027',
900: '#222517',
950: '#11120b',
},
},
fontFamily: {
sans: ['Inter', 'ui-sans-serif', 'system-ui', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', 'sans-serif'],
mono: ['JetBrains Mono', 'Fira Code', 'ui-monospace', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', 'monospace'],
},
}
}
}
</script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
.glass { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px); }
.hero-gradient { background: radial-gradient(circle at top right, #f1f2e9 0%, transparent 70%); }
</style>
</head>
<body class="bg-white text-olive-950 antialiased">
<!-- Navigation -->
<nav class="fixed top-0 w-full z-50 glass border-b border-olive-100">
<div class="max-w-6xl mx-auto px-6 h-16 flex items-center justify-between">
<div class="flex items-center gap-3">
<span class="text-2xl">🍌</span>
<span class="font-bold text-lg tracking-tight text-olive-900">nb-cli</span>
</div>
<div class="hidden md:flex items-center gap-8 text-sm font-medium text-olive-700">
<a href="#features" class="hover:text-olive-500 transition-colors">Features</a>
<a href="#usage" class="hover:text-olive-500 transition-colors">Documentation</a>
<a href="https://github.com/crapthings/nb-cli" class="flex items-center gap-1 hover:text-olive-900 transition-colors">
GitHub
<svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg>
</a>
</div>
<div class="md:hidden">
<!-- Mobile Menu Placeholder -->
<span class="text-olive-500">☰</span>
</div>
</div>
</nav>
<!-- Hero Section -->
<header class="pt-32 pb-20 px-6 hero-gradient overflow-hidden">
<div class="max-w-6xl mx-auto flex flex-col items-center text-center">
<div class="inline-flex items-center gap-2 px-3 py-1 rounded-full bg-olive-100 text-olive-700 text-xs font-semibold mb-8 border border-olive-200 uppercase tracking-widest">
v1.0.4 • Powered by Google Gemini
</div>
<h1 class="text-5xl md:text-7xl font-extrabold text-olive-900 mb-8 tracking-tight max-w-4xl">
AI-Native Image Engineering <span class="text-olive-500">from your CLI.</span>
</h1>
<p class="text-lg md:text-xl text-olive-600 mb-12 max-w-2xl leading-relaxed">
Integrate the power of Nano Banana (Gemini 3.1 Flash Image Preview) directly into your terminal workflow. Create, edit, and optimize images with professional-grade precision.
</p>
<div class="flex flex-col sm:flex-row gap-4 w-full max-w-lg">
<div class="flex-grow flex items-center bg-olive-950 text-olive-100 rounded-lg px-4 py-3 font-mono text-sm group transition-all hover:ring-2 hover:ring-olive-400">
<span class="opacity-50 mr-3">$</span>
<span class="flex-grow text-left">npm install -g @crapthings/nb-cli</span>
<button class="opacity-30 group-hover:opacity-100 transition-opacity ml-4">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7v8a2 2 0 002 2h6M8 7V5a2 2 0 012-2h4.586a1 1 0 01.707.293l4.414 4.414a1 1 0 01.293.707V15a2 2 0 01-2 2h-2M8 7H6a2 2 0 00-2 2v10a2 2 0 002 2h8a2 2 0 002-2v-2"></path></svg>
</button>
</div>
</div>
</div>
</header>
<!-- Feature Grid -->
<section id="features" class="py-24 px-6 bg-olive-50">
<div class="max-w-6xl mx-auto">
<div class="grid md:grid-cols-3 gap-16">
<div class="group">
<div class="w-12 h-12 bg-white rounded-xl shadow-sm border border-olive-100 flex items-center justify-center mb-6 group-hover:border-olive-300 transition-colors">
<svg class="w-6 h-6 text-olive-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"></path></svg>
</div>
<h3 class="text-lg font-bold text-olive-900 mb-3">High-Fidelity Generation</h3>
<p class="text-olive-600 text-sm leading-relaxed">
Leverage Gemini's advanced latent diffusion to generate assets ranging from photorealistic environments to minimalist icons.
</p>
</div>
<div class="group">
<div class="w-12 h-12 bg-white rounded-xl shadow-sm border border-olive-100 flex items-center justify-center mb-6 group-hover:border-olive-300 transition-colors">
<svg class="w-6 h-6 text-olive-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"></path></svg>
</div>
<h3 class="text-lg font-bold text-olive-900 mb-3">Semantic Editing</h3>
<p class="text-olive-600 text-sm leading-relaxed">
Modify existing images using natural language. Update styles, add objects, or change lighting without leaving your terminal.
</p>
</div>
<div class="group">
<div class="w-12 h-12 bg-white rounded-xl shadow-sm border border-olive-100 flex items-center justify-center mb-6 group-hover:border-olive-300 transition-colors">
<svg class="w-6 h-6 text-olive-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m4 0l-5-5m11 5l-5-5m5 5v-4m0 4h-4"></path></svg>
</div>
<h3 class="text-lg font-bold text-olive-900 mb-3">Workflow Optimized</h3>
<p class="text-olive-600 text-sm leading-relaxed">
Support for standard resolutions (512 to 4k), Lite 1K output, and multiple aspect ratios (21:9 to 1:8). Ready for CI/CD and automation scripts.
</p>
</div>
</div>
</div>
</section>
<!-- Code / Usage -->
<section id="usage" class="py-24 px-6">
<div class="max-w-4xl mx-auto">
<div class="mb-16 text-center">
<h2 class="text-3xl font-bold text-olive-900 mb-4">CLI Reference</h2>
<p class="text-olive-600">Powerful commands designed for intuitive use.</p>
</div>
<div class="space-y-6">
<!-- Generate -->
<div class="rounded-2xl border border-olive-100 overflow-hidden shadow-sm">
<div class="bg-olive-50 px-6 py-3 border-b border-olive-100 flex items-center justify-between">
<span class="text-xs font-bold text-olive-700 uppercase tracking-widest">Command: Generate</span>
<span class="text-[10px] text-olive-400 font-mono">nb generate [prompt]</span>
</div>
<div class="p-6 bg-white font-mono text-sm text-olive-800 leading-relaxed overflow-x-auto">
<span class="text-olive-400"># Generate a ultra-wide cinematic landscape</span><br>
<span class="text-olive-500">nb</span> generate <span class="text-blue-600">"A brutalist concrete library in a misty forest"</span> \<br>
--output library.jpg \<br>
--aspect-ratio 21:9 \<br>
--size 2k
<br><br>
<span class="text-olive-400"># Use the Lite image model for 1K output</span><br>
<span class="text-olive-500">nb</span> generate <span class="text-blue-600">"A playful banana mascot sticker"</span> --model lite
</div>
</div>
<!-- Edit -->
<div class="rounded-2xl border border-olive-100 overflow-hidden shadow-sm">
<div class="bg-olive-50 px-6 py-3 border-b border-olive-100 flex items-center justify-between">
<span class="text-xs font-bold text-olive-700 uppercase tracking-widest">Command: Edit</span>
<span class="text-[10px] text-olive-400 font-mono">nb edit [file] [prompt]</span>
</div>
<div class="p-6 bg-white font-mono text-sm text-olive-800 leading-relaxed overflow-x-auto">
<span class="text-olive-400"># Modify the previous image</span><br>
<span class="text-olive-500">nb</span> edit library.jpg <span class="text-blue-600">"Add warm interior lighting visible through windows"</span> \<br>
-o library-edited.jpg
</div>
</div>
<!-- Icon -->
<div class="rounded-2xl border border-olive-100 overflow-hidden shadow-sm">
<div class="bg-olive-50 px-6 py-3 border-b border-olive-100 flex items-center justify-between">
<span class="text-xs font-bold text-olive-700 uppercase tracking-widest">Command: Icon</span>
<span class="text-[10px] text-olive-400 font-mono">nb icon [prompt]</span>
</div>
<div class="p-6 bg-white font-mono text-sm text-olive-800 leading-relaxed overflow-x-auto">
<span class="text-olive-400"># Generate a 1:1 minimalist vector-style icon</span><br>
<span class="text-olive-500">nb</span> icon <span class="text-blue-600">"abstract banana"</span> -o logo.jpg
</div>
</div>
</div>
</div>
</section>
<!-- Skill Install -->
<section class="py-24 px-6 bg-olive-50 border-t border-olive-100">
<div class="max-w-4xl mx-auto">
<div class="mb-10 text-center">
<h2 class="text-3xl font-bold text-olive-900 mb-4">Install The `nb-cli` Skill</h2>
<p class="text-olive-600 max-w-2xl mx-auto">
If you use Codex skills, install the bundled <code class="bg-white text-olive-800 px-1 rounded">nb-cli</code> skill from this repository so your agent can use the CLI with the repo's prompt guidance and image-generation references.
</p>
</div>
<div class="rounded-2xl border border-olive-100 overflow-hidden shadow-sm bg-white mb-8">
<div class="bg-olive-950 text-olive-100 px-6 py-4 font-mono text-sm overflow-x-auto">
npx skills add https://github.com/crapthings/nb-cli --skill nb-cli
</div>
</div>
<div class="grid md:grid-cols-2 gap-6">
<div class="rounded-2xl border border-olive-100 bg-white p-6">
<div class="text-xs font-bold text-olive-700 uppercase tracking-widest mb-3">Example Triggers</div>
<ul class="space-y-3 text-sm text-olive-700 leading-relaxed">
<li><code class="bg-olive-50 text-olive-800 px-1 rounded">Use $nb-cli to generate a 16:9 SaaS hero image with soft daylight and editorial composition</code></li>
<li><code class="bg-olive-50 text-olive-800 px-1 rounded">Use $nb-cli to create a minimalist coffee cup icon for my app</code></li>
<li><code class="bg-olive-50 text-olive-800 px-1 rounded">Use $nb-cli to edit hero.jpg and change only the background to a warm sunset gradient</code></li>
</ul>
</div>
<div class="rounded-2xl border border-olive-100 bg-white p-6">
<div class="text-xs font-bold text-olive-700 uppercase tracking-widest mb-3">Why Install It</div>
<ul class="space-y-3 text-sm text-olive-600 leading-relaxed">
<li>Use the CLI from agent workflows without leaving the terminal.</li>
<li>Reuse the repo's still-image prompt guidance for framing, lighting, composition, and style.</li>
<li>Keep image-generation requests aligned with the bundled <code class="bg-olive-50 text-olive-800 px-1 rounded">skills/nb-cli</code> skill.</li>
</ul>
</div>
</div>
<p class="text-center text-sm text-olive-500 mt-8">
Shout-out to <a href="https://grokfilm.app/" class="underline hover:text-olive-700 transition-colors">grokfilm.app</a>. The bundled still-image technique references were inspired by the film and photography vocabulary collected there.
</p>
</div>
</section>
<!-- Technical Specs -->
<section class="py-24 px-6 border-t border-olive-100">
<div class="max-w-6xl mx-auto grid md:grid-cols-2 gap-16 items-center">
<div>
<h2 class="text-3xl font-bold text-olive-900 mb-6">Built for scale.</h2>
<p class="text-olive-600 mb-8 leading-relaxed">
The <code class="bg-olive-100 text-olive-800 px-1 rounded">nb-cli</code> is built on the latest Node.js runtime and leverages the Gemini API's streaming capabilities for fast response times and efficient resource management.
</p>
<ul class="space-y-4">
<li class="flex items-start gap-3">
<div class="mt-1 w-5 h-5 bg-olive-500 rounded-full flex items-center justify-center flex-shrink-0">
<svg class="w-3 h-3 text-white" fill="currentColor" viewBox="0 0 20 20"><path d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"></path></svg>
</div>
<div>
<span class="block font-bold text-olive-900">StandardJS Compliant</span>
<span class="text-sm text-olive-500">Clean, idiomatic codebase following modern JavaScript standards.</span>
</div>
</li>
<li class="flex items-start gap-3">
<div class="mt-1 w-5 h-5 bg-olive-500 rounded-full flex items-center justify-center flex-shrink-0">
<svg class="w-3 h-3 text-white" fill="currentColor" viewBox="0 0 20 20"><path d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"></path></svg>
</div>
<div>
<span class="block font-bold text-olive-900">MIME Type Detection</span>
<span class="text-sm text-olive-500">Use `.jpg` filenames for generated and edited images.</span>
</div>
</li>
</ul>
</div>
<div class="bg-olive-900 rounded-3xl p-2 shadow-2xl overflow-hidden">
<div class="bg-olive-800 rounded-2xl p-8 border border-white/10">
<div class="flex gap-2 mb-6">
<div class="w-3 h-3 rounded-full bg-red-500/50"></div>
<div class="w-3 h-3 rounded-full bg-yellow-500/50"></div>
<div class="w-3 h-3 rounded-full bg-green-500/50"></div>
</div>
<div class="font-mono text-sm space-y-2">
<div class="text-olive-400"># Configuration</div>
<div class="text-white"><span class="text-olive-500">export</span> GEMINI_API_KEY=your_key</div>
<div class="text-olive-400 pt-4"># Verification</div>
<div class="text-white"><span class="text-olive-500">nb</span> generate --help</div>
<div class="text-olive-300 opacity-60">
Usage: nb generate [options] [prompt]<br><br>
Options:<br>
-o, --output <path><br>
-s, --size <size><br>
-a, --aspect-ratio <ratio><br>
-m, --model <model>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="py-20 px-6 bg-white border-t border-olive-100">
<div class="max-w-6xl mx-auto flex flex-col md:flex-row justify-between items-center gap-8">
<div class="flex items-center gap-2">
<span class="text-xl">🍌</span>
<span class="font-bold text-olive-900">nb-cli</span>
</div>
<div class="text-olive-400 text-sm">
Released under the MIT License. © 2026.
</div>
<div class="flex gap-6">
<a href="https://github.com/crapthings/nb-cli" class="text-olive-400 hover:text-olive-900 transition-colors">Source</a>
<a href="https://standardjs.com/" class="text-olive-400 hover:text-olive-900 transition-colors">Style</a>
</div>
</div>
</footer>
</body>
</html>