vibe-me 1.0.0 → 3.0.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.
package/README.md CHANGED
@@ -1,161 +1,478 @@
1
- # vibes
1
+ <div align="center">
2
2
 
3
- **Every repository should contain a continuously maintained, AI-readable and human-readable model of itself.**
3
+ # 🌀 vibes
4
4
 
5
- `vibes` creates a `.vibe/` folder in your project 6 files that let any human or AI understand your codebase without reading the source code.
5
+ ### Every project should contain a continuously maintained,<br>AI-readable and human-readable model of itself.
6
+
7
+ [![npm version](https://img.shields.io/npm/v/vibe-me?style=flat-square&color=7c3aed&label=npm)](https://www.npmjs.com/package/vibe-me)
8
+ [![license](https://img.shields.io/badge/license-MIT-10b981?style=flat-square)](LICENSE)
9
+ [![node](https://img.shields.io/badge/node-%3E%3D16-3b82f6?style=flat-square&logo=node.js&logoColor=white)](https://nodejs.org)
10
+ [![zero deps](https://img.shields.io/badge/dependencies-0-f59e0b?style=flat-square)](package.json)
11
+
12
+ <br>
13
+
14
+ **One command. Full project memory. Total clarity.**
15
+
16
+ `vibes` creates a `.vibe/` semantic layer and a standardized `docs/` folder —<br>
17
+ so any human or AI can understand your project, your product, and your business<br>
18
+ without reading the source code.
19
+
20
+ <br>
21
+
22
+ ```bash
23
+ npx vibe-me all
24
+ ```
25
+
26
+ <br>
27
+ </div>
28
+
29
+ ---
30
+
31
+ ## 🌊 We're Building in the AI Age — But Our Projects Are Still Dumb
32
+
33
+ AI coding agents are everywhere. Cursor, Copilot, Windsurf, Claude Code, Gemini — they can all write code. But every one of them hits the same wall:
34
+
35
+ **They don't understand your project.**
36
+
37
+ They can read your files. They can parse your syntax. But they can't answer the questions that actually matter:
38
+
39
+ - *Why does this exist?*
40
+ - *What were the alternatives that were rejected?*
41
+ - *What's the user actually trying to do — and how do they feel?*
42
+ - *What's broken right now? What's the current focus?*
43
+ - *What should I absolutely NOT touch?*
44
+ - *Is this a business? What's the pricing rationale? Who are the competitors?*
45
+
46
+ So what happens? Your AI agent guesses. It writes plausible-looking code that violates assumptions nobody documented. You spend an hour debugging something that should've taken five minutes. Sound familiar?
47
+
48
+ ### The Research Question
49
+
50
+ > **What is the minimum set of files that lets a human or AI understand an entire project — not just the code, but the product, the business, and the current momentum — without reading the source?**
51
+
52
+ We tested this across production repositories — web apps, CLI tools, embedded systems, game engines, blockchain protocols — and found the answer:
53
+
54
+ **15 files for project memory. 11 files for operational docs.**
55
+
56
+ Not a wiki. Not a Confluence graveyard. Not a 200-page design doc nobody reads. Just well-structured files that capture everything that matters — from repository architecture to business strategy to user psychology.
57
+
58
+ ### Before and After
59
+
60
+ <table>
61
+ <tr>
62
+ <td width="50%">
63
+
64
+ **❌ Without vibes**
65
+ - AI agent reads 50 files to guess the architecture
66
+ - New developer asks "why is it built this way?" — nobody remembers
67
+ - Known bugs live in someone's head, not in a file
68
+ - Every AI session starts from scratch
69
+ - Nobody knows the pricing rationale or competitive landscape
70
+ - User frustrations are invisible — product decisions are guesswork
71
+ - Documentation rots because nobody owns it
72
+
73
+ </td>
74
+ <td width="50%">
75
+
76
+ **✅ With vibes**
77
+ - AI agent reads `.vibe/` in 3 seconds, understands everything
78
+ - Decisions recorded with rejected alternatives and tradeoffs
79
+ - Issues tracked, resolved issues archived, context is live
80
+ - Every AI session builds on the last one
81
+ - Business strategy, pricing, and market position are documented
82
+ - User personas include emotional reality — fears, confusion, goals
83
+ - Documentation stays fresh because the AI updates it
84
+
85
+ </td>
86
+ </tr>
87
+ </table>
88
+
89
+ > **This isn't documentation. It's a digital twin of your entire venture.**<br>
90
+ > Repository memory. Product memory. Business memory. AI instructions. Living context.<br>
91
+ > It's the difference between a repository and a *project that explains itself.*
92
+
93
+ ---
94
+
95
+ ## ✨ The Solution
96
+
97
+ `vibes` generates two complementary layers:
98
+
99
+ <table>
100
+ <tr>
101
+ <td width="50%" valign="top">
102
+
103
+ ### 🧠 `.vibe/` — Project Memory
104
+ *15 files covering 5 layers of understanding*
6
105
 
7
106
  ```
8
107
  .vibe/
9
- ├── purpose.md — What is this? Who is it for? What does it NOT do?
10
- ├── architecture.md — Systems and how they connect (not files — systems)
11
- ├── flows.md User journeys, step by step
12
- ├── entities.md Important nouns and their relationships
13
- ├── decisions.md Why things exist the way they do
14
- └── state.json — Machine-readable project health snapshot
108
+
109
+ ── Core (repository memory)
110
+ ├── purpose.md What & why
111
+ ├── architecture.md Systems & connections
112
+ ├── flows.md User journeys
113
+ ├── entities.md Important nouns
114
+ ├── decisions.md Why, with dependency graph
115
+ ├── state.json Machine-readable health
116
+
117
+ │ ── Living Context
118
+ ├── context.md What's happening NOW
119
+
120
+ │ ── AI Agent Guide
121
+ ├── ai.md Safe zones & rules
122
+
123
+ │ ── Product Memory
124
+ ├── product.md Vision & retention
125
+ ├── users.md Personas & emotions
126
+ ├── metrics.md What numbers matter
127
+ ├── experiments.md What we're testing
128
+
129
+ │ ── Business Memory
130
+ ├── business.md Strategy & revenue
131
+ ├── market.md Competitors & positioning
132
+ └── risks.md Threats & mitigations
15
133
  ```
16
134
 
17
- ## Why?
135
+ **Not a business?** The AI writes "N/A" and moves on.<br>
136
+ **Not a product?** Same thing. Only relevant files get filled.
18
137
 
19
- Most repositories are impossible to understand without reading the source code. Documentation describes *how* things work but never captures:
138
+ </td>
139
+ <td width="50%" valign="top">
20
140
 
21
- - **Why** things exist (what alternatives were rejected?)
22
- - **What** users actually do (step-by-step journeys, not component descriptions)
23
- - **What** the important nouns are (domain entities, not class hierarchies)
24
- - **What** the system *is* (intent, not implementation)
141
+ ### 📄 `docs/` Operational Layer
142
+ *11 files for implementation-level documentation*
25
143
 
26
- The `.vibe/` folder answers these questions. It describes **intent rather than implementation** — which means it's language-agnostic, framework-agnostic, and survives complete rewrites.
144
+ ```
145
+ docs/
146
+ ├── README.md Executive summary
147
+ ├── topology.md File & folder map
148
+ ├── architecture.md Component-level details
149
+ ├── api.md API endpoints & formats
150
+ ├── issues.md Open bugs & blockers
151
+ ├── resolved.md Closed issues archive
152
+ ├── roadmap.md Milestones & priorities
153
+ ├── developer_guide.md Setup, build, test, deploy
154
+ ├── troubleshooting.md Common errors & fixes
155
+ ├── glossary.md Project-specific terms
156
+ └── decisions/ Architecture decision records
157
+ ```
158
+
159
+ <br>
160
+
161
+ **`.vibe/` = intent** (survives a rewrite)<br>
162
+ **`docs/` = implementation** (changes with the code)
163
+
164
+ </td>
165
+ </tr>
166
+ </table>
27
167
 
28
- ## Quick Start
168
+ ---
29
169
 
30
- ### Option 1: npx (no install)
170
+ ## 🚀 Quick Start
171
+
172
+ ### Option 1: npx (no install needed)
31
173
 
32
174
  ```bash
33
- npx vibes init
175
+ # Scaffold everything at once
176
+ npx vibe-me all
177
+
178
+ # Or individually:
179
+ npx vibe-me init # .vibe/ only (15 files)
180
+ npx vibe-me docs # docs/ only (11 files)
34
181
  ```
35
182
 
36
183
  ### Option 2: Global install
37
184
 
38
185
  ```bash
39
- npm install -g vibes
40
- vibes init
186
+ npm install -g vibe-me
187
+ vibes all
41
188
  ```
42
189
 
43
- ### Option 3: Clone and run
190
+ ### Option 3: One-click (Windows)
44
191
 
45
- ```bash
46
- git clone https://github.com/unlimitedinfinit/Vibes.git
47
- cd your-project
48
- node /path/to/Vibes/bin/vibes.js init
49
- ```
192
+ Download [`Vibe.bat`](Vibe.bat), drop it in any project folder, and double-click it.
50
193
 
51
- This creates a `.vibe/` folder with skeleton templates and a `VIBE_GUIDE.md` instruction file.
194
+ ---
52
195
 
53
- ## Usage
196
+ ## 🛠️ Commands
54
197
 
55
- ### Initialize
198
+ | Command | Description |
199
+ |:---|:---|
200
+ | `vibes init` | Create `.vibe/` with the full suite — 15 files + guide |
201
+ | `vibes docs` | Create `docs/` operational documentation — 11 files |
202
+ | `vibes all` | Create both `.vibe/` and `docs/` at once |
203
+ | `vibes check` | Validate all files for completeness and quality |
204
+ | `vibes status` | Quick health dashboard with filled/N-A/empty counts |
205
+ | `vibes reset` | Delete and recreate everything |
206
+ | `vibes help` | Show all commands |
56
207
 
57
- ```bash
58
- cd your-project
59
- vibes init
60
- ```
208
+ ---
61
209
 
62
- Creates `.vibe/` with 6 skeleton files + the full guide. Auto-detects your project name from `package.json`, `Cargo.toml`, `go.mod`, or `pyproject.toml`.
210
+ ## 🤖 The AI Workflow
63
211
 
64
- ### Fill it out (with your AI agent)
212
+ After scaffolding, point your AI coding agent at the project and say:
65
213
 
66
- Point your AI coding agent at the project and tell it:
214
+ > *"Read `.vibe/VIBE_GUIDE.md`, then analyze this codebase and fill out all the skeleton files in `.vibe/` and `docs/`. For files that aren't relevant (like `business.md` for a library), write N/A with a brief explanation. Ask me any questions you can't answer from the code."*
67
215
 
68
- > "Read `.vibe/VIBE_GUIDE.md`, then analyze this codebase and fill out all the skeleton files in `.vibe/`. Ask me any questions you can't answer from the code."
216
+ The included `VIBE_GUIDE.md` (33KB) contains everything the agent needs:
217
+ - Detailed instructions for each file
218
+ - Examples across 6+ project types (web apps, CLI tools, games, embedded firmware, libraries, mobile)
219
+ - Anti-patterns and common mistakes
220
+ - Quality checklist
221
+ - The discovery protocol (what to scan, what to ask the user)
69
222
 
70
- The guide contains detailed instructions, examples across 6+ project types, anti-patterns, and a quality checklist.
223
+ ### The Update Protocol
71
224
 
72
- ### Validate
225
+ Every time an AI agent touches a repository with `.vibe/`, the workflow becomes:
73
226
 
74
- ```bash
75
- vibes check
227
+ ```
228
+ Read .vibe/ to understand the project
229
+
230
+ Make code changes
231
+
232
+ Update .vibe/ + docs/ to reflect new understanding
233
+
234
+ Commit everything together
76
235
  ```
77
236
 
78
- Checks that all 6 files exist, are non-empty, and pass quality heuristics:
79
- - `purpose.md` has a "NOT do" section
80
- - `decisions.md` has 2+ decisions
81
- - `entities.md` has "What depends on it?" fields
82
- - `flows.md` has 2+ user flows
83
- - `state.json` is valid JSON and not stale (>30 days)
237
+ > The semantic model is a **first-class citizen** not an afterthought.
84
238
 
85
- ### Reset
239
+ ---
86
240
 
87
- ```bash
88
- vibes reset
89
- ```
241
+ ## 🎯 The Core Principle
90
242
 
91
- Deletes and recreates `.vibe/` with fresh skeletons.
243
+ > **Describe intent, not implementation.**
92
244
 
93
- ## The Core Principle
245
+ Every line in `.vibe/` should pass this test:
94
246
 
95
- > **Describe intent, not implementation.**
247
+ *"Would this still be true if we rewrote the entire codebase in a different language?"*
96
248
 
97
- Every line in `.vibe/` should pass this test: *"Would this still be true if we rewrote the entire codebase in a different language?"*
249
+ | | Intent | Implementation |
250
+ |:---|:---|:---|
251
+ | **Architecture** | "Frontend talks to API over HTTP" | "`UserController` calls `db.query()`" |
252
+ | **Decisions** | "We chose SQLite because <100 writes/hour" | "The `DatabaseService` class has a `connect()` method" |
253
+ | **Flows** | "User uploads document → AI analyzes → results shown" | "`POST /api/docs` calls `processDocument()` in `services/ai.ts`" |
254
+ | **Entities** | "Invoice — created by billing system, immutable after send" | "`Invoice` model has fields `id`, `amount`, `created_at`" |
98
255
 
99
- - ✅ "We chose SQLite because the access pattern is <100 writes/hour"
100
- - ❌ "The `DatabaseService` class has a `connect()` method"
101
- - ✅ "User uploads document → AI analyzes → results displayed"
102
- - ❌ "POST /api/documents calls `processDocument()` in `services/ai.ts`"
256
+ ---
103
257
 
104
- ## The AI Update Protocol
258
+ ## 🔍 Quality Validation
105
259
 
106
- Every time an AI agent touches a repository with `.vibe/`, the workflow is:
260
+ ```bash
261
+ vibes check
262
+ ```
107
263
 
108
264
  ```
109
- Read .vibe/ to understand the project
110
-
111
- Make code changes
112
-
113
- Update relevant .vibe/ files to reflect new understanding
114
-
115
- Commit code + .vibe changes together
265
+ 🔍 vibes check
266
+
267
+ ── .vibe/ ──
268
+
269
+ purpose.md 33 lines
270
+ ✔ architecture.md — 86 lines
271
+ flows.md 144 lines
272
+ ✔ entities.md — 135 lines
273
+ ✔ decisions.md — 91 lines
274
+ ✔ state.json — 82 lines
275
+ ✔ context.md — 28 lines
276
+ ✔ ai.md — 45 lines
277
+ ✔ product.md — 62 lines
278
+ ✔ users.md — 78 lines
279
+ ✔ metrics.md — 24 lines
280
+ ✔ experiments.md — 19 lines
281
+ ⊘ business.md — N/A (not applicable)
282
+ ⊘ market.md — N/A (not applicable)
283
+ ⊘ risks.md — 34 lines
284
+
285
+ ── docs/ ──
286
+
287
+ ✔ README.md — 45 lines
288
+ ✔ topology.md — 120 lines
289
+ ✔ architecture.md — 89 lines
290
+ ✔ api.md — 200 lines
291
+ ✔ issues.md — 34 lines
292
+ ✔ resolved.md — 67 lines
293
+ ✔ roadmap.md — 42 lines
294
+ ✔ developer_guide.md — 95 lines
295
+ ✔ troubleshooting.md — 55 lines
296
+ ✔ glossary.md — 28 lines
297
+
298
+ Result: 2 N/A, 23 passed ✔
116
299
  ```
117
300
 
118
- The semantic model is a first-class citizen — not an afterthought.
301
+ Files marked N/A are recognized as intentionally not applicable — not penalized.
302
+
303
+ ---
119
304
 
120
- ## Works With
305
+ ## 🌍 Works With Everything
121
306
 
122
307
  `.vibe/` is language-agnostic. It works for:
123
308
 
124
- - Python, TypeScript, Go, Rust, C#, Java, C++, Swift
125
- - React, Next.js, Django, FastAPI, Spring, Rails
126
- - Unity, Unreal, Godot
127
- - Embedded firmware, CLI tools, mobile apps, libraries
128
- - Monorepos, microservices, serverless
309
+ <table>
310
+ <tr>
311
+ <td>
312
+
313
+ **Languages**
314
+ - Python
315
+ - TypeScript / JavaScript
316
+ - Go
317
+ - Rust
318
+ - C# / .NET
319
+ - Java
320
+ - C / C++
321
+ - Swift
322
+
323
+ </td>
324
+ <td>
325
+
326
+ **Frameworks**
327
+ - React / Next.js / Vue
328
+ - Django / FastAPI / Flask
329
+ - Spring / Rails
330
+ - Unity / Unreal / Godot
331
+ - React Native / Flutter
332
+ - Express / NestJS
333
+ - Tauri / Electron
334
+
335
+ </td>
336
+ <td>
337
+
338
+ **Project Types**
339
+ - Web applications
340
+ - CLI tools
341
+ - Mobile apps
342
+ - Libraries & packages
343
+ - Microservices
344
+ - Embedded firmware
345
+ - Game engines
346
+ - Monorepos
347
+
348
+ </td>
349
+ </tr>
350
+ </table>
129
351
 
130
352
  Because it describes **what** and **why**, not **how**.
131
353
 
132
- ## Repository Structure
354
+ ---
355
+
356
+ ## 📁 Repository Structure
133
357
 
134
358
  ```
135
359
  Vibes/
136
- ├── bin/vibes.js — CLI entry point (zero dependencies)
137
- ├── templates/ — Skeleton files copied into .vibe/
138
- ├── purpose.md
360
+ ├── bin/
361
+ │ └── vibes.js CLI (zero dependencies)
362
+ ├── templates/
363
+ │ ├── purpose.md ── Core
139
364
  │ ├── architecture.md
140
365
  │ ├── flows.md
141
366
  │ ├── entities.md
142
- │ ├── decisions.md
143
- └── state.json
367
+ │ ├── decisions.md (with dependency graph)
368
+ ├── state.json
369
+ │ ├── context.md ── Living Context
370
+ │ ├── ai.md ── AI Agent Guide
371
+ │ ├── product.md ── Product Memory
372
+ │ ├── users.md
373
+ │ ├── metrics.md
374
+ │ ├── experiments.md
375
+ │ ├── business.md ── Business Memory
376
+ │ ├── market.md
377
+ │ ├── risks.md
378
+ │ └── docs/ ── Operational Docs
379
+ │ ├── README.md
380
+ │ ├── topology.md
381
+ │ ├── architecture.md
382
+ │ ├── api.md
383
+ │ ├── issues.md
384
+ │ ├── resolved.md
385
+ │ ├── roadmap.md
386
+ │ ├── developer_guide.md
387
+ │ ├── troubleshooting.md
388
+ │ ├── glossary.md
389
+ │ └── decisions/
390
+ │ └── 0001-template.md
144
391
  ├── spec/
145
- │ └── VIBE_GUIDE.mdFull spec with examples and instructions
146
- ├── QUICK_START_PROMPT.md — Copy-paste prompt for AI agents
147
- ├── VIBE_GUIDE.md Full spec (also at root for easy reading)
392
+ │ └── VIBE_GUIDE.md Full spec (bundled on init)
393
+ ├── Vibe.bat One-click Windows installer
394
+ ├── QUICK_START_PROMPT.md Copy-paste prompt for AI agents
395
+ ├── VIBE_GUIDE.md Full spec (readable at root)
148
396
  ├── package.json
149
- ├── LICENSE — MIT
150
- └── README.md — This file
397
+ ├── LICENSE
398
+ └── README.md
151
399
  ```
152
400
 
153
- ## License
401
+ ---
402
+
403
+ ## 📜 License
154
404
 
155
405
  MIT — use it, fork it, build on it.
156
406
 
157
- ## Contributing
407
+ ---
408
+
409
+ <div align="center">
410
+
411
+ ## 💡 The Paradigm Shift
412
+
413
+ <br>
414
+
415
+ Most AI coding tools today operate in a simple loop:
416
+
417
+ **Read Code → Write Code → Hope It Works**
418
+
419
+ The AI has no memory. No context. No understanding of *why* things are the way they are.<br>
420
+ Every session starts from zero. Every agent makes the same mistakes.
421
+
422
+ With vibes, the loop transforms:
423
+
424
+ ```
425
+ ┌─────────────────────────────────────┐
426
+ │ │
427
+ ▼ │
428
+ Read .vibe/ → Understand Intent │
429
+ │ │
430
+ ▼ │
431
+ Read Code → Make Changes │
432
+ │ │
433
+ ▼ │
434
+ Update .vibe/ + docs/ ─────────────────────┘
435
+ ```
436
+
437
+ **The semantic model becomes a first-class citizen.**
438
+
439
+ It's not generated once and forgotten. It's not a README that rots.<br>
440
+ It's a living, continuously-maintained digital twin that gets smarter every time anyone — human or AI — touches the project.
441
+
442
+ <br>
443
+
444
+ ---
445
+
446
+ ### 🔮 The Vision
447
+
448
+ Imagine a world where:
449
+
450
+ - You open **any** repository and instantly understand what it does, why it exists, and what's broken — before reading a single line of code
451
+ - Your AI agent picks up **exactly** where the last one left off — with full context of every decision, every experiment, every user frustration
452
+ - New team members are productive in **hours**, not weeks
453
+ - Product decisions are grounded in documented user reality, not guesswork
454
+ - Business strategy, pricing rationale, and competitive positioning live next to the code — not in a forgotten Google Doc
455
+ - Documentation **never** goes stale because the AI updates it as part of its normal workflow
456
+
457
+ That world starts with one command.
458
+
459
+ <br>
460
+
461
+ ```bash
462
+ npx vibe-me all
463
+ ```
464
+
465
+ <br>
466
+
467
+ ---
468
+
469
+ *Created by [Joshua M. Abrams](https://github.com/unlimitedinfinit)*
470
+
471
+ *The `.vibe` spec is version 1.0 — tested across production repositories spanning Go, Rust, TypeScript, Python, and Solidity.*<br>
472
+ *If you create `.vibe/` for your project, [open an issue](https://github.com/unlimitedinfinit/Vibes/issues) and share what you learned.*
473
+
474
+ <br>
158
475
 
159
- The `.vibe` spec is version 1.0. After testing across 20+ repositories, we'll refine which information is always useful, which is noise, what AI can extract automatically, and what humans must provide.
476
+ **Stop giving your AI agents amnesia. Give them vibes.**
160
477
 
161
- If you create `.vibe/` for your project, open an issue and share what you learned.
478
+ </div>
package/Vibe.bat ADDED
@@ -0,0 +1,43 @@
1
+ @echo off
2
+ :: ──────────────────────────────────────────────
3
+ :: Vibe.bat — One-click project setup
4
+ :: Drop this file in any project root and double-click.
5
+ :: Creates .vibe/ (15 files) + docs/ (11 files)
6
+ :: ──────────────────────────────────────────────
7
+
8
+ echo.
9
+ echo ======================================================
10
+ echo vibes — The complete semantic layer for any project
11
+ echo ======================================================
12
+ echo.
13
+
14
+ :: Check if Node.js is installed
15
+ where node >nul 2>nul
16
+ if %ERRORLEVEL% neq 0 (
17
+ echo ERROR: Node.js is not installed.
18
+ echo Download it from https://nodejs.org
19
+ echo.
20
+ pause
21
+ exit /b 1
22
+ )
23
+
24
+ :: Run vibes all (init + docs) in the current directory
25
+ echo Running: npx vibe-me@latest all
26
+ echo.
27
+ call npx -y vibe-me@latest all
28
+
29
+ echo.
30
+ echo ======================================================
31
+ echo DONE! Your .vibe/ and docs/ folders are ready.
32
+ echo.
33
+ echo Next step — tell your AI coding agent:
34
+ echo.
35
+ echo "Read .vibe/VIBE_GUIDE.md, then analyze this
36
+ echo codebase and fill out all skeleton files in
37
+ echo .vibe/ and docs/. For files that aren't relevant
38
+ echo write N/A with a brief explanation. Ask me any
39
+ echo questions you can't answer from the code."
40
+ echo.
41
+ echo ======================================================
42
+ echo.
43
+ pause