UNPKG

legal-markdown-js

Version:

Node.js implementation of LegalMarkdown for processing legal documents with markdown and YAML - Complete feature parity with Ruby version

261 lines (186 loc) 7.66 kB
--- title: 'Enterprise Master Service Agreement' document_type: 'Master Service Agreement' version: '2.3' effective_date: '@today' expiration_date: '2026-12-31' contract_value: 5000000 parties: provider: name: 'Enterprise Solutions Corp' type: 'Corporation' state: 'Delaware' registration: 'DE-2018-987654' address: '123 Enterprise Blvd, Business City, NY 10001' client: name: 'Default Enterprise Client' type: 'Corporation' project: name: 'Digital Transformation Initiative' description: 'Comprehensive enterprise modernization program' duration: '36 months' start_date: '@today' end_date: '2027-12-31' budget: 5000000 currency: 'USD' phases: 3 project_manager: 'Maria Rodriguez' liability_cap: 10000000 payment_terms: 'Net 15' governing_law: 'State of New York' warranty_period: '36 months' security_classification: 'confidential' compliance_level: 'enterprise' audit_requirements: true signature_required: true witnesses_required: true notarization_required: true level-one: 'ARTICLE %n.' level-two: 'Section %n.%s' level-three: 'Subsection %n.%s.%t' level-four: 'Paragraph (%n)' level-five: 'Subparagraph (%n.%s)' meta-json-output: 'output/enterprise-contract-metadata.json' meta-yaml-output: 'output/enterprise-contract-metadata.yaml' --- l. {{title}} **Contract Number:** ENT-{{version}}-{{@year}} **Document Type:** {{document_type}} **Contract Value:** {{formatCurrency contract_value project.currency}} **Effective:** {{effective_date}} - {{expiration_date}} --- ## Executive Summary This {{document_type}} establishes the framework for {{project.name}}, a {{project.duration}} engagement valued at **{{formatCurrency project.budget project.currency}}** between {{parties.provider.name}} and {{parties.client.name}}. ### Key Contract Parameters - **Project Manager:** {{project.project_manager}} - **Phases:** {{project.phases}} major delivery phases - **Payment Terms:** {{payment_terms}} - **Liability Cap:** {{formatCurrency liability_cap project.currency}} - **Governing Law:** {{governing_law}} {{#if security_classification}} **Security Classification:** {{upper security_classification}} {{/if}} --- l. Engagement Overview ll. Project Scope The **{{project.name}}** encompasses {{project.description}} to be delivered over {{project.phases}} phases from {{project.start_date}} to {{project.end_date}}. ll. Financial Framework - **Total Contract Value:** {{formatCurrency contract_value project.currency}} - **Project Budget:** {{formatCurrency project.budget project.currency}} {{project.currency}} - **Payment Schedule:** Milestone-based with {{payment_terms}} terms --- @import ../components/client-info.md --- @import ../components/standard-terms.md --- @import ../components/service-levels.md --- l. Enterprise Requirements ll. Security and Compliance {{#if compliance_level}} This engagement requires **{{compliance_level}}** level compliance including: {{/if}} {{#if audit_requirements}} - Annual third-party security audits - Quarterly compliance reviews - Monthly security reporting - Continuous monitoring and alerting {{/if}} ll. Performance Standards The service provider must maintain: - **Availability:** {{service_levels.availability.uptime_guarantee}}% uptime - **Response Time:** {{service_levels.performance.response_time_target}} average API response - **Support:** {{support.hours}} coverage in {{support.languages}} ll. Enterprise Governance - **Project Governance:** Monthly steering committee meetings - **Risk Management:** Quarterly risk assessments - **Change Management:** Formal change control process - **Quality Assurance:** Independent QA validation for all deliverables --- l. Financial Terms and Conditions ll. Contract Value Structure The total contract value of **{{formatCurrency contract_value project.currency}}** is allocated as follows: - **Development:** {{formatCurrency (multiply project.budget 0.7) project.currency}} (70%) - **Testing & QA:** {{formatCurrency (multiply project.budget 0.15) project.currency}} (15%) - **Project Management:** {{formatCurrency (multiply project.budget 0.10) project.currency}} (10%) - **Risk Contingency:** {{formatCurrency (multiply project.budget 0.05) project.currency}} (5%) ll. Payment Terms - **Schedule:** {{payment_terms}} from milestone completion - **Method:** Wire transfer to designated accounts - **Currency:** All amounts in {{project.currency}} ll. Liability and Insurance - **Liability Cap:** {{formatCurrency liability_cap project.currency}} aggregate - **Insurance Requirements:** As specified in client requirements - **Indemnification:** Mutual indemnification for third-party claims --- l. Legal Framework ll. Governing Law and Jurisdiction This agreement is governed by **{{governing_law}}** and subject to exclusive jurisdiction of New York courts. ll. Dispute Resolution Progressive dispute resolution: 1. Direct negotiation (30 days) 2. Mediation (60 days) 3. Binding arbitration (final) ll. Intellectual Property - **Client Retains:** All data, content, and business processes - **Provider Retains:** Pre-existing IP and general methodologies - **Joint Development:** Shared ownership of custom solutions --- l. Contract Execution {{#if signature_required}} ll. Authorized Signatures **PROVIDER:** {{parties.provider.name}} {{parties.provider.address}} By: ****************\_**************** Name: [Name] Title: Chief Executive Officer Date: ******\_\_\_****** {{#if witnesses_required}} **WITNESS:** Signature: ****************\_**************** Name: [Witness Name] Date: ******\_\_\_****** {{/if}} **CLIENT:** {{parties.client.name}} {{address.headquarters.street}} {{address.headquarters.city}}, {{address.headquarters.state}} {{address.headquarters.zip}} By: ****************\_**************** Name: {{contact.legal.name}} Title: {{contact.legal.title}} Date: ******\_\_\_****** {{#if witnesses_required}} **WITNESS:** Signature: ****************\_**************** Name: [Witness Name] Date: ******\_\_\_****** {{/if}} {{#if notarization_required}} ll. Notarization **State of New York** **County of New York** On this **\_** day of ****\_****, 2024, before me personally appeared the above-named individuals who proved to me on the basis of satisfactory evidence to be the persons whose names are subscribed to the within instrument and acknowledged to me that they executed the same in their authorized capacities. --- Notary Public My Commission Expires: ****\_\_\_**** {{/if}} {{/if}} --- ## Appendices ### Appendix A: Technical Specifications _(To be defined in separate technical SOW)_ ### Appendix B: Service Level Agreement Details _(See imported service-levels.md component)_ ### Appendix C: Client-Specific Requirements _(See imported client-info.md component)_ ### Appendix D: Standard Terms and Conditions _(See imported standard-terms.md component)_ --- _This {{document_type}} demonstrates advanced frontmatter merging with enterprise-grade complexity. Generated on {{@today}} with {{@word_count}} words. Security classification: {{security_classification}}._ **Merged Metadata Summary:** - **Governing Law:** {{governing_law}} _(enterprise preference overrides standard)_ - **Liability Cap:** {{formatCurrency liability_cap project.currency}} _(enterprise-level protection)_ - **Payment Terms:** {{payment_terms}} _(accelerated for enterprise)_ - **Service Level:** {{service_levels.availability.uptime_guarantee}}% availability guarantee - **Client:** {{client.name}} ({{client.industry}} industry) - **Support:** {{support.hours}} in {{support.locations}}