ContractLens gives founders, freelancers, and operators a plain-English contract review cockpit — clause risk scanning, obligation extraction, negotiation-move suggestions, and lawyer-handoff summaries — so a signature never becomes a surprise.
ContractLens takes pasted contract text (payment, termination, IP, liability, exclusivity, auto-renewal clauses) and returns a review-confidence score with a risk breakdown across payment terms, IP ownership, termination, and liability caps. It classifies clause risk, extracts obligations into owner/date/action form, suggests safer negotiation language, and prepares a clean summary for a lawyer handoff. Paid checkout is wired through Stripe for the professional tier.
Built on Next.js (App Router, latest) with React 19 and TypeScript, styled with Tailwind CSS v4. The client (app/components/ContractForm.tsx) posts contract text to /api/scan, which calls Groq against a strict typed schema (ContractAnalysis: risk flags, missing terms, score) and falls back to a fixed demo analysis when no API key is set. checkout and stripe/webhook handle subscription billing via Stripe; Supabase (@supabase/supabase-js) provides auth and persistence; Framer Motion drives interface animation.
The real problem: contract risk isn't binary — a missing liability cap and a missing typo-fix are both "issues," but only one should stop you from signing, so a flat list of flags is worse than useless if it doesn't rank them.
The approach: /api/scan prompts Groq against a typed schema that forces the model to separate RiskFlags from MissingTerms and assign each its own severity, rather than returning one undifferentiated wall of concerns.
One real number: the demo fallback (no GROQ_API_KEY) ships a fully worked contract analysis with real risk flags and missing-term entries, not a placeholder — the product is honestly demoable without a key.
Not handled yet: app/api/intelligence is a separate, disconnected decorative endpoint — it is not what the form actually calls, despite being described that way in earlier documentation for this repo.
https://contractlens-rho.vercel.app
| Layer | Technology |
|---|---|
| Framework | Next.js (App Router) |
| UI | React 19, TypeScript, Tailwind CSS v4 |
| Backend / Auth | Supabase |
| Billing | Stripe |
| Motion | Framer Motion |
| Deployment | Vercel |