AI contract analysis for freelancers: upload a contract PDF and get a risk score, the clauses worth worrying about, and fairer wording to ask for. The free API sleeps when idle, so the first request after a quiet period can take up to two minutes.
- Risk analysis: a 0 to 100 score and every flagged clause across eight categories (payment, liability, indemnification, IP, termination, non-compete, confidentiality, jurisdiction), each with an explanation and suggested revision. Failed analyses can be retried without re-uploading.
- Compare to standard: the closest clauses from a 104-clause library, marked favorable or unfavorable.
- Compare versions: a sentence and word diff of a revised contract, with the change in risk.
- PDF report of any analysis, and an account page with your history.
- Password reset by email: single-use links that expire in 30 minutes; a reset signs out every existing session.
- Private by design: PDFs are never stored, only their extracted text, and every record is visible only to its owner.
Angular 22 with Tailwind CSS v4 · Spring Boot 4.1 on Java 21 · Spring Security with JWT · MySQL with Flyway · Groq gpt-oss-120b through Spring AI · Apache PDFBox · JUnit, Testcontainers, Vitest, Playwright · GitHub Actions · Vercel, Render, and TiDB Cloud
flowchart LR
UI["Angular SPA<br/>(Vercel)"] -- "/api, proxied" --> C
subgraph API["Spring Boot API (Render)"]
C["Controllers"] --> S["Services"]
S --> R["Repositories"]
end
R --> DB[("TiDB Cloud<br/>MySQL compatible")]
S --> G["Groq<br/>gpt-oss-120b"]
- Layered API: controllers only handle HTTP and DTOs, services hold the business rules, and Spring Data repositories scope every query to the signed-in user (another user's record is a 404).
- Background analysis: an upload extracts the text in memory, returns
202 Accepted, and analyzes it asynchronously (UPLOADED → ANALYZING → ANALYZED / FAILED). - No vector database: clause similarity uses a word-based embedder and cosine similarity in Java, which fits the free tier's 512 MB.
- Each decision and its trade-offs are recorded in
course/docs/adr/.
Requires JDK 21+, Docker, and Node.js LTS.
docker compose up -d # MySQL 8.4 on localhost:3307
cd backend && ./mvnw spring-boot:run # API on :8080, no env vars needed
cd frontend && npm install && npm start # web app on http://localhost:4200Locally, analysis uses a fake analyzer with fixed findings, so no API key is needed. Sample contracts are in backend/src/test/resources/contracts/.
cd backend && ./mvnw verify # backend tests against MySQL, coverage floor
cd frontend && npx ng test --watch=false # frontend unit tests
cd frontend && npm run e2e # Playwright journeys (needs the API running)The browser only talks to Vercel, which proxies /api to the API on Render, so there is no CORS. Render deploys main after CI passes, and Flyway applies new migrations on startup. Secrets live in the Render dashboard; .env.example lists every variable.
| GitHub | Built | |
|---|---|---|
| Kymani Jarrett | @kymanirjarrett | Architecture, backend, frontend, AI integration, CI/CD, deployment |
| Ashton Cashier | @Ashton525 | Contract delete and analysis retry |
| Rival Young | @RivalJ | Analysis and findings schema |
| Venkat Yuva Raaj Narra | @Venkat-YuvaRaaj | Planning and design |
Code reviewers, who reviewed the code and contributed fixes: @agyemajl, @ely-bush, @poudelsv, @willisgr, @winnieduong.
Clausify assists with contract review. It is not legal advice and does not replace a licensed attorney.