A free AI spend audit tool that helps founders and engineering managers identify waste across AI tooling subscriptions. Users input their plans and spend, get a savings breakdown, and can capture a shareable report with an optional Credex consultation prompt for large savings.
Live URL: TODO (deploy to Vercel)
- Screenshot 1: TODO
- Screenshot 2: TODO
- Screenshot 3: TODO
- (Optional) 30-second demo video: TODO
npm installCreate a .env file with:
NEXT_PUBLIC_BASE_URL="http://localhost:3000"
GEMINI_API_KEY="your_gemini_api_key"
RESEND_API_KEY="your_resend_api_key"
Note:
DATABASE_URLis no longer required. This app is fully stateless — no database setup needed.
npm run devnpx vitest run- User fills out the form with their AI tools, plans, seats, and monthly spend.
POST /api/auditruns the deterministic audit engine and returns a result with a stateless Base64 ID.- The UI renders the audit and calls
POST /api/summaryfor the AI-generated 100-word summary (Gemini 1.5 Flash). - The "Share audit" button generates a URL like
/audit/<base64_id>— the ID itself encodes all audit data, so the link works permanently without a database. - Optionally, the user enters their email and
POST /api/leadscaptures the lead and sends a confirmation via Resend.
- Stateless Base64 over Prisma/SQLite — eliminates DB cold-starts on Vercel; shareable URLs never expire.
- Deterministic audit logic (not LLM-based) — keeps recommendations defensible and finance-friendly.
- Email capture after results — aligns with the "value-first" requirement and reduces drop-off.
- AI summary as a separate endpoint — keeps the core audit instant and resilient to LLM failures.
- Gemini 1.5 Flash over Pro — 3x faster with equivalent quality for 100-word summaries.
- Push this repo to GitHub.
- Go to https://vercel.com/new and import the repo.
- Add environment variables:
NEXT_PUBLIC_BASE_URL= your deployed URL (e.g.https://your-app.vercel.app)GEMINI_API_KEY= your Gemini API keyRESEND_API_KEY= your Resend API key (optional — lead capture still works without it)
- Deploy. No database setup required.
This repo includes the required Credex deliverables at the root:
ARCHITECTURE.md— system diagram and data flowDEVLOG.md— daily work logREFLECTION.md— technical reflection and self-assessmentPROMPTS.md— AI prompt used for summariesPRICING_DATA.md— pricing sources and verification datesECONOMICS.md— unit economics and $1M ARR mathGTM.md— go-to-market strategyMETRICS.md— north star metric and instrumentation planUSER_INTERVIEWS.md— user interview insightsTESTS.md— test coverage and manual QA checklist