You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@lacow/vibe-check

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lacow/vibe-check

Automated codebase health scanner for AI-generated code pathologies

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

vibe-check

Automated codebase health scanner that detects pathologies common in AI-generated code.

Install

npm install -g @lacow/vibe-check

Usage

# Scan current directory
vibe-check .

# JSON output
vibe-check . --json

# CI mode — exit code 1 if score < threshold
vibe-check . --ci --threshold 7

# Run specific rules only
vibe-check . --rules hallucinated-imports,dead-code-paths

# List all available rules
vibe-check --list-rules

# Use a custom config file
vibe-check . --config ./custom-config.json

# Suppress info-level findings
vibe-check . --quiet

# Exclude files ad-hoc
vibe-check . --ignore-pattern "generated/**"

# Generate a .vibecheck config file
vibe-check --init

Rules

RuleCategorySeverityDescription
hallucinated-importsphantom-depscriticalDetect imports of packages not listed in package.json
phantom-peer-depsphantom-depswarningDetect imports that rely on peer dependencies instead of declared ones
dependency-bloatdependencieswarningDetects large utility libraries that could be replaced with lighter alternatives
cross-file-duplicationduplicationwarningDetects copy-pasted logic across different files
inconsistent-error-handlingconsistencywarningDetects async functions without error handling
inconsistent-namingconsistencyinfoDetects mixed naming conventions within the same file
orphaned-exportsdead-codewarningFinds exported symbols that are never imported anywhere in the project
dead-code-pathsdead-codewarningDetects unreachable code after return, throw, or process.exit()
unused-dependenciesdead-codewarningFinds packages declared in dependencies but never imported in source files
over-abstractionarchitectureinfoDetects single-use abstractions common in AI-generated code
type-assertion-overusetype-safetywarningDetects excessive use of type assertions that bypass type checking
hardcoded-secretssecuritycriticalDetect hardcoded secrets and sensitive credentials in source code
todo-accumulationmaintenanceinfoDetects accumulated TODO/FIXME/HACK comments
console-remnantsmaintenanceinfoDetects leftover console.log statements in production code
commented-out-codedead-codewarningDetects blocks of commented-out code

Programmatic API

import { scan } from '@lacow/vibe-check';

const result = await scan({ path: './my-project' });

console.log(result.score);      // 0-10
console.log(result.findings);   // Finding[]
console.log(result.summary);    // { total, critical, warning, info }

License

MIT

Keywords

vibe-coding

FAQs

Package last updated on 14 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts