Lucent is a free, no-login AI spend audit platform for startup founders, CTOs, and engineering managers. Users enter their AI tool stack, run a two-minute audit, and receive a shareable report with deterministic savings recommendations plus an AI-written summary.
- Single repo Next.js architecture: Kept the frontend,API routes and deployment in one project.
- Rule-based audit logic: Cost recommendations are purely mathematical without AI generated Output to prevent Hallucinations and misappropriate results.
- AI only for summary copy: For Demo usage using Gemini Free API improve readability,while core savings math stays outside the LLM.
- Post-value lead capture: Users sees the result before inputing the email to capture the main focal and MVP of the website.
- PII-safe public reports: shared report only share the saving and recommendation and not the email/personal information.
- Instant AI spend audit: captures tools, plans, seats, spend, team size, and primary use case.
- Deterministic audit engine: savings math is rule-based and testable, not LLM-generated.
- AI summary: Gemini writes a concise personalized summary on top of computed audit results.
- Lead capture after value: email is requested only after the user sees the report.
- Shareable public report:
/r/[publicId]strips identifying details and keeps the output safe to share. - Confidence and priority signals: recommendations include confidence labels and a top-action queue.
npm installCreate .env from .env.example and add the required keys:
cp .env.example .envRequired for the full app flow:
NEXT_PUBLIC_APP_URLNEXT_PUBLIC_SUPABASE_URLNEXT_PUBLIC_SUPABASE_ANON_KEYSUPABASE_SERVICE_ROLE_KEYGEMINI_API_KEYGEMINI_MODELRESEND_API_KEYRESEND_FROM_EMAIL
npm run devOpen http://localhost:3000.
npm run lint
npm run test
npm run build- Import the GitHub repository into Vercel.
- Add all environment variables from
.env.example. - Apply the Supabase SQL migration in
supabase/migrations. - Verify the flow:
/->/audit/[id]->/r/[publicId].
| Layer | Technology |
|---|---|
| Framework | Next.js App Router |
| Language | TypeScript |
| Styling | Tailwind CSS |
| Database | Supabase Postgres |
| AI Provider | Google Gemini API |
| Resend | |
| Hosting | Vercel |
| Validation | Zod |
| Testing | Vitest |
graph TD
A[User enters AI stack] --> B[POST /api/audit]
B --> C[Rule-based audit engine]
C --> D[Persist audit in Supabase]
D --> E[Private results page]
E --> F[Gemini summary]
E --> G[Lead capture]
E --> H[Public report link]
| Command | Description |
|---|---|
npm run dev |
Start local development server |
npm run build |
Build production app |
npm run start |
Start production server |
npm run lint |
Run ESLint |
npm run test |
Run Vitest |


