How xerav-dev/clausewatch works
ClauseWatch is an AI-assisted contract review web app. A user uploads a PDF or submits demo text; the page sends it to an analysis route, which extracts PDF text when needed and asks Gemini for structured clause risks and an overall decision. The page then presents processing status and a review dashboard with clause details and decision information. The README is only the default Next.js starter guide, so it documents no additional product capabilities. Some route and page excerpts are partial; edges below are limited to relationships visible in the excerpts.
Main entry points: page.tsx Analysis workflow · route.ts Analysis API
Components 10
User experience
- Upload and demo
app/page.tsx - Analysis workflow
app/page.tsx - Processing view
app/page.tsx - Review dashboard
app/page.tsx - Decision summary
app/page.tsx - Clause review
app/page.tsx
Contract analysis
- Analysis API
app/api/analyze/route.ts - PDF text extraction
app/api/analyze/route.ts - Gemini model
Other components
- Contract reviewer
Connections 9
- Contract reviewer → Upload and demo: submits contract
app/page.tsx - Upload and demo → Analysis workflow: passes input
app/page.tsx - Analysis workflow → Analysis API: POSTs input
app/page.tsx - Analysis API → PDF text extraction: extracts PDF text
app/api/analyze/route.ts - Analysis API → Gemini model: requests analysis
app/api/analyze/route.ts - Analysis workflow → Processing view: shows status
app/page.tsx - Analysis workflow → Review dashboard: routes after analysis
app/page.tsx - Review dashboard → Decision summary: shows decision
app/page.tsx - Review dashboard → Clause review: shows clauses
app/page.tsx