npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@open-agreements/open-agreements

v0.7.7

Published

Open-source legal template filling CLI and library

Readme

OpenAgreements

npm version npm downloads License: MIT CI codecov Socket Badge GitHub stargazers Agent Skill MCP Server Status install size

English | Español | 简体中文 | Português (Brasil) | Deutsch

Fill standard legal agreement templates and get signable DOCX files. OpenAgreements includes 40+ templates across NDAs, cloud service agreements, employment docs, contractor agreements, SAFEs, and NVCA financing documents.

Works with Claude Code, Gemini CLI, Cursor, and local MCP or CLI workflows.

Who this is for

OpenAgreements starts with standard forms teams already recognize: Common Paper, Bonterms, NVCA model documents, and YC SAFE templates. It is for small-business legal teams, founders, and the agents helping them who need repeatable agreement filling with source, license, and validation context kept close to the document.

Contents

Demo: Claude fills a Common Paper Mutual NDA in under 2 minutes. Sped up for brevity.

How It Works

%%{init: {"flowchart": {"htmlLabels": true, "curve": "basis", "nodeSpacing": 30, "rankSpacing": 50}, "themeVariables": {"fontSize": "14px"}} }%%
flowchart LR
    InputLeft["<b>Catalog + values</b><br/>Common Paper · Bonterms ·<br/>NVCA · YC SAFE<br/><br/>party info · dates · terms"]

    subgraph Server["open-agreements — local MCP server"]
        direction LR

        subgraph Discover["<b>1. Discover</b>"]
            direction TB
            DiscTool["<code>list_templates(cursor, limit)</code><br/><code>get_template(template_id)</code>"]
        end

        subgraph Fill["<b>2. Fill</b>"]
            direction TB
            FillTool["<code>fill_template(<br/>&nbsp;&nbsp;template, values,<br/>&nbsp;&nbsp;output_path, return_mode)</code>"]
        end

        subgraph Sign["<b>3. Sign</b>"]
            direction TB
            SignTool["<code>send_for_signature(<br/>&nbsp;&nbsp;file_path, signers,<br/>&nbsp;&nbsp;document_name, api_key)</code>"]
        end

        subgraph Track["<b>4. Track</b>"]
            direction TB
            TrackTool["<code>check_signature_status(<br/>&nbsp;&nbsp;envelope_id, api_key)</code>"]
        end

        Discover --> Fill
        Fill --> Sign
        Sign -->|envelope_id| Track
    end

    OutputRight["<b>Signable .docx</b><br/>then <b>signed .pdf</b><br/>on envelope completion"]

    DocuSign["<b>DocuSign</b><br/>draft · review · signers · artifact"]

    subgraph Client [" "]
        direction TB
        Prompt["<b>Prompt</b><br/>'Send a Mutual NDA to [email protected]'"]
        Agent["<b>Coding agent / MCP client</b><br/>Claude Code · Cursor · Gemini CLI"]
        Prompt --> Agent
    end

    InputLeft --> Discover
    Track --> OutputRight
    SignTool <--> DocuSign
    TrackTool <--> DocuSign
    Agent <-->|tool call / tool result| Server

    classDef io fill:#f5f5f5,stroke:#888,color:#222
    classDef server fill:#eff6ff,stroke:#3b82f6,color:#1e3a8a
    classDef stage fill:#eef2ff,stroke:#6366f1,color:#1e1b4b
    classDef tools fill:#ecfdf5,stroke:#10b981,color:#064e3b
    classDef ext fill:#ddd6fe,stroke:#7c3aed,color:#3b0764
    classDef hidden fill:none,stroke:none
    class InputLeft,OutputRight io
    class Server server
    class Discover,Fill,Sign,Track stage
    class DiscTool,FillTool,SignTool,TrackTool tools
    class Prompt,Agent,DocuSign ext
    class Client hidden

Local stdio MCP shown. The hosted HTTP server at openagreements.org/api/mcp exposes the same workflow plus a search_templates tool, with JWT-based auth replacing the one-time connect_signing_provider step.

Available Templates

The Source column links to the upstream standard, source document, or canonical project page (varies by publisher). The License column shows redistribution terms. Repo links point to the GitHub content directory for each template or recipe.

Confidentiality

| Template | Website | Source | License | Repo | |----------|---------|--------|---------|------| | Bonterms Mutual NDA | Website | Bonterms | CC0-1.0 | Repo | | Common Paper Mutual NDA | Website | Common Paper | CC-BY-4.0 | Repo | | One Way NDA | Website | Common Paper | CC-BY-4.0 | Repo |

Sales & Licensing

| Template | Website | Source | License | Repo | |----------|---------|--------|---------|------| | Cloud Service Agreement | Website | Common Paper | CC-BY-4.0 | Repo | | CSA Click Through | Website | Common Paper | CC-BY-4.0 | Repo | | CSA With AI | Website | Common Paper | CC-BY-4.0 | Repo | | CSA With SLA | Website | Common Paper | CC-BY-4.0 | Repo | | CSA Without SLA | Website | Common Paper | CC-BY-4.0 | Repo | | Order Form | Website | Common Paper | CC-BY-4.0 | Repo | | Order Form With SLA | Website | Common Paper | CC-BY-4.0 | Repo | | Software License Agreement | Website | Common Paper | CC-BY-4.0 | Repo |

Data & Compliance

| Template | Website | Source | License | Repo | |----------|---------|--------|---------|------| | AI Addendum | Website | Common Paper | CC-BY-4.0 | Repo | | AI Addendum In App | Website | Common Paper | CC-BY-4.0 | Repo | | Business Associate Agreement | Website | Common Paper | CC-BY-4.0 | Repo | | Data Processing Agreement | Website | Common Paper | CC-BY-4.0 | Repo |

Professional Services

| Template | Website | Source | License | Repo | |----------|---------|--------|---------|------| | Bonterms Professional Services Agreement | Website | Bonterms | CC0-1.0 | Repo | | Independent Contractor Agreement | Website | Common Paper | CC-BY-4.0 | Repo | | Common Paper Professional Services Agreement | Website | Common Paper | CC-BY-4.0 | Repo | | Statement Of Work | Website | Common Paper | CC-BY-4.0 | Repo |

Deals & Partnerships

| Template | Website | Source | License | Repo | |----------|---------|--------|---------|------| | Amendment | Website | Common Paper | CC-BY-4.0 | Repo | | Design Partner Agreement | Website | Common Paper | CC-BY-4.0 | Repo | | Letter Of Intent | Website | Common Paper | CC-BY-4.0 | Repo | | Partnership Agreement | Website | Common Paper | CC-BY-4.0 | Repo | | Pilot Agreement | Website | Common Paper | CC-BY-4.0 | Repo | | Term Sheet | Website | Common Paper | CC-BY-4.0 | Repo |

Employment

| Template | Website | Source | License | Repo | |----------|---------|--------|---------|------| | Employee IP Inventions Assignment | Website | OpenAgreements | CC-BY-4.0 | Repo | | Employment Confidentiality Acknowledgement | Website | OpenAgreements | CC-BY-4.0 | Repo | | Employment Offer Letter | Website | OpenAgreements | CC-BY-4.0 | Repo | | Restrictive Covenant Florida | Website | OpenAgreements | CC-BY-4.0 | Repo | | Restrictive Covenant Wyoming | Website | OpenAgreements | CC-BY-4.0 | Repo |

SAFEs

| Template | Website | Source | License | Repo | |----------|---------|--------|---------|------| | Discount | Website | Y Combinator | CC-BY-ND-4.0 | Repo | | MFN | Website | Y Combinator | CC-BY-ND-4.0 | Repo | | Pro Rata Side Letter | Website | Y Combinator | CC-BY-ND-4.0 | Repo | | Valuation Cap | Website | Y Combinator | CC-BY-ND-4.0 | Repo |

Venture Financing

| Template | Website | Source | License | Repo | |----------|---------|--------|---------|------| | Certificate Of Incorporation | Website | NVCA | Recipe | Repo | | Indemnification Agreement | Website | NVCA | Recipe | Repo | | Investors Rights Agreement | Website | NVCA | Recipe | Repo | | Management Rights Letter | Website | NVCA | Recipe | Repo | | ROFR Co Sale Agreement | Website | NVCA | Recipe | Repo | | Stock Purchase Agreement | Website | NVCA | Recipe | Repo | | Voting Agreement | Website | NVCA | Recipe | Repo |

Other

| Template | Website | Source | License | Repo | |----------|---------|--------|---------|------| | Closing Checklist | Website | OpenAgreements | CC0-1.0 | Repo | | Board Consent SAFE | Website | OpenAgreements | CC-BY-4.0 | Repo | | Due Diligence Request List | Website | OpenAgreements | CC-BY-4.0 | Repo | | Stockholder Consent SAFE | Website | OpenAgreements | CC-BY-4.0 | Repo | | Working Group List | Website | OpenAgreements | CC0-1.0 | Repo |

Available Skills

Agreement Drafting And Filling

| Skill | Description | |-------|-------------| | open-agreements | Fill standard legal agreement templates (NDAs, cloud service agreements, SAFEs) and produce signable DOCX files. Supports Common Paper, Bonterms, and Y Combinator templates. Use when the user needs to draft a legal agreement, create an NDA, fill a contract template, or generate a SAFE. Can also send agreements for electronic signature via DocuSign. | | nda | Draft and fill NDA templates — mutual NDA, one-way NDA, confidentiality agreement. Produces signable DOCX files from Common Paper and Bonterms standard forms. Use when user says "NDA," "non-disclosure agreement," "confidentiality agreement," "mutual NDA," or "one-way NDA." | | cloud-service-agreement | Draft and fill SaaS agreement templates — cloud contract, MSA, order form, software license, pilot agreement, design partner agreement. Includes variants with SLAs and AI terms. Produces signable DOCX from Common Paper standard forms. Use when user says "SaaS agreement," "cloud contract," "MSA," "order form," "software license," "pilot agreement," or "design partner agreement." | | services-agreement | Draft and fill services agreement templates — consulting contract, contractor agreement, SOW, statement of work, professional services agreement. Produces signable DOCX files from Common Paper and Bonterms standard forms. Use when user says "consulting contract," "contractor agreement," "SOW," "statement of work," "services agreement," or "freelancer contract." | | employment-contract | Draft and fill employment contract templates — offer letter, employment agreement, IP/inventions assignment (PIIA), and confidentiality acknowledgement — producing signable DOCX files from OpenAgreements standard forms for hiring employees. Use when the user says "employment contract," "employment agreement," "offer letter," "PIIA," "IP assignment," "hire someone," "new hire paperwork," or "onboarding paperwork." To explain non-compete or restrictive-covenant law rather than draft a document, see the non-compete-contract-explainer skill. | | data-privacy-agreement | Draft and fill data privacy agreement templates — DPA, data processing agreement, GDPR, HIPAA BAA, business associate agreement, AI addendum. Produces signable DOCX files from Common Paper standard forms. Use when user says "DPA," "data processing agreement," "HIPAA BAA," "business associate agreement," or "AI addendum." | | safe | Draft and fill Y Combinator SAFE templates — valuation cap, discount, MFN, pro rata side letter. Standard startup fundraising documents for convertible equity. Produces signable DOCX files. Use when user says "SAFE," "simple agreement for future equity," "YC SAFE," "valuation cap," "seed round documents," or "fundraising paperwork." | | venture-financing | Draft and fill NVCA model documents — stock purchase agreement, certificate of incorporation, investors rights agreement, voting agreement, ROFR, co-sale, indemnification, management rights letter. Series A and venture financing templates. Produces signable DOCX files. Use when user says "Series A documents," "NVCA," "stock purchase agreement," "investors rights agreement," "voting agreement," or "venture financing docs." |

Editing And Client Workflows

| Skill | Description | |-------|-------------| | edit-docx-agreement | Make bespoke edits to a DOCX agreement generated by OpenAgreements (or any existing DOCX), using Safe Docx MCP tools for surgical, formatting-preserving edits and tracked-changes outputs. Use when user says "edit this contract," "change a clause," "modify the agreement," "custom edits to the docx," or "bespoke changes to the document." | | client-email | Draft client-facing emails for legal services — cover notes for contract deliverables, redline summaries, deal status updates, and follow-ups. Use when composing or revising outbound emails to clients about legal work product. Triggers on "draft reply," "email to client," "cover note," "write back to," or any outbound email accompanying a legal deliverable. | | delaware-franchise-tax | File your Delaware annual franchise tax and annual report. Guides you through tax calculation (Authorized Shares and Assumed Par Value Capital methods), the eCorp portal filing process, and payment. For Delaware C-Corps (March 1 deadline) and LLCs/LPs/GPs (June 1 deadline). Use when user says "Delaware franchise tax," "annual report Delaware," "file franchise tax," or "eCorp portal." |

Compliance And Audit

| Skill | Description | |-------|-------------| | soc2-readiness | Assess SOC 2 Type II readiness. Map Trust Services Criteria to controls, identify gaps, and build a remediation plan. Uses NIST SP 800-53 (public domain) as canonical reference with SOC 2 criterion cross-mapping. Use when user says "SOC 2 readiness," "SOC 2 preparation," "SOC 2 gap analysis," or "prepare for SOC 2 audit." | | iso-27001-internal-audit | Run an ISO 27001 internal audit. Walk through controls by domain, identify gaps, collect evidence, and generate findings with corrective action recommendations. Uses NIST SP 800-53 (public domain) as canonical reference. Use when user says "run internal audit," "ISO 27001 audit," "control assessment," "audit findings," or "ISMS assessment." | | iso-27001-evidence-collection | Collect, organize, and validate evidence for ISO 27001 and SOC 2 audits. API-first approach with CLI commands for major cloud platforms. Produces timestamped, auditor-ready evidence packages. Use when user says "collect audit evidence," "prepare evidence package," "evidence for the auditor," "refresh evidence," or "evidence gap analysis." |

Developer Workflows

| Skill | Description | |-------|-------------| | recipe-quality-audit | Audit NVCA recipe quality: check file inventory, metadata schema, field-to-replacement coverage, ambiguous keys, smart quotes, test fixtures, and fill quality. Produces a structured scorecard per recipe with maturity tier classification. Use when user says "audit recipe quality," "check recipe coverage," "recipe scorecard," or "NVCA recipe quality." | | unit-test-philosophy | Risk-based unit testing and Allure-readable behavioral spec style for open-agreements. Use when user says "add tests," "test quality," "coverage expansion," "unit test style," or "Allure test spec." Applies when adding/updating tests, expanding coverage, or reviewing test quality across src, integration-tests, and workspace packages. |

Legal Explainers

| Skill | Description | |-------|-------------| | non-compete-contract-explainer | Explain U.S. state-by-state (and select international) non-compete and restrictive-covenant law — whether a non-compete is enforceable, blue-pencil reformation, tolling, choice of law, independent-contractor reach, and recent bans. Reads a bundled, source-cited snapshot per jurisdiction. Use when the user says "non-compete," "noncompete contract," "restrictive covenant," "non-solicit," "garden leave," "covenant not to compete," "employment agreement," asks "is my non-compete enforceable," or names a U.S. state. |

Template Authoring

| Skill | Description | |-------|-------------| | canonical-markdown-authoring | Convert plain markdown contract drafts into OpenAgreements' canonical template.md authoring format — YAML frontmatter, Kind|Label|Value|Show When cover-term tables, oa:clause directives, [[Defined Term]] paragraphs, and oa:signer directives that compile to validated JSON specs and DOCX artifacts. Use when the user says "convert this to canonical markdown," "author a new OpenAgreements template," "migrate template to template.md," or "write a canonical-form contract." |

Packages

| Package | Description | |---------|-------------| | open-agreements | Open-source legal template filling CLI and library | | @open-agreements/contract-templates-mcp | Local stdio MCP server for OpenAgreements template discovery and filling | | @open-agreements/contracts-workspace | Workspace-oriented CLI for organizing and tracking contract repositories | | @open-agreements/contracts-workspace-mcp | Local stdio MCP server for contracts workspace operations | | @open-agreements/checklist-mcp | Local stdio MCP server for OpenAgreements checklist memory operations |

What Gets Installed

open-agreements/
  bin/                    # CLI entry point
  dist/                   # Compiled TypeScript
  content/
    templates/            # Fillable DOCX templates with {tag} placeholders
    external/             # YC SAFE templates vendored unchanged
    recipes/              # Recipe instructions for non-redistributable sources
  skills/                 # Agent skill definitions
  server.json             # MCP server manifest
  gemini-extension.json   # Gemini CLI extension config
  README.md, LICENSE

NVCA recipe templates are downloaded at runtime and are not bundled in the package.

list

Show available templates with license info and field counts.

open-agreements list

# Machine-readable JSON for agent skills and automation
open-agreements list --json

fill <template>

Render a filled DOCX from a template.

# From a JSON data file
open-agreements fill common-paper-mutual-nda -d data.json -o output.docx

# With inline --set flags
open-agreements fill common-paper-mutual-nda --set party_1_name="Acme Corp" --set governing_law="Delaware"

validate [template]

Run the validation pipeline on one or all templates.

open-agreements validate
open-agreements validate common-paper-mutual-nda

Claude Code

npx skills add open-agreements/open-agreements

Gemini CLI

gemini extensions install https://github.com/open-agreements/open-agreements

Cursor

This repository includes a Cursor plugin manifest at .cursor-plugin/plugin.json with MCP wiring in mcp.json.

Local Vs Hosted Execution

  • Local: npx, global install, or stdio MCP. Processing happens on your machine.
  • Hosted: https://openagreements.org/api/mcp. Template filling runs server-side for faster setup.

Choose based on document sensitivity and internal policy. See the trust checklist below for the data-flow summary.

Quick Start

With Claude Code

Ask Claude:

Fill the Common Paper mutual NDA for my company

Claude can discover templates, interview you for field values, and render a signed-ready DOCX.

With the CLI

# See all available templates
open-agreements list

# Fill a template from a JSON data file
open-agreements fill common-paper-mutual-nda -d values.json -o my-nda.docx

# Fill with inline values
open-agreements fill common-paper-mutual-nda --set party_1_name="Acme Corp" --set governing_law="Delaware"

Example Prompts

  • "Draft an NDA for our construction subcontractor"
  • "Create a consulting agreement for our insurance agency"
  • "Fill the independent contractor agreement for a freelance designer"
  • "Generate a SAFE with a $5M valuation cap"

What Happens

  1. The agent runs list --json to discover templates and their fields.
  2. It interviews you for field values grouped by section.
  3. It runs fill <template> to render a DOCX preserving the source formatting.
  4. You review and sign the output document.

Install

Agent Skill (recommended)

npx skills add open-agreements/open-agreements

Remote MCP

Connect any MCP-compatible agent to the hosted server at https://openagreements.org/api/mcp.

Claude Code

claude mcp add --transport http open-agreements https://openagreements.org/api/mcp

Codex CLI

codex mcp add open-agreements --url https://openagreements.org/api/mcp

Other agents — point your client at https://openagreements.org/api/mcp (streamable HTTP).

Gemini CLI Extension

gemini extensions install https://github.com/open-agreements/open-agreements

CLI

npm install -g open-agreements

Or run directly with zero install:

npx -y open-agreements@latest list

Documentation

Start Here

Guides

Other Packages

Reference

Links: Website | Template Catalog | Docs | Trust | npm

Privacy

  • Local mode (npx, global install, stdio MCP): all processing happens on your machine. No document content is sent externally.
  • Hosted mode (https://openagreements.org/api/mcp): template filling runs server-side. No filled documents are stored after the response is returned.

See the Privacy Policy for details.

Security policy: see SECURITY.md.

See Also

  • safe-docx — surgical editing of existing Word documents with coding agents

Contributing

See CONTRIBUTING.md for how to add templates, recipes, and other improvements.

Built With OpenAgreements

Building on OpenAgreements? Open a PR to add your project.

Star History

Star History Chart

License

MIT. Template content is licensed by its respective authors:

  • CC BY 4.0 for Common Paper, Bonterms, and OpenAgreements-authored templates
  • CC BY-ND 4.0 for Y Combinator SAFE templates vendored unchanged
  • proprietary or non-redistributable for NVCA source documents handled via recipe workflows

See each template's metadata.yaml for source-specific details.

This tool generates documents from standard templates. It does not provide legal advice. Consult an attorney for legal guidance.