DEV Community

How I built a LegalTech SaaS with Next.js 14, 5 AI providers and e-signatures

I built ContractAI — a platform for generating, analyzing and signing legal contracts with AI. Here's what I learned.

The hardest parts:

Abstracting 5 AI providers — had to build a unified interface so OpenAI, Claude, Gemini, Groq and Grok all work the same way

E-signature system — canvas drawing, IP logging, audit trail, email delivery with signed PDF

Bulk generation — CSV upload → 50 contracts generated simultaneously with rate limiting

Stack: Next.js 14 App Router · TypeScript · PostgreSQL · Prisma · NextAuth v5 · Stripe · TipTap · Tailwind

Live demo: https://ai-contract-builder-gilt.vercel.app

Top comments (0)