How 5423456-dotcom/contrct_analyser works
ContractAI is a student-focused contract-analysis web application. A student uploads a PDF or pastes contract text (or selects a demo); the backend extracts text with page references, analyzes student-relevant clauses, and presents obligations and plain-English findings. Students can revisit saved analyses and download formatted PDF reports. The README documents these capabilities and a proposed file layout, but the supplied file tree contains only the README and launcher scripts, with no source excerpts; component paths and relationships below therefore reflect README documentation, not inspected implementation.
Components 18
Student interface
- Upload and analysis
- Upload controls
- Results dashboard
- Obligations view
- Clause comparisons
- Analysis history
- API client
Backend API
- Contract endpoints
- Analysis endpoints
- Report endpoint
Contract analysis
- PDF extraction
- Clause analysis
Identity and history
- Analysis storage
- Authentication
- Password and tokens
Reports
- PDF generation
Other components
- Student
- Gemini API
Connections 19
- Student → Upload and analysis: submits contract
README.md - Upload and analysis → Upload controls: offers upload
README.md - Upload and analysis → API client: requests analysis
- API client → Contract endpoints: uploads contract
README.md - Contract endpoints → PDF extraction: extracts PDF text
README.md - Contract endpoints → Analysis endpoints: provides contract
- Analysis endpoints → Clause analysis: triggers analysis
README.md - Clause analysis → Gemini API: uses when configured
README.md - Analysis endpoints → Analysis storage: stores findings
README.md - API client → Results dashboard: loads results
- Results dashboard → Obligations view: shows obligations
README.md - Results dashboard → Clause comparisons: shows comparisons
README.md - Student → Analysis history: reopens analyses
README.md - Analysis history → API client: requests history
- API client → Analysis endpoints: gets history
README.md - Student → Report endpoint: downloads report
README.md - Report endpoint → PDF generation: generates PDF
README.md - Student → Authentication: registers or logs in
README.md - Authentication → Password and tokens: hashes and issues tokens
README.md