
Context
Indonesian contracts can contain dense legal language that is difficult to evaluate quickly before a person signs or negotiates.
Problem
Give users a fast way to surface potentially problematic clauses, understand the practical risk in ordinary language, and identify useful next steps without presenting the product as a substitute for professional legal advice.
Constraints
The product supports PDF, DOCX, and pasted text in Indonesian. Its public interface explicitly positions the result as legal education and must keep risk explanations understandable rather than burying them in technical language.
Architecture
The repository uses Next.js and React with TypeScript, Tailwind CSS, Shadcn UI, Prisma with libSQL, NextAuth.js, and an AI SDK for the analysis workflow.
Decisions
The interface leads with three concrete outputs: detected risk, a plain-language explanation, and an actionable suggestion. Format support is visible before upload so users understand what the analysis accepts.
Outcome
KontrakPaham is deployed as a live web application with an Indonesian contract upload and analysis flow.
Learnings
The current product direction keeps legal context, understandable explanation, and explicit limitations visible alongside AI-assisted analysis.