FinePrint AI is an in-memory legal contract auditor and redline synthesizer. Run with --offline for 100% local zero-network execution using an in-memory PDF AST parser and 60+ deterministic legal risk rules, or opt into Google Gemini 1.5 Flash cloud API inference (by explicitly supplying GEMINI_API_KEY) to synthesize deep contextual redlines for MSAs, NDAs, commercial leases, and SaaS terms.
Download Release β’ CLI Quickstart β’ Python SDK β’ Architecture β’ Risk Categories β’ Enterprise Features β’ Examples
Reviewing commercial contracts is slow, error-prone, and expensive ($500β$1,200/hr for outside counsel):
- Uncapped Indemnification: Hidden clauses forcing vendors or customers to bear unlimited financial liability for third-party IP claims.
- Asymmetric Liability Caps: One-sided limitations where the vendor's liability is capped at $100 while the customer remains fully exposed.
- Auto-Renewal Traps: Multi-year automatic renewals requiring 90- to 120-day advance cancellation notice.
- Unfavorable Offshore Jurisdictions: Mandatory arbitration clauses buried in remote or offshore court systems.
- Privacy & Client Confidentiality: Uploading non-public corporate contracts or NDAs to generic cloud AI services violates confidentiality terms.
FinePrint AI performs all text extraction and AST clause chunking locally in-memory, ensuring your private legal agreements are never leaked or stored.
FinePrint operates on an air-gapped, zero-knowledge in-memory architecture:
flowchart TD
subgraph Inputs["Document Input Layer"]
PDF["PDF Agreement (In-Memory Buffer)"]
DOCX["Word Document (.docx)"]
Markdown["Markdown / Plaintext Contract"]
end
subgraph CoreEngine["In-Memory Legal Review Engine (< 1.2s)"]
ASTParser["In-Memory PDF AST & Layout Parser\n(Preserves Clause Hierarchy & Section Numbers)"]
ClauseChunker["Semantic Legal Clause Segmenter"]
RuleEngine["60+ Heuristic Risk Signatures Engine\n(Indemnities, Liability Caps, IP, Jurisdictions)"]
AIScorer["Gemini 1.5 Flash Legal Reasoning & Redline Generator"]
GradeCalc["Deterministic Risk Grade Calculator (A through F)"]
end
subgraph Exporters["Attorney Redline Output Layer"]
ScoreReport["Executive Summary & Category Scorecard (A-F)"]
MarkdownDiff["Markdown Side-by-Side Diff Redline"]
DOCXTrack["DOCX Track Changes Redline"]
WebhookAlert["Approval / Signing Gate Lock Event"]
end
subgraph ZeroCostEdge["Serverless Edge (api.fineprint.io)"]
CFWorkers["Cloudflare Workers (DocuSign / GitHub PR Webhook Interceptor)"]
end
Inputs --> ASTParser
ASTParser --> ClauseChunker
ClauseChunker --> RuleEngine & AIScorer
RuleEngine & AIScorer --> GradeCalc
GradeCalc --> ScoreReport & MarkdownDiff & DOCXTrack
CFWorkers -.->|Automated Webhook Contract Auditing| WebhookAlert
| Risk Category | What FinePrint AI Detects & Flags | Recommended Remediation |
|---|---|---|
| Indemnification | Uncapped customer/vendor indemnity, IP infringement warranties, indemnifying gross negligence. | Mutual caps tied to 12-month fees, standard carve-outs for client fault. |
| Liability Caps | Asymmetric caps ($0β$100 vendor cap vs unlimited customer cap), waiver of consequential damages without reciprocity. | Mutual aggregate liability cap capped at 12β24 months of total contract value. |
| IP Assignment | Overbroad work-for-hire claims, assignment of pre-existing background IP, assignment of moral rights. | Retention of background IP; license granted strictly for agreement scope. |
| Termination & Renewal | Sneak evergreen auto-renewal clauses requiring >60 days written notice, termination without cause penalties. | Standard 30-day non-renewal notice, prorated refunds upon breach. |
| Non-Compete & Solicitation | Unreasonable duration (>1 year), worldwide geographic restrictions, restrictions on general job postings. | Limited non-solicitation of direct project personnel; striking non-compete. |
| Governing Law & Disputes | Offshore jurisdictions (Cayman, Delaware exclusivity for foreign entities), waiver of jury trial, unilateral arbitration fees. | Neutral state governing law (NY/CA/UK) with mutual venue and prevailing party fee recovery. |
Download the pre-compiled binary from Latest Releases or install via npm:
npm install -g @ritualdev-lab/fineprintRun an automated audit on any contract or lease:
fineprint review ./examples/sample_vendor_agreement.md --output redline.mdExport an executive scorecard:
fineprint score ./examples/sample_vendor_agreement.md --jsonIdeal for legal tech engineering, DocuSign webhooks, and contract data pipelines:
from fineprint import ContractScanner
scanner = ContractScanner()
report = scanner.analyze_text("""
Vendor shall indemnify Client against all claims without cap or limitation.
Vendor's total aggregate liability shall not exceed $100.
""")
print(f"Risk Grade: {report['grade']}") # e.g. Grade F (Unacceptable)
for issue in report['violations']:
print(f"β οΈ {issue['category']}: {issue['explanation']}")
print(f" Proposed Amendment: {issue['recommended_clause']}")See examples/audit_contract.py for a complete runnable Python walkthrough.
npm install @ritualdev-lab/fineprintimport { ContractAnalyzer } from '@ritualdev-lab/fineprint';
const analyzer = new ContractAnalyzer();
const audit = await analyzer.auditFile('./vendor-agreement.pdf');
console.log(`Risk Score: ${audit.overallScore}/100 (Grade: ${audit.grade})`);
console.log(`Flagged ${audit.redlines.length} high-risk provisions.`);- π Corporate Legal Playbook Customizer: Upload company-specific fallback terms and non-negotiables (e.g. Acme Corp mandates New York governing law, $5M cyber insurance, and strikes all customer indemnities). FinePrint scores incoming vendor contracts against your unique corporate playbook.
- ποΈ Bulk Contract Repository Auditing (Legacy Contract Scanner): Batch scan thousands of legacy NDAs, MSAs, and commercial leases stored across Google Drive, Dropbox, or AWS S3 to uncover latent liabilities, expiring renewal dates, and uncapped indemnifications in bulk.
- βοΈ e-Signature Interceptor & Approval Workflows (DocuSign / PandaDoc Webhooks): Intercepts contracts before execution: if a contract receives an 'F' (Unacceptable) rating, the workflow automatically locks signature execution and routes the redline proposal to senior legal counsel for sign-off.
-
Analysis Latency:
$< 1.2\text{ seconds}$ on 40-page commercial PDF agreements. - Privacy: 100% in-memory processing; zero persistent document storage.
- Infrastructure Cost: $0.00 / month ($0 VPS, $0 server maintenance).
- Test Verification: 50 / 50 passing tests across Node.js, AST parsers, and Python 3.8+.
| Feature | Community Scanner ($0 Free) | FinePrintAI-Core Corporate ($79/mo) |
|---|---|---|
| PDF Agreement Scanning | β 40-page PDFs (<1.2s) | β Unlimited Contract Analysis |
| Heuristic Risk Detection | β Standard 60+ Rules | β 180+ Enterprise Corporate Playbook Rules |
| EU AI Act & DPDP Conformity | β None | β Automated EU AI Act Risk Tiering & DPDP Checklist |
| Automated Contract Redlines | β Standard Report | β Tracked DOCX / Markdown Counter-Draft Generation |
| e-Signature Interceptor | β Manual | β Live DocuSign, PandaDoc, and Adobe Sign Webhooks |
| Bulk Legacy Scanning | β Single File | β AWS S3 & Google Drive Mass Contract Auditor |
| Collaborator Git Access | β Public Repo | β
Instant GitHub Invite to RitualDev-Lab/FinePrintAI-Core
|
β‘ Subscribe to FinePrintAI-Core ($79/mo) & Unlock Private Repo Access Instantly
π Automated GitHub Fulfillment: Enter your GitHub username during checkout. Our webhook immediately dispatches a collaborator invite to FinePrintAI-Core.
FinePrint AI is engineered by RitualDev Lab. Your sponsorship directly finances our in-memory PDF AST parsing engine, zero-gotcha legal heuristic models, and privacy compliance test suites.
π Interactive Donation Form (USD & INR UPI) Β β’Β β€οΈ GitHub Sponsors
π Powered by Dodo Payments (Merchant of Record) with instant tax invoice and global payment methods (Cards, UPI, Apple Pay).
- Feature Requests & Bug Reports: Open an issue in our Public Issue Tracker.
- Enterprise Licensing: Contact
[email protected]for corporate playbook customization, DocuSign interceptors, and bulk legacy audits. - Core Development: Developed and maintained by RitualDev Studio.