Skip to content

About

Client-side and hybrid AI scanner for contract review, lease risk analysis, and NDA clause auditing with privacy-first zero-data-retention architecture.

Topics

Resources

Code of conduct

Contributing

Security policy

Accessibility

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

7 Commits

Folders and files

πŸ“œ FinePrint AI

In-Memory Contract, Lease & NDA Scanner & Redline Generator

GitHub Release CLI Tool Python SDK NPM Package [Sponsor on Dodo Payments License](./LICENSE) Zero VPS Cost

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


⚑ The Problem: The Fine Print Trap

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.


πŸ›οΈ Architecture

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
Loading

🎯 60+ Legal Risk Categories

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.

πŸš€ Quickstart

1. CLI Quickstart

Download the pre-compiled binary from Latest Releases or install via npm:

npm install -g @ritualdev-lab/fineprint

Run an automated audit on any contract or lease:

fineprint review ./examples/sample_vendor_agreement.md --output redline.md

Export an executive scorecard:

fineprint score ./examples/sample_vendor_agreement.md --json

2. Python SDK Quickstart (pip install fineprint)

Ideal 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.


3. Node.js / TypeScript SDK

npm install @ritualdev-lab/fineprint
import { 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.`);

🏒 Enterprise Features ($50K–$250K ACV Capabilities)

  • πŸ“œ 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.

πŸ“Š Performance Benchmarks

  • Analysis Latency: $&lt; 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+.


🏒 Enterprise Commercial Edition & FinePrintAI-Core

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

⚑ 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.


πŸ’– Community Support & Alternative Sponsorship

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 Portal GitHub Sponsors


🎁 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).

🀝 Community & Support

  • 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.

Copyright Β© 2026 RitualDev Studio. Proprietary Commercial Software. All Rights Reserved.

πŸ›‘οΈ Community & Governance

About

Client-side and hybrid AI scanner for contract review, lease risk analysis, and NDA clause auditing with privacy-first zero-data-retention architecture.

Topics

Resources

Code of conduct

Contributing

Security policy

Accessibility

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors