How adeebazaidi/spendwise-ai works
Spendwise AI is a self-service AI-tooling spend audit: a startup team enters its size, use case, tools, plans, seats, and spend; the app calculates deterministic savings recommendations and presents a shareable report with an optional executive summary and lead capture. The main calculation, persistence fallback, report loading, and lead-capture calls are visible in excerpts. Other capabilities, such as the documented AI-summary fallback, are represented from the README; unsampled implementation details are not inferred.
Main entry points: audit-form.tsx Audit form · report-dashboard.tsx Report dashboard · page.tsx Landing page · audit-engine.ts Savings engine
Components 15
Product entry
- Landing page
src/app/page.tsx - Audit route
src/app/audit/page.tsx - Site layout
src/app/layout.tsx
Audit workflow
- Audit form
src/components/audit/audit-form.tsx - Pricing data
src/lib/pricing.ts - Savings engine
src/lib/audit-engine.ts
Reports and persistence
- Results route
src/app/report/results/page.tsx - Report dashboard
src/components/audit/report-dashboard.tsx - Summary action
src/app/actions.ts - Report and lead access
src/lib/supabase.ts
Shared interface
- Header and footer
src/components/layout - UI components
src/components/ui
Other components
- Startup team
- Supabase database
- Anthropic API
Connections 19
- Startup team → Landing page: visits
src/app/page.tsx - Landing page → Audit route: links to audit
src/app/page.tsx - Startup team → Audit form: enters spend
README.md - Audit route → Audit form: renders
src/app/audit/page.tsx - Audit form → Pricing data: uses options
src/components/audit/audit-form.tsx - Audit form → Savings engine: runs audit
src/components/audit/audit-form.tsx - Savings engine → Pricing data: reads pricing
src/lib/audit-engine.ts - Audit form → Report and lead access: saves report
src/components/audit/audit-form.tsx - Audit form → Results route: routes with report
src/components/audit/audit-form.tsx - Results route → Report dashboard: renders
src/app/report/results/page.tsx - Report dashboard → Report and lead access: loads report and captures lead
src/components/audit/report-dashboard.tsx - Report dashboard → Savings engine: runs audit
src/components/audit/report-dashboard.tsx - Report dashboard → Summary action: requests summary
src/components/audit/report-dashboard.tsx - Report and lead access → Supabase database: reads and writes
src/lib/supabase.ts - Summary action → Anthropic API: requests summary
README.md - Site layout → Header and footer: renders
src/app/layout.tsx - Landing page → UI components: uses button
src/app/page.tsx - Audit form → UI components: uses form controls
src/components/audit/audit-form.tsx - Report dashboard → UI components: uses report controls
src/components/audit/report-dashboard.tsx