03
Contract Automation
Template-based generation system for legal demands, contracts, and internal workflows. Dynamic content insertion, metadata extraction, case tracking, cost analysis, document lifecycle.
What I built
- Template engine that compiles .docx with named placeholders into final documents with full styling preserved.
- Case-tracking layer linking each generated document to its matter, version, and signer state.
- Cost-per-document analytics so the firm sees where time and money go per case type.
- MIFIEL-backed e-signature flow with audit trail.
What I learned
- Word's XML model is hostile but predictable. Once mapped, you can do anything programmatically.
- Versioning legal docs is a product problem, not a git problem. Lawyers think in named revisions, not commits.
- If you treat document gen as a build system, caching and idempotency come for free.
Stack
Next.jsTypeScriptTailwindPostgresPrismadocxtemplaterMIFIEL