vibecheck-ai 1.0.7 → 1.1.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 +348 -348
- package/dist/index.js +3959 -612
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,348 +1,348 @@
|
|
|
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 scan` | Scan codebase and generate truthpack |
|
|
101
|
-
| `vibecheck check` | Run hallucination and drift detection |
|
|
102
|
-
| `vibecheck validate [file]` | Validate files against truthpack |
|
|
103
|
-
| `vibecheck ship` | Pre-deployment security checks with auto-fix |
|
|
104
|
-
| `vibecheck fix` | Apply auto-fixes for detected issues |
|
|
105
|
-
| `vibecheck report` | Generate enterprise-grade HTML/PDF reports |
|
|
106
|
-
| `vibecheck doctor` | Validate system dependencies and configuration |
|
|
107
|
-
| `vibecheck config` | View or edit configuration |
|
|
108
|
-
| `vibecheck watch` | Watch for changes and validate continuously |
|
|
109
|
-
| `vibecheck menu` | Interactive menu for all features |
|
|
110
|
-
|
|
111
|
-
### Ship Command (Pre-deployment Checks)
|
|
112
|
-
|
|
113
|
-
The `ship` command runs comprehensive security analysis before deployment:
|
|
114
|
-
|
|
115
|
-
```bash
|
|
116
|
-
# Run all pre-deployment checks
|
|
117
|
-
vibecheck ship
|
|
118
|
-
|
|
119
|
-
# Auto-fix issues before shipping
|
|
120
|
-
vibecheck ship --fix
|
|
121
|
-
|
|
122
|
-
# Force ship despite warnings
|
|
123
|
-
vibecheck ship --force
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
**Checks include:**
|
|
127
|
-
- **Ultimate Scanner** — 80+ security patterns (credentials, SQLi, XSS, SSRF, etc.)
|
|
128
|
-
- **Truthpack validation** — Routes, env vars, auth patterns
|
|
129
|
-
- **Drift detection** — Changes from verified baseline
|
|
130
|
-
- **Secrets scanning** — API keys, tokens, passwords
|
|
131
|
-
- **Code quality** — Dead code, TODO comments, debug statements
|
|
132
|
-
|
|
133
|
-
## Features
|
|
134
|
-
|
|
135
|
-
### 🎯 Truthpack Generation
|
|
136
|
-
|
|
137
|
-
Automatically extract and verify facts about your codebase:
|
|
138
|
-
|
|
139
|
-
- **Routes** — API endpoints with methods, paths, and handlers
|
|
140
|
-
- **Environment** — Required env vars with types and defaults
|
|
141
|
-
- **Authentication** — Auth strategies and protected routes
|
|
142
|
-
- **Database** — Schema definitions and relationships
|
|
143
|
-
- **Dependencies** — Package versions and compatibility
|
|
144
|
-
|
|
145
|
-
### 🔍 Hallucination Detection
|
|
146
|
-
|
|
147
|
-
Catch AI mistakes before they become bugs:
|
|
148
|
-
|
|
149
|
-
- Invented API endpoints
|
|
150
|
-
- Non-existent environment variables
|
|
151
|
-
- Outdated package versions
|
|
152
|
-
- Incorrect type assumptions
|
|
153
|
-
- Missing error handling
|
|
154
|
-
|
|
155
|
-
### 🛡️ Ultimate Security Scanner
|
|
156
|
-
|
|
157
|
-
Industry-leading security detection with **80+ patterns**:
|
|
158
|
-
|
|
159
|
-
**Credentials:**
|
|
160
|
-
- Stripe, AWS, GitHub, Google, Azure, npm tokens
|
|
161
|
-
- OpenAI, Anthropic, SendGrid, Twilio API keys
|
|
162
|
-
- Private keys, JWT secrets, database passwords
|
|
163
|
-
|
|
164
|
-
**Security Vulnerabilities:**
|
|
165
|
-
- SQL Injection, XSS, Command Injection
|
|
166
|
-
- SSRF, Path Traversal, Open Redirect
|
|
167
|
-
- CORS misconfig, Missing CSP, Clickjacking
|
|
168
|
-
- Timing attacks, Insecure cookies
|
|
169
|
-
|
|
170
|
-
**AI Hallucinations:**
|
|
171
|
-
- Fake npm packages
|
|
172
|
-
- Deprecated APIs (React 18, moment.js)
|
|
173
|
-
- Placeholder URLs (example.com, localhost)
|
|
174
|
-
- Made-up methods
|
|
175
|
-
|
|
176
|
-
**Framework-Specific:**
|
|
177
|
-
- Next.js server actions, API route auth
|
|
178
|
-
- React hooks issues, setState in render
|
|
179
|
-
- Express without Helmet, trust-proxy issues
|
|
180
|
-
|
|
181
|
-
### 🛡️ Code Firewall
|
|
182
|
-
|
|
183
|
-
Protect critical files from AI modifications:
|
|
184
|
-
|
|
185
|
-
```typescript
|
|
186
|
-
// vibecheck.config.mjs
|
|
187
|
-
export default {
|
|
188
|
-
firewall: {
|
|
189
|
-
locked: ['src/core/**', '.env*'],
|
|
190
|
-
warn: ['package.json', 'tsconfig.json'],
|
|
191
|
-
}
|
|
192
|
-
};
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
### 📊 Beautiful Reports
|
|
196
|
-
|
|
197
|
-
Get clear, actionable feedback:
|
|
198
|
-
|
|
199
|
-
```
|
|
200
|
-
┌─────────────────────────────────────────────────────────┐
|
|
201
|
-
│ VibeCheck Analysis Complete │
|
|
202
|
-
├─────────────────────────────────────────────────────────┤
|
|
203
|
-
│ ✓ 47 files analyzed │
|
|
204
|
-
│ ✓ 12 routes validated │
|
|
205
|
-
│ ⚠ 2 potential hallucinations detected │
|
|
206
|
-
│ ✗ 1 critical issue found │
|
|
207
|
-
└─────────────────────────────────────────────────────────┘
|
|
208
|
-
|
|
209
|
-
Critical: src/api/payments.ts:42
|
|
210
|
-
→ References 'stripe.customers.delete()' but Stripe SDK
|
|
211
|
-
version 14.x uses 'stripe.customers.del()'
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
## Configuration
|
|
215
|
-
|
|
216
|
-
Create `vibecheck.config.mjs` in your project root:
|
|
217
|
-
|
|
218
|
-
```javascript
|
|
219
|
-
/** @type {import('vibecheck-ai').VibeCheckConfig} */
|
|
220
|
-
export default {
|
|
221
|
-
// Project info
|
|
222
|
-
project: {
|
|
223
|
-
name: 'my-app',
|
|
224
|
-
type: 'nextjs',
|
|
225
|
-
},
|
|
226
|
-
|
|
227
|
-
// What to analyze
|
|
228
|
-
include: ['src/**/*.ts', 'src/**/*.tsx'],
|
|
229
|
-
exclude: ['**/*.test.ts', '**/node_modules/**'],
|
|
230
|
-
|
|
231
|
-
// Hallucination detection sensitivity
|
|
232
|
-
analysis: {
|
|
233
|
-
strictness: 'standard', // 'relaxed' | 'standard' | 'paranoid'
|
|
234
|
-
checkDependencies: true,
|
|
235
|
-
checkEnvVars: true,
|
|
236
|
-
checkRoutes: true,
|
|
237
|
-
},
|
|
238
|
-
|
|
239
|
-
// File protection
|
|
240
|
-
firewall: {
|
|
241
|
-
locked: ['.env*', 'src/core/**'],
|
|
242
|
-
warn: ['package.json'],
|
|
243
|
-
},
|
|
244
|
-
};
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
## IDE Integration
|
|
248
|
-
|
|
249
|
-
### Cursor
|
|
250
|
-
|
|
251
|
-
VibeCheck works seamlessly with Cursor. Install the MCP server for real-time validation:
|
|
252
|
-
|
|
253
|
-
```bash
|
|
254
|
-
npm install -g @vibecheckai/mcp-server
|
|
255
|
-
```
|
|
256
|
-
|
|
257
|
-
Add to your Cursor settings:
|
|
258
|
-
|
|
259
|
-
```json
|
|
260
|
-
{
|
|
261
|
-
"mcpServers": {
|
|
262
|
-
"vibecheck": {
|
|
263
|
-
"command": "vibecheck-mcp"
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
```
|
|
268
|
-
|
|
269
|
-
### VS Code
|
|
270
|
-
|
|
271
|
-
Install the [VibeCheck extension](https://marketplace.visualstudio.com/items?itemName=vibecheckai.vibecheck) for inline validation and truthpack browsing.
|
|
272
|
-
|
|
273
|
-
## CI/CD Integration
|
|
274
|
-
|
|
275
|
-
### GitHub Actions
|
|
276
|
-
|
|
277
|
-
```yaml
|
|
278
|
-
name: VibeCheck
|
|
279
|
-
on: [push, pull_request]
|
|
280
|
-
|
|
281
|
-
jobs:
|
|
282
|
-
vibecheck:
|
|
283
|
-
runs-on: ubuntu-latest
|
|
284
|
-
steps:
|
|
285
|
-
- uses: actions/checkout@v4
|
|
286
|
-
- uses: actions/setup-node@v4
|
|
287
|
-
with:
|
|
288
|
-
node-version: '20'
|
|
289
|
-
- run: npm install -g vibecheck-ai
|
|
290
|
-
- run: vibecheck check --ci
|
|
291
|
-
```
|
|
292
|
-
|
|
293
|
-
### Pre-commit Hook
|
|
294
|
-
|
|
295
|
-
```bash
|
|
296
|
-
# Add to your package.json
|
|
297
|
-
{
|
|
298
|
-
"husky": {
|
|
299
|
-
"hooks": {
|
|
300
|
-
"pre-commit": "vibecheck check"
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
```
|
|
305
|
-
|
|
306
|
-
## Why VibeCheck?
|
|
307
|
-
|
|
308
|
-
| Without VibeCheck | With VibeCheck |
|
|
309
|
-
|-------------------|----------------|
|
|
310
|
-
| AI invents non-existent APIs | AI references verified truthpack |
|
|
311
|
-
| Outdated code patterns | Current codebase reality |
|
|
312
|
-
| Runtime errors from hallucinations | Compile-time hallucination detection |
|
|
313
|
-
| Manual code review for AI output | Automated validation |
|
|
314
|
-
| "It worked on my machine" | Consistent truth across team |
|
|
315
|
-
|
|
316
|
-
## Pricing
|
|
317
|
-
|
|
318
|
-
| Tier | Price | Features |
|
|
319
|
-
|------|-------|----------|
|
|
320
|
-
| **Free** | $0 | CLI commands, local analysis, basic truthpack |
|
|
321
|
-
| **Pro** | $29/mo | Unlimited projects, CI/CD, team features, priority support |
|
|
322
|
-
| **Enterprise** | Custom | SSO, audit logs, custom policies, dedicated support |
|
|
323
|
-
|
|
324
|
-
All CLI commands are **free forever**. Pro unlocks cloud features and team collaboration.
|
|
325
|
-
|
|
326
|
-
## Community
|
|
327
|
-
|
|
328
|
-
- **Discord** — [Join our community](https://vibecheckai.dev/discord)
|
|
329
|
-
- **Twitter** — [@vibecheckai](https://twitter.com/vibecheckai)
|
|
330
|
-
- **GitHub** — [vibecheckai/vibecheck](https://github.com/vibecheckai/vibecheck)
|
|
331
|
-
|
|
332
|
-
## Contributing
|
|
333
|
-
|
|
334
|
-
We welcome contributions! See [CONTRIBUTING.md](https://github.com/vibecheckai/vibecheck/blob/main/CONTRIBUTING.md) for guidelines.
|
|
335
|
-
|
|
336
|
-
## License
|
|
337
|
-
|
|
338
|
-
MIT © [VibeCheck AI](https://vibecheckai.dev)
|
|
339
|
-
|
|
340
|
-
---
|
|
341
|
-
|
|
342
|
-
<p align="center">
|
|
343
|
-
<strong>Stop hallucinations. Ship with confidence.</strong>
|
|
344
|
-
</p>
|
|
345
|
-
|
|
346
|
-
<p align="center">
|
|
347
|
-
<a href="https://vibecheckai.dev">Get Started →</a>
|
|
348
|
-
</p>
|
|
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 scan` | Scan codebase and generate truthpack |
|
|
101
|
+
| `vibecheck check` | Run hallucination and drift detection |
|
|
102
|
+
| `vibecheck validate [file]` | Validate files against truthpack |
|
|
103
|
+
| `vibecheck ship` | Pre-deployment security checks with auto-fix |
|
|
104
|
+
| `vibecheck fix` | Apply auto-fixes for detected issues |
|
|
105
|
+
| `vibecheck report` | Generate enterprise-grade HTML/PDF reports |
|
|
106
|
+
| `vibecheck doctor` | Validate system dependencies and configuration |
|
|
107
|
+
| `vibecheck config` | View or edit configuration |
|
|
108
|
+
| `vibecheck watch` | Watch for changes and validate continuously |
|
|
109
|
+
| `vibecheck menu` | Interactive menu for all features |
|
|
110
|
+
|
|
111
|
+
### Ship Command (Pre-deployment Checks)
|
|
112
|
+
|
|
113
|
+
The `ship` command runs comprehensive security analysis before deployment:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
# Run all pre-deployment checks
|
|
117
|
+
vibecheck ship
|
|
118
|
+
|
|
119
|
+
# Auto-fix issues before shipping
|
|
120
|
+
vibecheck ship --fix
|
|
121
|
+
|
|
122
|
+
# Force ship despite warnings
|
|
123
|
+
vibecheck ship --force
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
**Checks include:**
|
|
127
|
+
- **Ultimate Scanner** — 80+ security patterns (credentials, SQLi, XSS, SSRF, etc.)
|
|
128
|
+
- **Truthpack validation** — Routes, env vars, auth patterns
|
|
129
|
+
- **Drift detection** — Changes from verified baseline
|
|
130
|
+
- **Secrets scanning** — API keys, tokens, passwords
|
|
131
|
+
- **Code quality** — Dead code, TODO comments, debug statements
|
|
132
|
+
|
|
133
|
+
## Features
|
|
134
|
+
|
|
135
|
+
### 🎯 Truthpack Generation
|
|
136
|
+
|
|
137
|
+
Automatically extract and verify facts about your codebase:
|
|
138
|
+
|
|
139
|
+
- **Routes** — API endpoints with methods, paths, and handlers
|
|
140
|
+
- **Environment** — Required env vars with types and defaults
|
|
141
|
+
- **Authentication** — Auth strategies and protected routes
|
|
142
|
+
- **Database** — Schema definitions and relationships
|
|
143
|
+
- **Dependencies** — Package versions and compatibility
|
|
144
|
+
|
|
145
|
+
### 🔍 Hallucination Detection
|
|
146
|
+
|
|
147
|
+
Catch AI mistakes before they become bugs:
|
|
148
|
+
|
|
149
|
+
- Invented API endpoints
|
|
150
|
+
- Non-existent environment variables
|
|
151
|
+
- Outdated package versions
|
|
152
|
+
- Incorrect type assumptions
|
|
153
|
+
- Missing error handling
|
|
154
|
+
|
|
155
|
+
### 🛡️ Ultimate Security Scanner
|
|
156
|
+
|
|
157
|
+
Industry-leading security detection with **80+ patterns**:
|
|
158
|
+
|
|
159
|
+
**Credentials:**
|
|
160
|
+
- Stripe, AWS, GitHub, Google, Azure, npm tokens
|
|
161
|
+
- OpenAI, Anthropic, SendGrid, Twilio API keys
|
|
162
|
+
- Private keys, JWT secrets, database passwords
|
|
163
|
+
|
|
164
|
+
**Security Vulnerabilities:**
|
|
165
|
+
- SQL Injection, XSS, Command Injection
|
|
166
|
+
- SSRF, Path Traversal, Open Redirect
|
|
167
|
+
- CORS misconfig, Missing CSP, Clickjacking
|
|
168
|
+
- Timing attacks, Insecure cookies
|
|
169
|
+
|
|
170
|
+
**AI Hallucinations:**
|
|
171
|
+
- Fake npm packages
|
|
172
|
+
- Deprecated APIs (React 18, moment.js)
|
|
173
|
+
- Placeholder URLs (example.com, localhost)
|
|
174
|
+
- Made-up methods
|
|
175
|
+
|
|
176
|
+
**Framework-Specific:**
|
|
177
|
+
- Next.js server actions, API route auth
|
|
178
|
+
- React hooks issues, setState in render
|
|
179
|
+
- Express without Helmet, trust-proxy issues
|
|
180
|
+
|
|
181
|
+
### 🛡️ Code Firewall
|
|
182
|
+
|
|
183
|
+
Protect critical files from AI modifications:
|
|
184
|
+
|
|
185
|
+
```typescript
|
|
186
|
+
// vibecheck.config.mjs
|
|
187
|
+
export default {
|
|
188
|
+
firewall: {
|
|
189
|
+
locked: ['src/core/**', '.env*'],
|
|
190
|
+
warn: ['package.json', 'tsconfig.json'],
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
### 📊 Beautiful Reports
|
|
196
|
+
|
|
197
|
+
Get clear, actionable feedback:
|
|
198
|
+
|
|
199
|
+
```
|
|
200
|
+
┌─────────────────────────────────────────────────────────┐
|
|
201
|
+
│ VibeCheck Analysis Complete │
|
|
202
|
+
├─────────────────────────────────────────────────────────┤
|
|
203
|
+
│ ✓ 47 files analyzed │
|
|
204
|
+
│ ✓ 12 routes validated │
|
|
205
|
+
│ ⚠ 2 potential hallucinations detected │
|
|
206
|
+
│ ✗ 1 critical issue found │
|
|
207
|
+
└─────────────────────────────────────────────────────────┘
|
|
208
|
+
|
|
209
|
+
Critical: src/api/payments.ts:42
|
|
210
|
+
→ References 'stripe.customers.delete()' but Stripe SDK
|
|
211
|
+
version 14.x uses 'stripe.customers.del()'
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
## Configuration
|
|
215
|
+
|
|
216
|
+
Create `vibecheck.config.mjs` in your project root:
|
|
217
|
+
|
|
218
|
+
```javascript
|
|
219
|
+
/** @type {import('vibecheck-ai').VibeCheckConfig} */
|
|
220
|
+
export default {
|
|
221
|
+
// Project info
|
|
222
|
+
project: {
|
|
223
|
+
name: 'my-app',
|
|
224
|
+
type: 'nextjs',
|
|
225
|
+
},
|
|
226
|
+
|
|
227
|
+
// What to analyze
|
|
228
|
+
include: ['src/**/*.ts', 'src/**/*.tsx'],
|
|
229
|
+
exclude: ['**/*.test.ts', '**/node_modules/**'],
|
|
230
|
+
|
|
231
|
+
// Hallucination detection sensitivity
|
|
232
|
+
analysis: {
|
|
233
|
+
strictness: 'standard', // 'relaxed' | 'standard' | 'paranoid'
|
|
234
|
+
checkDependencies: true,
|
|
235
|
+
checkEnvVars: true,
|
|
236
|
+
checkRoutes: true,
|
|
237
|
+
},
|
|
238
|
+
|
|
239
|
+
// File protection
|
|
240
|
+
firewall: {
|
|
241
|
+
locked: ['.env*', 'src/core/**'],
|
|
242
|
+
warn: ['package.json'],
|
|
243
|
+
},
|
|
244
|
+
};
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
## IDE Integration
|
|
248
|
+
|
|
249
|
+
### Cursor
|
|
250
|
+
|
|
251
|
+
VibeCheck works seamlessly with Cursor. Install the MCP server for real-time validation:
|
|
252
|
+
|
|
253
|
+
```bash
|
|
254
|
+
npm install -g @vibecheckai/mcp-server
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
Add to your Cursor settings:
|
|
258
|
+
|
|
259
|
+
```json
|
|
260
|
+
{
|
|
261
|
+
"mcpServers": {
|
|
262
|
+
"vibecheck": {
|
|
263
|
+
"command": "vibecheck-mcp"
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
### VS Code
|
|
270
|
+
|
|
271
|
+
Install the [VibeCheck extension](https://marketplace.visualstudio.com/items?itemName=vibecheckai.vibecheck) for inline validation and truthpack browsing.
|
|
272
|
+
|
|
273
|
+
## CI/CD Integration
|
|
274
|
+
|
|
275
|
+
### GitHub Actions
|
|
276
|
+
|
|
277
|
+
```yaml
|
|
278
|
+
name: VibeCheck
|
|
279
|
+
on: [push, pull_request]
|
|
280
|
+
|
|
281
|
+
jobs:
|
|
282
|
+
vibecheck:
|
|
283
|
+
runs-on: ubuntu-latest
|
|
284
|
+
steps:
|
|
285
|
+
- uses: actions/checkout@v4
|
|
286
|
+
- uses: actions/setup-node@v4
|
|
287
|
+
with:
|
|
288
|
+
node-version: '20'
|
|
289
|
+
- run: npm install -g vibecheck-ai
|
|
290
|
+
- run: vibecheck check --ci
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
### Pre-commit Hook
|
|
294
|
+
|
|
295
|
+
```bash
|
|
296
|
+
# Add to your package.json
|
|
297
|
+
{
|
|
298
|
+
"husky": {
|
|
299
|
+
"hooks": {
|
|
300
|
+
"pre-commit": "vibecheck check"
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
## Why VibeCheck?
|
|
307
|
+
|
|
308
|
+
| Without VibeCheck | With VibeCheck |
|
|
309
|
+
|-------------------|----------------|
|
|
310
|
+
| AI invents non-existent APIs | AI references verified truthpack |
|
|
311
|
+
| Outdated code patterns | Current codebase reality |
|
|
312
|
+
| Runtime errors from hallucinations | Compile-time hallucination detection |
|
|
313
|
+
| Manual code review for AI output | Automated validation |
|
|
314
|
+
| "It worked on my machine" | Consistent truth across team |
|
|
315
|
+
|
|
316
|
+
## Pricing
|
|
317
|
+
|
|
318
|
+
| Tier | Price | Features |
|
|
319
|
+
|------|-------|----------|
|
|
320
|
+
| **Free** | $0 | CLI commands, local analysis, basic truthpack |
|
|
321
|
+
| **Pro** | $29/mo | Unlimited projects, CI/CD, team features, priority support |
|
|
322
|
+
| **Enterprise** | Custom | SSO, audit logs, custom policies, dedicated support |
|
|
323
|
+
|
|
324
|
+
All CLI commands are **free forever**. Pro unlocks cloud features and team collaboration.
|
|
325
|
+
|
|
326
|
+
## Community
|
|
327
|
+
|
|
328
|
+
- **Discord** — [Join our community](https://vibecheckai.dev/discord)
|
|
329
|
+
- **Twitter** — [@vibecheckai](https://twitter.com/vibecheckai)
|
|
330
|
+
- **GitHub** — [vibecheckai/vibecheck](https://github.com/vibecheckai/vibecheck)
|
|
331
|
+
|
|
332
|
+
## Contributing
|
|
333
|
+
|
|
334
|
+
We welcome contributions! See [CONTRIBUTING.md](https://github.com/vibecheckai/vibecheck/blob/main/CONTRIBUTING.md) for guidelines.
|
|
335
|
+
|
|
336
|
+
## License
|
|
337
|
+
|
|
338
|
+
MIT © [VibeCheck AI](https://vibecheckai.dev)
|
|
339
|
+
|
|
340
|
+
---
|
|
341
|
+
|
|
342
|
+
<p align="center">
|
|
343
|
+
<strong>Stop hallucinations. Ship with confidence.</strong>
|
|
344
|
+
</p>
|
|
345
|
+
|
|
346
|
+
<p align="center">
|
|
347
|
+
<a href="https://vibecheckai.dev">Get Started →</a>
|
|
348
|
+
</p>
|