vibeaudit
64
C

mckaywrigley/chatbot-ui

298 files scanned22 checks run0.3s
View on GitHub

AI chat for any model.

Frameworks: supabase, nextjs, react

1High
7Medium

high (1)

medium (7)

Mega Prompt

Combined remediation prompt for all 7 issue types. Paste this into your AI coding agent to fix everything.

I ran a production-readiness audit on my project and found the following issues. Please fix all of them: 1. I have an empty catch block in lib/supabase/server.ts at line 4 that silently swallows errors. Please add proper error handling: at minimum, log the error with console.error. Better yet, rethrow it, show a user-friendly error message, or handle the specific error case. Never silently swallow errors. 2. My React/Next.js app is missing error boundaries. Please create an error.tsx file in the app/ directory to catch rendering errors. This prevents the entire app from crashing when a component throws an error, and shows a user-friendly fallback UI instead. 3. I have an unhandled promise chain in components/chat/chat-ui.tsx at line 68 — a .then() without a .catch(). Please add error handling to this promise chain. Either add a .catch() handler, convert to async/await with try/catch, or handle the error appropriately for the context. Affected: components/chat/chat-ui.tsx:68, lib/hooks/use-copy-to-clipboard.tsx:20. 4. My Next.js app is missing a root error page. Please create a root error.tsx in the app/ directory that catches unhandled errors and shows a user-friendly error page with a retry option. 5. My project has no CI/CD configuration. Please create a GitHub Actions workflow (.github/workflows/ci.yml) that runs on push and pull requests. It should: 1) Install dependencies, 2) Run linting, 3) Run type checking, 4) Run tests, 5) Build the project. This ensures every change is automatically validated. 6. My API has no rate limiting configured. Please add rate limiting middleware (express-rate-limit or similar) to protect against abuse. Set reasonable limits for different endpoint types: stricter limits for auth endpoints (5-10 req/min), moderate for API endpoints (100 req/min), and standard for general requests. 7. My .gitignore is missing important entries. Please update .gitignore to exclude: node_modules/, .env, .env.*, dist/, build/, coverage/, .DS_Store, and any IDE-specific files.