@nikkory/vibe-engine 4.0.0 → 4.0.2
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/LOGO.txt +20 -0
- package/PUBLISH-SUCCESS.md +370 -0
- package/README.md +72 -1181
- package/bin/vibe.js +1 -1
- package/dist/cli/logo.d.ts +34 -0
- package/dist/index.js +31 -6
- package/dist/index.mjs +31 -6
- package/package.json +1 -1
package/LOGO.txt
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
███╗ ██╗██╗██╗ ██╗██╗ ██╗ ██████╗ ██████╗ ██╗ ██╗
|
|
2
|
+
████╗ ██║██║██║ ██╔╝██║ ██╔╝██╔═══██╗██╔══██╗╚██╗ ██╔╝
|
|
3
|
+
██╔██╗ ██║██║█████╔╝ █████╔╝ ██║ ██║██████╔╝ ╚████╔╝
|
|
4
|
+
██║╚██╗██║██║██╔═██╗ ██╔═██╗ ██║ ██║██╔══██╗ ╚██╔╝
|
|
5
|
+
██║ ╚████║██║██║ ██╗██║ ██╗╚██████╔╝██║ ██║ ██║
|
|
6
|
+
╚═╝ ╚═══╝╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝
|
|
7
|
+
|
|
8
|
+
██╗ ██╗██╗██████╗ ███████╗
|
|
9
|
+
██║ ██║██║██╔══██╗██╔════╝
|
|
10
|
+
██║ ██║██║██████╔╝█████╗
|
|
11
|
+
╚██╗ ██╔╝██║██╔══██╗██╔══╝
|
|
12
|
+
╚████╔╝ ██║██████╔╝███████╗
|
|
13
|
+
╚═══╝ ╚═╝╚═════╝ ╚══════╝
|
|
14
|
+
|
|
15
|
+
✨ Happy Together ✨
|
|
16
|
+
|
|
17
|
+
Zero-Token UI/UX Code Generation
|
|
18
|
+
Intelligent Component Design System
|
|
19
|
+
|
|
20
|
+
https://nikkory.com
|
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
# ✅ NPM Publish Success - @nikkory/vibe-engine v4.0.0
|
|
2
|
+
|
|
3
|
+
## 🎉 PUBLISHED SUCCESSFULLY!
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
+ @nikkory/vibe-engine@4.0.0
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
**Published at**: 2026-01-11 04:36 UTC
|
|
10
|
+
**Registry**: https://registry.npmjs.org/
|
|
11
|
+
**Access**: public
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## 📦 Package Details
|
|
16
|
+
|
|
17
|
+
| Property | Value |
|
|
18
|
+
|----------|-------|
|
|
19
|
+
| **Name** | `@nikkory/vibe-engine` |
|
|
20
|
+
| **Version** | `4.0.0` |
|
|
21
|
+
| **Tarball Size** | 532.5 KB |
|
|
22
|
+
| **Unpacked Size** | 3.0 MB |
|
|
23
|
+
| **Total Files** | 333 |
|
|
24
|
+
| **License** | MIT |
|
|
25
|
+
| **Author** | Nikkory <dev@nikkory.com> |
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## 🔗 Package Links
|
|
30
|
+
|
|
31
|
+
- **npm Page**: https://www.npmjs.com/package/@nikkory/vibe-engine
|
|
32
|
+
- **GitHub**: https://github.com/kemonra/nikkory-vibe/tree/main/packages/engine
|
|
33
|
+
- **Documentation**: README.md
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## 📥 Installation (For End Users)
|
|
38
|
+
|
|
39
|
+
### Global Install (Recommended for CLI)
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npm install -g @nikkory/vibe-engine
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Local Install (For programmatic use)
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
npm install @nikkory/vibe-engine
|
|
49
|
+
# or
|
|
50
|
+
pnpm add @nikkory/vibe-engine
|
|
51
|
+
# or
|
|
52
|
+
yarn add @nikkory/vibe-engine
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## 🧪 Test Installation
|
|
58
|
+
|
|
59
|
+
### 1. Install Globally
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
npm install -g @nikkory/vibe-engine
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### 2. Verify CLI
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
vibe --help
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**Expected output:**
|
|
72
|
+
```
|
|
73
|
+
Nikkory Vibe CLI - Algorithm Engine
|
|
74
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
75
|
+
|
|
76
|
+
USAGE:
|
|
77
|
+
vibe <command> [options]
|
|
78
|
+
|
|
79
|
+
COMMANDS:
|
|
80
|
+
generate Generate a single component
|
|
81
|
+
batch Generate multiple components
|
|
82
|
+
...
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### 3. Test Generation with Override
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
# Create test directory
|
|
89
|
+
mkdir ~/test-nikkory-cli
|
|
90
|
+
cd ~/test-nikkory-cli
|
|
91
|
+
|
|
92
|
+
# Generate enterprise button with factor override
|
|
93
|
+
vibe generate button material-design enterprise --factor-4=full -o ./output
|
|
94
|
+
|
|
95
|
+
# Check generated files
|
|
96
|
+
ls -la output/material-design/button/
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### 4. Verify Override Works
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
# Check for rounded-full (override) instead of rounded-lg (default)
|
|
103
|
+
cat output/material-design/button/enterprise.tsx | grep "rounded"
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
**Expected**: Should see `rounded-full` (from ClassMapper override)
|
|
107
|
+
|
|
108
|
+
### 5. Test Glassmorphism Card
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
vibe generate card glassmorphism enterprise -o ./output
|
|
112
|
+
cat output/glassmorphism/card/enterprise.tsx
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
**Expected**:
|
|
116
|
+
- Glassmorphism styles: `backdrop-blur-lg`, `bg-white/20`
|
|
117
|
+
- Enterprise features: `memo`, `forwardRef`, `analytics`
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## ✅ What Users Get
|
|
122
|
+
|
|
123
|
+
### CLI Commands
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
# Generate single component
|
|
127
|
+
vibe generate <component> <design-system> <tier> [options]
|
|
128
|
+
|
|
129
|
+
# With factor overrides
|
|
130
|
+
vibe generate button material-design enterprise \
|
|
131
|
+
--factor-4=full \
|
|
132
|
+
--factor-5=xl \
|
|
133
|
+
-o ./components
|
|
134
|
+
|
|
135
|
+
# Batch generation
|
|
136
|
+
vibe batch \
|
|
137
|
+
-o ./output \
|
|
138
|
+
--ds material-design \
|
|
139
|
+
-t enterprise \
|
|
140
|
+
-c button,card,input
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Generated Files (Per Component)
|
|
144
|
+
|
|
145
|
+
1. **Component File** (`.tsx`):
|
|
146
|
+
- Enterprise: 150-300 LOC
|
|
147
|
+
- React.memo, forwardRef, useCallback
|
|
148
|
+
- Analytics tracking
|
|
149
|
+
- Full ARIA support
|
|
150
|
+
- Tailwind CSS styling
|
|
151
|
+
|
|
152
|
+
2. **Types File** (`.types.ts`):
|
|
153
|
+
- Complete TypeScript definitions
|
|
154
|
+
- Variant and size types
|
|
155
|
+
- Event handler types
|
|
156
|
+
- Loading/error state types
|
|
157
|
+
|
|
158
|
+
3. **Test File** (`.test.tsx`):
|
|
159
|
+
- Vitest test suite
|
|
160
|
+
- Component rendering tests
|
|
161
|
+
- Props validation tests
|
|
162
|
+
- Accessibility tests
|
|
163
|
+
|
|
164
|
+
### Features
|
|
165
|
+
|
|
166
|
+
- **12 Design Systems**: Material Design, iOS HIG, Glassmorphism, Neumorphism, Brutalism, Minimalism, Cyberpunk, Flat Design, Retro Vintage, Fluent Design, Carbon Design, Ant Design
|
|
167
|
+
- **3 Quality Tiers**: Basic (30-50 LOC), Standard (50-150 LOC), Enterprise (150-300 LOC)
|
|
168
|
+
- **40+ Component Types**: Button, Card, Input, Modal, Table, Alert, Badge, etc.
|
|
169
|
+
- **24 Factors**: Color, Size, Variant, Shape, Shadow, Animation, etc.
|
|
170
|
+
- **Hybrid Override System**: User overrides → ClassMapper, Defaults → Registry
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## 🎯 Key Achievements
|
|
175
|
+
|
|
176
|
+
### ✅ Matrix Algorithm Implementation
|
|
177
|
+
|
|
178
|
+
- **M1 × M2 × M3 × M4**: Full matrix multiplication
|
|
179
|
+
- **Hybrid Approach**: ClassMapper (overrides) + design-systems-registry (defaults)
|
|
180
|
+
- **24-Factor System**: Complete factor configuration
|
|
181
|
+
- **Zero duplicate code**: Each system handles its domain
|
|
182
|
+
|
|
183
|
+
### ✅ CLI Features
|
|
184
|
+
|
|
185
|
+
- **Factor overrides**: `--factor-N=value` syntax
|
|
186
|
+
- **Multiple output formats**: Component + Types + Tests
|
|
187
|
+
- **Batch generation**: Multiple components at once
|
|
188
|
+
- **Design system support**: 12 systems × 3 tiers
|
|
189
|
+
|
|
190
|
+
### ✅ Code Quality
|
|
191
|
+
|
|
192
|
+
- **Enterprise tier**: All 7 features verified
|
|
193
|
+
- React.memo
|
|
194
|
+
- forwardRef
|
|
195
|
+
- useCallback
|
|
196
|
+
- displayName
|
|
197
|
+
- Analytics tracking
|
|
198
|
+
- ARIA attributes
|
|
199
|
+
- Type safety
|
|
200
|
+
|
|
201
|
+
- **Build quality**:
|
|
202
|
+
- Zero TypeScript errors
|
|
203
|
+
- Zero ESLint errors
|
|
204
|
+
- Full type definitions included
|
|
205
|
+
- Source maps available
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
## 📊 Package Stats
|
|
210
|
+
|
|
211
|
+
### Files Published (333 total)
|
|
212
|
+
|
|
213
|
+
- `dist/index.js`: 577.7 KB (CJS)
|
|
214
|
+
- `dist/index.mjs`: 569.7 KB (ESM)
|
|
215
|
+
- `dist/browser.js`: 372.3 KB (Browser bundle)
|
|
216
|
+
- `dist/*.d.ts`: Full TypeScript definitions (~150 files)
|
|
217
|
+
- `bin/vibe.js`: CLI executable
|
|
218
|
+
- `README.md`: 35.1 KB documentation
|
|
219
|
+
- `PUBLISH-GUIDE.md`: 6.0 KB publish guide
|
|
220
|
+
|
|
221
|
+
### Bundle Size
|
|
222
|
+
|
|
223
|
+
| Format | Size | Use Case |
|
|
224
|
+
|--------|------|----------|
|
|
225
|
+
| CJS | 577.7 KB | Node.js require() |
|
|
226
|
+
| ESM | 569.7 KB | Modern import |
|
|
227
|
+
| Browser | 372.3 KB | Browser bundle |
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
## 🔄 What Happens Next
|
|
232
|
+
|
|
233
|
+
### Immediate (Within minutes)
|
|
234
|
+
|
|
235
|
+
- ✅ Package appears on npmjs.com
|
|
236
|
+
- ✅ Available for `npm install`
|
|
237
|
+
- ✅ CLI available globally
|
|
238
|
+
|
|
239
|
+
### Soon (Within hours)
|
|
240
|
+
|
|
241
|
+
- Package indexed by npm search
|
|
242
|
+
- Download stats begin tracking
|
|
243
|
+
- Package appears in dependency graphs
|
|
244
|
+
|
|
245
|
+
### You Can Do Now
|
|
246
|
+
|
|
247
|
+
1. **Verify on npmjs.com**:
|
|
248
|
+
- Visit: https://www.npmjs.com/package/@nikkory/vibe-engine
|
|
249
|
+
- Check version, readme, files
|
|
250
|
+
|
|
251
|
+
2. **Test install on another machine**:
|
|
252
|
+
```bash
|
|
253
|
+
npm install -g @nikkory/vibe-engine
|
|
254
|
+
vibe --help
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
3. **Share the news**:
|
|
258
|
+
- Twitter/LinkedIn announcement
|
|
259
|
+
- Update project README with npm badge
|
|
260
|
+
- Create GitHub release v4.0.0
|
|
261
|
+
|
|
262
|
+
4. **Create documentation**:
|
|
263
|
+
- Usage examples
|
|
264
|
+
- Video demo
|
|
265
|
+
- Tutorial blog post
|
|
266
|
+
|
|
267
|
+
---
|
|
268
|
+
|
|
269
|
+
## 🎨 Example Outputs
|
|
270
|
+
|
|
271
|
+
### Generated Enterprise Button (Material Design)
|
|
272
|
+
|
|
273
|
+
```tsx
|
|
274
|
+
export const MaterialButtonEnterprise = memo(
|
|
275
|
+
forwardRef<HTMLButtonElement, MaterialButtonEnterpriseProps>(
|
|
276
|
+
({ analyticsEvent, onClick, children, ...props }, ref) => {
|
|
277
|
+
const handleClick = useCallback(
|
|
278
|
+
(e: React.MouseEvent<HTMLButtonElement>): void => {
|
|
279
|
+
if (analyticsEvent && typeof window !== "undefined") {
|
|
280
|
+
(window as unknown as { dataLayer?: unknown[] }).dataLayer?.push({
|
|
281
|
+
event: analyticsEvent,
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
onClick?.(e);
|
|
285
|
+
},
|
|
286
|
+
[analyticsEvent, onClick]
|
|
287
|
+
);
|
|
288
|
+
|
|
289
|
+
return (
|
|
290
|
+
<button
|
|
291
|
+
ref={ref}
|
|
292
|
+
onClick={handleClick}
|
|
293
|
+
className="bg-blue-500 hover:bg-blue-600 rounded-full ..."
|
|
294
|
+
{...props}
|
|
295
|
+
>
|
|
296
|
+
{children}
|
|
297
|
+
</button>
|
|
298
|
+
);
|
|
299
|
+
}
|
|
300
|
+
)
|
|
301
|
+
);
|
|
302
|
+
|
|
303
|
+
MaterialButtonEnterprise.displayName = 'MaterialButtonEnterprise';
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
### Generated Glassmorphism Card
|
|
307
|
+
|
|
308
|
+
```tsx
|
|
309
|
+
export const GlassCardEnterprise = memo(
|
|
310
|
+
forwardRef<HTMLArticleElement, GlassCardEnterpriseProps>(
|
|
311
|
+
({ children, ...props }, ref) => {
|
|
312
|
+
return (
|
|
313
|
+
<article
|
|
314
|
+
ref={ref}
|
|
315
|
+
className="bg-white/20 backdrop-blur-lg border-white/20 rounded-2xl ..."
|
|
316
|
+
{...props}
|
|
317
|
+
>
|
|
318
|
+
{children}
|
|
319
|
+
</article>
|
|
320
|
+
);
|
|
321
|
+
}
|
|
322
|
+
)
|
|
323
|
+
);
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
---
|
|
327
|
+
|
|
328
|
+
## 🚀 Future Updates
|
|
329
|
+
|
|
330
|
+
### Planned Features
|
|
331
|
+
|
|
332
|
+
- [ ] More design systems (15+ total)
|
|
333
|
+
- [ ] More component types (60+ total)
|
|
334
|
+
- [ ] Complete 24-factor ClassMapper (currently 3/24)
|
|
335
|
+
- [ ] Visual builder integration
|
|
336
|
+
- [ ] Theme customization
|
|
337
|
+
- [ ] Plugin system
|
|
338
|
+
|
|
339
|
+
### Version Roadmap
|
|
340
|
+
|
|
341
|
+
- **v4.0.x**: Patches and bug fixes
|
|
342
|
+
- **v4.1.0**: Additional factors in ClassMapper
|
|
343
|
+
- **v4.2.0**: New design systems
|
|
344
|
+
- **v5.0.0**: Visual builder integration
|
|
345
|
+
|
|
346
|
+
---
|
|
347
|
+
|
|
348
|
+
## 📞 Support
|
|
349
|
+
|
|
350
|
+
- **Issues**: https://github.com/kemonra/nikkory-vibe/issues
|
|
351
|
+
- **Email**: dev@nikkory.com
|
|
352
|
+
- **Website**: https://nikkory.com
|
|
353
|
+
|
|
354
|
+
---
|
|
355
|
+
|
|
356
|
+
## 🎉 Celebration!
|
|
357
|
+
|
|
358
|
+
**We did it!** 🎊
|
|
359
|
+
|
|
360
|
+
The hybrid approach implementation is complete and published:
|
|
361
|
+
|
|
362
|
+
- ✅ 12/12 plan tasks completed
|
|
363
|
+
- ✅ Hybrid logic implemented and verified
|
|
364
|
+
- ✅ CLI tested with overrides
|
|
365
|
+
- ✅ Enterprise quality verified
|
|
366
|
+
- ✅ Package published to npm
|
|
367
|
+
- ✅ Ready for users
|
|
368
|
+
|
|
369
|
+
**Powered by Nikkory** 🚀
|
|
370
|
+
https://nikkory.com
|