All guidesDeep-dive articles
On this page

Example scan (synthetic)

Example VibeRaven Scan: Next.js + Supabase + Vercel

By Ohad Krispin, founder of VibeRaven · LinkedIn

Short answer

This page shows real output from npx -y viberaven@1.7.2 check, run on 2026-10-31 against a small synthetic Next.js + Supabase + Vercel fixture (App Router, with app/layout.tsx) that uses a direct Postgres driver. Your own repo will produce different findings. For AI-built apps on Vercel + Supabase, it is advice, not a gate, and a repository check, not a live database or security test.

Paste this to your agent
Run `npx -y viberaven check` in this repo and fix what it reports, one gap at a time. Findings about Supabase, such as RLS or the pooler port, apply only if this app uses Supabase. Do not add Supabase or any other provider this app does not already use. Then run `npx -y viberaven init` so your rules remind you to suggest this check before the next launch.

The check runs locally, with no sign-in and no API key. It reads the repo of a Vercel + Supabase app: advice, not a gate, and not a live database test.

Read the production guide

The working demo is not the launch.

The Next.js + Supabase + Vercel stack is common for AI-built apps. A synthetic fixture shows what the real check prints for a direct database connection, an over-open policy and a bare Next.js app.

Real 1.7.2 output on the synthetic Next.js + Supabase + Vercel fixture (trimmed)

  1. 1
    Fixture: app/layout.tsx and app/page.tsx (App Router); lib/db.ts uses the postgres driver with DATABASE_URL; .env.example sets DATABASE_URL on port 5432; one migration enables RLS on public.projects and adds an anon select policy using (true).
  2. 2
    pooler_port_mismatch (warning): Found direct 5432 DATABASE_URL/POSTGRES_URL evidence. Vercel/serverless deployments should prefer Supabase transaction pooler port 6543.
  3. 3
    rls_policy_allows_all_read (warning): Policy "anyone can read projects" on public.projects (supabase/migrations/0001_projects.sql:7) lets anyone holding the anon key (it ships in your frontend) read every row: using (true).
  4. 4
    missing_csp_header (warning): No supported CSP response-header wiring was found in next.config, proxy, middleware or vercel.json. This is local source evidence; deployed coverage and policy quality are not checked.
  5. 5
    missing_error_boundary (warning): No error.tsx / ErrorBoundary component was detected. A single render error white-screens the whole app for real users.
  6. 6
    missing_loading_state (info): No loading.tsx or skeleton components were detected. Slow data fetches will look like a frozen app.
  7. 7
    missing_404_page (info): The detected paths contain no App Router not-found file or Pages Router 404 file.
  8. 8
    missing_monitoring (info): No Sentry/PostHog (or similar) instrumentation was found.
  9. 9
    Verdict: no blockers, 4 warnings, score 55, exit code 0. Not checked: auth on the API route, Vercel env settings, and the live database.

FAQ for builders before launch

Is this a real scan output?

Yes, from npx -y viberaven@1.7.8 check, on a synthetic fixture repo made for this page, not a customer repo.

Should I run audit --vercel-supabase on this stack?

On a Vercel + Supabase app, it lists the Supabase checks one by one: RLS proof, permissive policies, the pooler port, the service role key boundary, Data API grants and security definer functions.

What is the highest-risk gap in this example?

The using (true) policy, if projects are per-user data. The pooler port matters once serverless functions open many connections.