vibecheck-ai 1.0.2 → 1.0.4

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 ADDED
@@ -0,0 +1,297 @@
1
+ <p align="center">
2
+ <img src="https://vibecheckai.dev/logo.png" alt="VibeCheck Logo" width="120" />
3
+ </p>
4
+
5
+ <h1 align="center">VibeCheck CLI</h1>
6
+
7
+ <p align="center">
8
+ <strong>Hallucination prevention for AI-assisted development</strong>
9
+ </p>
10
+
11
+ <p align="center">
12
+ <a href="https://www.npmjs.com/package/vibecheck-ai"><img src="https://img.shields.io/npm/v/vibecheck-ai.svg?style=flat-square&color=blue" alt="npm version" /></a>
13
+ <a href="https://www.npmjs.com/package/vibecheck-ai"><img src="https://img.shields.io/npm/dm/vibecheck-ai.svg?style=flat-square&color=green" alt="npm downloads" /></a>
14
+ <a href="https://github.com/vibecheckai/vibecheck/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square" alt="license" /></a>
15
+ <a href="https://vibecheckai.dev/discord"><img src="https://img.shields.io/discord/1234567890?style=flat-square&color=5865F2&label=discord" alt="discord" /></a>
16
+ </p>
17
+
18
+ <p align="center">
19
+ <a href="https://vibecheckai.dev">Website</a> •
20
+ <a href="https://vibecheckai.dev/docs">Documentation</a> •
21
+ <a href="https://vibecheckai.dev/discord">Discord</a> •
22
+ <a href="https://twitter.com/vibecheckai">Twitter</a>
23
+ </p>
24
+
25
+ ---
26
+
27
+ ## The Problem
28
+
29
+ AI coding assistants are incredibly powerful, but they hallucinate. They invent APIs that don't exist, reference outdated documentation, and make assumptions about your codebase that aren't true.
30
+
31
+ **VibeCheck solves this.** It creates a "truth layer" for your project—a source of verified facts that AI assistants can reference to stay grounded in reality.
32
+
33
+ ## How It Works
34
+
35
+ ```
36
+ ┌─────────────────────────────────────────────────────────────┐
37
+ │ Your Codebase │
38
+ └─────────────────────────────────────────────────────────────┘
39
+
40
+
41
+ ┌─────────────────────────────────────────────────────────────┐
42
+ │ VibeCheck Truthpack │
43
+ │ ┌───────────┐ ┌───────────┐ ┌───────────┐ │
44
+ │ │ Routes │ │ Env │ │ Auth │ ... │
45
+ │ │ Schema │ │ Schema │ │ Config │ │
46
+ │ └───────────┘ └───────────┘ └───────────┘ │
47
+ └─────────────────────────────────────────────────────────────┘
48
+
49
+
50
+ ┌─────────────────────────────────────────────────────────────┐
51
+ │ AI Assistant (Cursor, Copilot, etc.) │
52
+ │ │
53
+ │ "Based on the truthpack, I can see your API uses │
54
+ │ JWT auth with these exact routes..." │
55
+ └─────────────────────────────────────────────────────────────┘
56
+ ```
57
+
58
+ ## Quick Start
59
+
60
+ ### Installation
61
+
62
+ ```bash
63
+ # Install globally
64
+ npm install -g vibecheck-ai
65
+
66
+ # Or use with npx
67
+ npx vibecheck-ai
68
+ ```
69
+
70
+ ### Initialize Your Project
71
+
72
+ ```bash
73
+ # Navigate to your project
74
+ cd your-project
75
+
76
+ # Initialize VibeCheck
77
+ vibecheck init
78
+ ```
79
+
80
+ This creates a `.vibecheck/` directory with your project's truthpack—a verified snapshot of your codebase's reality.
81
+
82
+ ### Validate AI Suggestions
83
+
84
+ ```bash
85
+ # Check for hallucinations in staged changes
86
+ vibecheck check
87
+
88
+ # Validate a specific file
89
+ vibecheck validate src/api/routes.ts
90
+
91
+ # Run full analysis
92
+ vibecheck analyze
93
+ ```
94
+
95
+ ## Commands
96
+
97
+ | Command | Description |
98
+ |---------|-------------|
99
+ | `vibecheck init` | Initialize VibeCheck in your project |
100
+ | `vibecheck check` | Quick validation of staged changes |
101
+ | `vibecheck validate [file]` | Deep validation with hallucination detection |
102
+ | `vibecheck analyze` | Full codebase analysis |
103
+ | `vibecheck forge` | Generate/update truthpack from codebase |
104
+ | `vibecheck doctor` | Diagnose and fix VibeCheck issues |
105
+ | `vibecheck config` | View or edit configuration |
106
+ | `vibecheck menu` | Interactive menu for all features |
107
+
108
+ ## Features
109
+
110
+ ### 🎯 Truthpack Generation
111
+
112
+ Automatically extract and verify facts about your codebase:
113
+
114
+ - **Routes** — API endpoints with methods, paths, and handlers
115
+ - **Environment** — Required env vars with types and defaults
116
+ - **Authentication** — Auth strategies and protected routes
117
+ - **Database** — Schema definitions and relationships
118
+ - **Dependencies** — Package versions and compatibility
119
+
120
+ ### 🔍 Hallucination Detection
121
+
122
+ Catch AI mistakes before they become bugs:
123
+
124
+ - Invented API endpoints
125
+ - Non-existent environment variables
126
+ - Outdated package versions
127
+ - Incorrect type assumptions
128
+ - Missing error handling
129
+
130
+ ### 🛡️ Code Firewall
131
+
132
+ Protect critical files from AI modifications:
133
+
134
+ ```typescript
135
+ // vibecheck.config.mjs
136
+ export default {
137
+ firewall: {
138
+ locked: ['src/core/**', '.env*'],
139
+ warn: ['package.json', 'tsconfig.json'],
140
+ }
141
+ };
142
+ ```
143
+
144
+ ### 📊 Beautiful Reports
145
+
146
+ Get clear, actionable feedback:
147
+
148
+ ```
149
+ ┌─────────────────────────────────────────────────────────┐
150
+ │ VibeCheck Analysis Complete │
151
+ ├─────────────────────────────────────────────────────────┤
152
+ │ ✓ 47 files analyzed │
153
+ │ ✓ 12 routes validated │
154
+ │ ⚠ 2 potential hallucinations detected │
155
+ │ ✗ 1 critical issue found │
156
+ └─────────────────────────────────────────────────────────┘
157
+
158
+ Critical: src/api/payments.ts:42
159
+ → References 'stripe.customers.delete()' but Stripe SDK
160
+ version 14.x uses 'stripe.customers.del()'
161
+ ```
162
+
163
+ ## Configuration
164
+
165
+ Create `vibecheck.config.mjs` in your project root:
166
+
167
+ ```javascript
168
+ /** @type {import('vibecheck-ai').VibeCheckConfig} */
169
+ export default {
170
+ // Project info
171
+ project: {
172
+ name: 'my-app',
173
+ type: 'nextjs',
174
+ },
175
+
176
+ // What to analyze
177
+ include: ['src/**/*.ts', 'src/**/*.tsx'],
178
+ exclude: ['**/*.test.ts', '**/node_modules/**'],
179
+
180
+ // Hallucination detection sensitivity
181
+ analysis: {
182
+ strictness: 'standard', // 'relaxed' | 'standard' | 'paranoid'
183
+ checkDependencies: true,
184
+ checkEnvVars: true,
185
+ checkRoutes: true,
186
+ },
187
+
188
+ // File protection
189
+ firewall: {
190
+ locked: ['.env*', 'src/core/**'],
191
+ warn: ['package.json'],
192
+ },
193
+ };
194
+ ```
195
+
196
+ ## IDE Integration
197
+
198
+ ### Cursor
199
+
200
+ VibeCheck works seamlessly with Cursor. Install the MCP server for real-time validation:
201
+
202
+ ```bash
203
+ npm install -g @vibecheckai/mcp-server
204
+ ```
205
+
206
+ Add to your Cursor settings:
207
+
208
+ ```json
209
+ {
210
+ "mcpServers": {
211
+ "vibecheck": {
212
+ "command": "vibecheck-mcp"
213
+ }
214
+ }
215
+ }
216
+ ```
217
+
218
+ ### VS Code
219
+
220
+ Install the [VibeCheck extension](https://marketplace.visualstudio.com/items?itemName=vibecheckai.vibecheck) for inline validation and truthpack browsing.
221
+
222
+ ## CI/CD Integration
223
+
224
+ ### GitHub Actions
225
+
226
+ ```yaml
227
+ name: VibeCheck
228
+ on: [push, pull_request]
229
+
230
+ jobs:
231
+ vibecheck:
232
+ runs-on: ubuntu-latest
233
+ steps:
234
+ - uses: actions/checkout@v4
235
+ - uses: actions/setup-node@v4
236
+ with:
237
+ node-version: '20'
238
+ - run: npm install -g vibecheck-ai
239
+ - run: vibecheck check --ci
240
+ ```
241
+
242
+ ### Pre-commit Hook
243
+
244
+ ```bash
245
+ # Add to your package.json
246
+ {
247
+ "husky": {
248
+ "hooks": {
249
+ "pre-commit": "vibecheck check"
250
+ }
251
+ }
252
+ }
253
+ ```
254
+
255
+ ## Why VibeCheck?
256
+
257
+ | Without VibeCheck | With VibeCheck |
258
+ |-------------------|----------------|
259
+ | AI invents non-existent APIs | AI references verified truthpack |
260
+ | Outdated code patterns | Current codebase reality |
261
+ | Runtime errors from hallucinations | Compile-time hallucination detection |
262
+ | Manual code review for AI output | Automated validation |
263
+ | "It worked on my machine" | Consistent truth across team |
264
+
265
+ ## Pricing
266
+
267
+ | Tier | Price | Features |
268
+ |------|-------|----------|
269
+ | **Free** | $0 | CLI commands, local analysis, basic truthpack |
270
+ | **Pro** | $29/mo | Unlimited projects, CI/CD, team features, priority support |
271
+ | **Enterprise** | Custom | SSO, audit logs, custom policies, dedicated support |
272
+
273
+ All CLI commands are **free forever**. Pro unlocks cloud features and team collaboration.
274
+
275
+ ## Community
276
+
277
+ - **Discord** — [Join our community](https://vibecheckai.dev/discord)
278
+ - **Twitter** — [@vibecheckai](https://twitter.com/vibecheckai)
279
+ - **GitHub** — [vibecheckai/vibecheck](https://github.com/vibecheckai/vibecheck)
280
+
281
+ ## Contributing
282
+
283
+ We welcome contributions! See [CONTRIBUTING.md](https://github.com/vibecheckai/vibecheck/blob/main/CONTRIBUTING.md) for guidelines.
284
+
285
+ ## License
286
+
287
+ MIT © [VibeCheck AI](https://vibecheckai.dev)
288
+
289
+ ---
290
+
291
+ <p align="center">
292
+ <strong>Stop hallucinations. Ship with confidence.</strong>
293
+ </p>
294
+
295
+ <p align="center">
296
+ <a href="https://vibecheckai.dev">Get Started →</a>
297
+ </p>