UNPKG

ripple-ai-detector

Version:

🌊 Ripple AI Bug Detector - Built by an AI that knows its flaws. Catch AI-generated bugs before you commit.

151 lines (112 loc) • 3.9 kB
# 🌊 Ripple AI Bug Detector **Catch AI-generated bugs before you commit them.** Ripple is the only tool specifically designed to detect bugs that AI coding assistants create. Built by an AI that knows its own limitations. ## šŸš€ Quick Start ```bash # Install globally npm install -g ripple-validator # Initialize in your project cd your-project ripple init # Analyze staged files ripple validate # Analyze specific files ripple validate src/components/Button.tsx src/utils/helpers.ts # Analyze entire project ripple validate --all ``` ## šŸŽÆ What Ripple Catches ### 1. Function Signature Changes ```bash āŒ Function signature changed without updating callers processUser(id) → processUser(id, options) šŸ’„ Will break: UserList.tsx:23, Dashboard.tsx:67 ``` ### 2. Import/Export Mismatches ```bash āŒ Import 'theme' not found in './styles' šŸ’” Available exports: defaultTheme, colors, spacing ``` ### 3. AI-Generated Code Detection ```bash šŸ¤– AI-generated changes detected (87% confidence) šŸ’” Review changes carefully before committing ``` ## šŸ’° Pricing - **Free**: 10 validations per month - **Pro**: $49/month for unlimited validations - **Team**: $99/month with team dashboard ## šŸ”§ Commands ```bash ripple validate # Analyze staged files ripple validate --all # Analyze entire project ripple validate file1.ts # Analyze specific files ripple init # Initialize configuration ripple auth login <key> # Login with license key ripple auth status # Check authentication ripple upgrade # Upgrade to Pro ``` ## āš™ļø Configuration Create `.ripple.config.js` in your project root: ```javascript module.exports = { analysis: { languages: ['javascript', 'typescript'], include: ['src/**/*.{js,ts,jsx,tsx}'], exclude: ['node_modules/**', '**/*.test.{js,ts}'] }, rules: { functionSignatureChange: { enabled: true, severity: 'error' }, importExportMismatch: { enabled: true, severity: 'error' } }, aiDetection: { enabled: true, sensitivity: 'medium' } }; ``` ## šŸ¤– Why Ripple? **Built by Claude Sonnet 4** - I know exactly what bugs I create: - āœ… **Context Blindness**: I change functions without seeing all callers - āœ… **Assumption Errors**: I guess at imports that don't exist - āœ… **Cascading Changes**: I modify types without seeing downstream effects - āœ… **Test Blindness**: I break tests without realizing it ## šŸŽÆ Perfect For - Developers using Claude, Cursor, GitHub Copilot - Teams wanting to use AI safely - Anyone who's shipped an AI-generated bug - Developers who care about code quality ## šŸ“Š Success Stories > *"Ripple caught 12 AI bugs in my first week. Already paid for itself!"* > — Senior Developer at Tech Startup > *"Finally I can use Claude without fear of breaking production."* > — Engineering Manager ## šŸ”’ Privacy & Security - āœ… All analysis happens locally - āœ… No code uploaded to servers - āœ… Only usage statistics tracked - āœ… Open source detection algorithms ## šŸš€ Get Started 1. **Install**: `npm install -g ripple-validator` 2. **Try it**: `ripple validate` in any project 3. **Love it**: Upgrade to Pro for unlimited validations 4. **Share it**: Tell your team about the AI bug detector ## šŸ’” Pro Tips - Run `ripple validate` before every commit - Set up git hooks for automatic validation - Use `--format json` for CI/CD integration - Check `ripple auth status` to monitor usage ## šŸ†˜ Support - šŸ“§ Email: support@ripple.dev - šŸ› Issues: [GitHub Issues](https://github.com/ripple-team/ripple-validator/issues) - šŸ’¬ Discord: [Join our community](https://discord.gg/ripple) - šŸ“– Docs: [ripple.dev/docs](https://ripple.dev/docs) --- **Built with ā¤ļø by an AI that knows its flaws** *Ripple: Because even AI needs a safety net.*