Skip to content
StarDev
All work
Featured2025Full-Stack Developer

CAS-Legal

AI that reads legal complaints and drafts structured reports

The problem

Legal professionals drown in complaint documents. Analysis is slow, inconsistent, and every junior reviewer produces a different reading of the same file.

What we built

A FastAPI backend with SQLAlchemy ORM and an OpenAI pipeline that analyzes legal complaints and generates structured, citation-aware reports as PDFs (fpdf2). The React 18 SPA frontend is built with TypeScript, Vite, Tailwind CSS and TanStack React Query, with a Pytest suite covering both the API and the AI pipeline.

The outcome

First-pass analysis that used to take hours now takes minutes, and output is consistent: every report follows the same structure with traceable citations a lawyer can verify.

Stack

FastAPISQLAlchemyOpenAIReact 18TypeScriptTailwind CSSfpdf2Pytest