{"_id":"beautiful-mermaid","_rev":"10-f8f97063698f43430072734decfa8382","name":"beautiful-mermaid","dist-tags":{"latest":"1.1.3"},"versions":{"0.1.0":{"name":"beautiful-mermaid","version":"0.1.0","keywords":["mermaid","diagram","svg","ascii","flowchart","sequence-diagram","class-diagram","er-diagram","state-diagram","visualization","theming"],"author":{"name":"Luki Labs"},"license":"MIT","_id":"beautiful-mermaid@0.1.0","maintainers":[{"name":"craftdocs-user","email":"npm@craft.do"}],"homepage":"https://github.com/lukilabs/beautiful-mermaid","bugs":{"url":"https://github.com/lukilabs/beautiful-mermaid/issues"},"dist":{"shasum":"b0b5781234a913f92e1f011e173379a7cd40dc81","tarball":"https://registry.npmjs.org/beautiful-mermaid/-/beautiful-mermaid-0.1.0.tgz","fileCount":146,"integrity":"sha512-ko2VEAmTh/gc/HenoFaseR8QFOiD6ez8llXydMxNH/8eXJM1FzZnuPwBoL7tLWA02PzHYKijHQrimigkR1c89g==","signatures":[{"sig":"MEUCIQDhTtbS6CSs4mvGP2JqOFGq0OWvOl+LLXkW3xRsTOdNEwIgSQ2TJohSWGca3ZO+0gWo4Qw9cR+F0mAwHPd+zNlQtAA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":555545},"main":"src/index.ts","type":"module","types":"src/index.ts","exports":{".":"./src/index.ts"},"gitHead":"3185b9b6911e3b0a9f0d51fcebda5e0f69785ff0","scripts":{"dev":"bun run dev.ts","test":"bun test src/__tests__/","bench":"bun run bench.ts","build":"bun run index.ts && mkdir -p dist && mv index.html dist/ && cp -r public/* dist/","samples":"bun run index.ts"},"_npmUser":{"name":"craftdocs-user","email":"npm@craft.do"},"repository":{"url":"git+https://github.com/lukilabs/beautiful-mermaid.git","type":"git"},"_npmVersion":"10.8.2","description":"Render Mermaid diagrams as beautiful SVGs or ASCII art. Ultra-fast, fully themeable, zero DOM dependencies.","directories":{},"_nodeVersion":"20.19.6","dependencies":{"@dagrejs/dagre":"^1.1.8"},"_hasShrinkwrap":false,"devDependencies":{"shiki":"^3.19.0"},"_npmOperationalInternal":{"tmp":"tmp/beautiful-mermaid_0.1.0_1769618183191_0.9217320770951583","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"beautiful-mermaid","version":"0.1.1","keywords":["mermaid","diagram","svg","ascii","flowchart","sequence-diagram","class-diagram","er-diagram","state-diagram","visualization","theming"],"author":{"name":"Luki Labs"},"license":"MIT","_id":"beautiful-mermaid@0.1.1","maintainers":[{"name":"craftdocs-user","email":"npm@craft.do"}],"homepage":"https://github.com/lukilabs/beautiful-mermaid","bugs":{"url":"https://github.com/lukilabs/beautiful-mermaid/issues"},"dist":{"shasum":"f424c90319f1d17e861179e519c7821c33bf2cb6","tarball":"https://registry.npmjs.org/beautiful-mermaid/-/beautiful-mermaid-0.1.1.tgz","fileCount":9,"integrity":"sha512-saLx0+jo1DU+5GIHrndbU8xI2QUy96p7SurWeakFWafsAUwotuh70ikA9qum9jH8IePB5rvsbuGeeAfOCFl6wA==","signatures":[{"sig":"MEUCIQCZLtLfQX2a7IzOtsFJyPxSkekQXSyQ1ll4Nb1yDEEF5AIgR4amVs2TcTk1Vju5dAIq8hJUjih5R6/sHzwXfvaAONc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1532646},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"7f7b34c276cf59eade45dcc98e283a71ab8d5430","scripts":{"dev":"bun run dev.ts","test":"bun test src/__tests__/","bench":"bun run bench.ts","build":"tsup","samples":"bun run index.ts","build:samples":"bun run index.ts && mkdir -p samples && mv index.html samples/ && cp -r public/* samples/","prepublishOnly":"npm run build"},"_npmUser":{"name":"craftdocs-user","email":"npm@craft.do"},"repository":{"url":"git+https://github.com/lukilabs/beautiful-mermaid.git","type":"git"},"_npmVersion":"10.8.2","description":"Render Mermaid diagrams as beautiful SVGs or ASCII art. Ultra-fast, fully themeable, zero DOM dependencies.","directories":{},"_nodeVersion":"20.19.6","dependencies":{"@dagrejs/dagre":"^1.1.8"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","shiki":"^3.19.0","typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/beautiful-mermaid_0.1.1_1769618377862_0.4021102059065107","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"beautiful-mermaid","version":"0.1.2","keywords":["mermaid","diagram","svg","ascii","flowchart","sequence-diagram","class-diagram","er-diagram","state-diagram","visualization","theming"],"author":{"name":"Luki Labs"},"license":"MIT","_id":"beautiful-mermaid@0.1.2","maintainers":[{"name":"craftdocs-user","email":"npm@craft.do"}],"homepage":"https://github.com/lukilabs/beautiful-mermaid","bugs":{"url":"https://github.com/lukilabs/beautiful-mermaid/issues"},"dist":{"shasum":"44e609303d2a91139663292e5b1832b6e2a23291","tarball":"https://registry.npmjs.org/beautiful-mermaid/-/beautiful-mermaid-0.1.2.tgz","fileCount":9,"integrity":"sha512-pTsXNdjmiZW0ITC2IlVt6YdQucA1ArhnXYnRJWGRnSuCIbypV0NbVgdZF1c2zh+S6H5GhgfFJE2YL6FN9en8Qg==","signatures":[{"sig":"MEQCIDZpLfr87hORZIzoTHa5dKh2JjA4aA5f3Q3a/lGik0AXAiAD3/KmIz7H1opHgKq9uTH1U6n9HOj032K43fT9NvAU7Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1532543},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"83ab883b6826aa5c9df26843883bdbe89ceae7cf","scripts":{"dev":"bun run dev.ts","test":"bun test src/__tests__/","bench":"bun run bench.ts","build":"tsup","samples":"bun run index.ts","build:samples":"bun run index.ts && mkdir -p samples && mv index.html samples/ && cp -r public/* samples/","prepublishOnly":"npm run build"},"_npmUser":{"name":"craftdocs-user","email":"npm@craft.do"},"repository":{"url":"git+https://github.com/lukilabs/beautiful-mermaid.git","type":"git"},"_npmVersion":"10.8.2","description":"Render Mermaid diagrams as beautiful SVGs or ASCII art. Ultra-fast, fully themeable, zero DOM dependencies.","directories":{},"_nodeVersion":"20.19.6","dependencies":{"@dagrejs/dagre":"^1.1.8"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","shiki":"^3.19.0","typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/beautiful-mermaid_0.1.2_1769618605271_0.9437629056193844","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"beautiful-mermaid","version":"0.1.3","keywords":["mermaid","diagram","svg","ascii","flowchart","sequence-diagram","class-diagram","er-diagram","state-diagram","visualization","theming"],"author":{"name":"Luki Labs"},"license":"MIT","_id":"beautiful-mermaid@0.1.3","maintainers":[{"name":"craftdocs-user","email":"npm@craft.do"}],"homepage":"https://github.com/lukilabs/beautiful-mermaid","bugs":{"url":"https://github.com/lukilabs/beautiful-mermaid/issues"},"dist":{"shasum":"fe9f707d0c10193f55110d0c2325b75ffce69df7","tarball":"https://registry.npmjs.org/beautiful-mermaid/-/beautiful-mermaid-0.1.3.tgz","fileCount":11,"integrity":"sha512-lVEHCnlVLtVRbO03T+D9kY5BZlkpvFU6F18LEu2N2VLB0eo5evG1FJWg3SvREErKY+zZ7j9f+cNsgtiOhYI2Nw==","signatures":[{"sig":"MEYCIQCX4NLW54BArdBBEv7o3ALXWkes5yAPTMG6Lf58hL2K0QIhAMGUK7SBokKoi2Xd5tbcDYEy45CQGIEgVWeFpBfwxgya","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2475255},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","unpkg":"./dist/beautiful-mermaid.browser.global.js","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./browser":{"types":"./dist/beautiful-mermaid.browser.d.ts","default":"./dist/beautiful-mermaid.browser.global.js"}},"gitHead":"f392f51261eda80b54671dcb9fbc1be6c4b93b71","scripts":{"dev":"bun run dev.ts","test":"bun test src/__tests__/","bench":"bun run bench.ts","build":"tsup","samples":"bun run index.ts","build:samples":"bun run index.ts && mkdir -p samples && mv index.html samples/ && cp -r public/* samples/","prepublishOnly":"npm run build"},"_npmUser":{"name":"craftdocs-user","email":"npm@craft.do"},"jsdelivr":"./dist/beautiful-mermaid.browser.global.js","repository":{"url":"git+https://github.com/lukilabs/beautiful-mermaid.git","type":"git"},"_npmVersion":"10.8.2","description":"Render Mermaid diagrams as beautiful SVGs or ASCII art. Ultra-fast, fully themeable, zero DOM dependencies.","directories":{},"_nodeVersion":"20.19.6","dependencies":{"@dagrejs/dagre":"^1.1.8"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","shiki":"^3.19.0","typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/beautiful-mermaid_0.1.3_1769717212382_0.9953612466117141","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"beautiful-mermaid","version":"1.0.0","keywords":["mermaid","diagram","svg","ascii","flowchart","sequence-diagram","class-diagram","er-diagram","state-diagram","visualization","theming"],"author":{"name":"Craft Docs"},"license":"MIT","_id":"beautiful-mermaid@1.0.0","maintainers":[{"name":"craftdocs-user","email":"npm@craft.do"}],"homepage":"https://github.com/lukilabs/beautiful-mermaid","bugs":{"url":"https://github.com/lukilabs/beautiful-mermaid/issues"},"dist":{"shasum":"af9ac8e94f0b563ed91dff7a08713220b18ccf12","tarball":"https://registry.npmjs.org/beautiful-mermaid/-/beautiful-mermaid-1.0.0.tgz","fileCount":173,"integrity":"sha512-SGStpSXUGEh4jictBjm5UcSkyL4+CRVy0cYr5f0z/08MMTuyFHVs0CJH+qAIscOVnHAqMYvXP0IMdf/53jVI5A==","signatures":[{"sig":"MEUCIQDoUmFvIfzgVolFfvr48fTqS6NpuYxDFUoneoVxutYdngIgE680oA+sMqIKSxRSGppMocl3q44veZPR5iGXOho/uGI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":775591},"main":"src/index.ts","type":"module","types":"src/index.ts","exports":{".":"./src/index.ts"},"gitHead":"02daec0ee8fba7dc26f9795386e8835c8d948795","scripts":{"dev":"bun run dev.ts","test":"bun test src/__tests__/","bench":"bun run bench.ts","build":"bun run index.ts && mkdir -p dist && mv index.html dist/ && cp -r public/* dist/","deploy":"bun run build && wrangler pages deploy dist --project-name craft-agents-mermaid","samples":"bun run index.ts"},"_npmUser":{"name":"craftdocs-user","email":"npm@craft.do"},"repository":{"url":"git+https://github.com/lukilabs/beautiful-mermaid.git","type":"git"},"_npmVersion":"11.8.0","description":"Render Mermaid diagrams as beautiful SVGs or ASCII art. Ultra-fast, fully themeable, zero DOM dependencies.","directories":{},"_nodeVersion":"25.6.0","dependencies":{"elkjs":"^0.11.0","entities":"^7.0.1"},"_hasShrinkwrap":false,"devDependencies":{"shiki":"^3.19.0"},"_npmOperationalInternal":{"tmp":"tmp/beautiful-mermaid_1.0.0_1771845057520_0.10706615060700098","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"beautiful-mermaid","version":"1.0.1","keywords":["mermaid","diagram","svg","ascii","flowchart","sequence-diagram","class-diagram","er-diagram","state-diagram","visualization","theming"],"author":{"name":"Craft Docs"},"license":"MIT","_id":"beautiful-mermaid@1.0.1","maintainers":[{"name":"craftdocs-user","email":"npm@craft.do"}],"homepage":"https://github.com/lukilabs/beautiful-mermaid","bugs":{"url":"https://github.com/lukilabs/beautiful-mermaid/issues"},"dist":{"shasum":"cba2aae71003ffca7e7a1f95add02e832cd18581","tarball":"https://registry.npmjs.org/beautiful-mermaid/-/beautiful-mermaid-1.0.1.tgz","fileCount":173,"integrity":"sha512-kv88NK42Z3DT8U3hlJzeBtmJEzOXXAtFe+IWlWILHieINT+J6MLX2PmU5A7NIBp0Q9LV2dg1z80lq0XSrGh6SQ==","signatures":[{"sig":"MEYCIQCoBtjAXScktAO69upCBbuxe/bjPUfeHsgJR+AIYLJt8AIhAIwNONeIczsOiDiMnh5PhI9D2Q6XlfK177+QYB4D1EZD","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":790436},"main":"src/index.ts","type":"module","types":"src/index.ts","exports":{".":"./src/index.ts"},"gitHead":"026688ae042472ab395fbc42c8c3b2b832d63b8a","scripts":{"dev":"bun run dev.ts","test":"bun test src/__tests__/","bench":"bun run bench.ts","build":"bun run index.ts && mkdir -p dist && mv index.html dist/ && cp -r public/* dist/","deploy":"bun run build && wrangler pages deploy dist --project-name craft-agents-mermaid","samples":"bun run index.ts"},"_npmUser":{"name":"craftdocs-user","email":"npm@craft.do"},"repository":{"url":"git+https://github.com/lukilabs/beautiful-mermaid.git","type":"git"},"_npmVersion":"11.8.0","description":"Render Mermaid diagrams as beautiful SVGs or ASCII art. Ultra-fast, fully themeable, zero DOM dependencies.","directories":{},"_nodeVersion":"25.6.0","dependencies":{"elkjs":"^0.11.0","entities":"^7.0.1"},"_hasShrinkwrap":false,"devDependencies":{"shiki":"^3.19.0"},"_npmOperationalInternal":{"tmp":"tmp/beautiful-mermaid_1.0.1_1771862671674_0.15245456987315742","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"beautiful-mermaid","version":"1.0.2","keywords":["mermaid","diagram","svg","ascii","flowchart","sequence-diagram","class-diagram","er-diagram","state-diagram","visualization","theming"],"author":{"name":"Craft Docs"},"license":"MIT","_id":"beautiful-mermaid@1.0.2","maintainers":[{"name":"craftdocs-user","email":"npm@craft.do"}],"homepage":"https://github.com/lukilabs/beautiful-mermaid","bugs":{"url":"https://github.com/lukilabs/beautiful-mermaid/issues"},"dist":{"shasum":"a6e263c17896f5965891f7e1c4608393fc8944d7","tarball":"https://registry.npmjs.org/beautiful-mermaid/-/beautiful-mermaid-1.0.2.tgz","fileCount":173,"integrity":"sha512-8f8xVRIuGyaI1kthEnYPqWLAGzdAyD1EuS4mL+zwhSUKVbnbFeKzQT9nXJq7YraU/ZFF4yzpRNdwLUzeEDTC5A==","signatures":[{"sig":"MEUCIQD6MPJqAPw+CVlMdq8GXQ0dWQMdb6OUXlm1tv5R5emVawIgV9f1u2JQNcYaedvlUn7Y5ogVfZ37j31OBrtePRrTKMI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":790522},"main":"src/index.ts","type":"module","types":"src/index.ts","exports":{".":"./src/index.ts"},"gitHead":"7e9dd6e78be25715eba80660f7a609aff7618cc6","scripts":{"dev":"bun run dev.ts","test":"bun test src/__tests__/","bench":"bun run bench.ts","build":"bun run index.ts && mkdir -p dist && mv index.html dist/ && cp -r public/* dist/","deploy":"bun run build && wrangler pages deploy dist --project-name craft-agents-mermaid","samples":"bun run index.ts"},"_npmUser":{"name":"craftdocs-user","email":"npm@craft.do"},"repository":{"url":"git+https://github.com/lukilabs/beautiful-mermaid.git","type":"git"},"_npmVersion":"11.8.0","description":"Render Mermaid diagrams as beautiful SVGs or ASCII art. Ultra-fast, fully themeable, zero DOM dependencies.","directories":{},"_nodeVersion":"25.6.0","dependencies":{"elkjs":"^0.11.0","entities":"^7.0.1"},"_hasShrinkwrap":false,"devDependencies":{"shiki":"^3.19.0","@types/bun":"^1.3.9"},"_npmOperationalInternal":{"tmp":"tmp/beautiful-mermaid_1.0.2_1771867229275_0.7448598827694006","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"beautiful-mermaid","version":"1.1.1","keywords":["mermaid","diagram","svg","ascii","flowchart","sequence-diagram","class-diagram","er-diagram","xychart","state-diagram","visualization","theming"],"author":{"name":"Craft Docs"},"license":"MIT","_id":"beautiful-mermaid@1.1.1","maintainers":[{"name":"craftdocs-user","email":"npm@craft.do"}],"homepage":"https://github.com/lukilabs/beautiful-mermaid","bugs":{"url":"https://github.com/lukilabs/beautiful-mermaid/issues"},"dist":{"shasum":"87f0f524ef669f1417db06e47ce6bbb4f0afe3d8","tarball":"https://registry.npmjs.org/beautiful-mermaid/-/beautiful-mermaid-1.1.1.tgz","fileCount":182,"integrity":"sha512-GmhTKURPCemGRau3Yg2b2cJ8pvBTas1iitn4QDOw0UHxL2NpU5g1Z7rwadR3jfvOjFBTx7+g7d/i5moD+KdaxA==","signatures":[{"sig":"MEYCIQCMTK5/jaL4SCo9gLR6/SkriOIZ/ReFEy2Z3yXxP3XgxwIhAOl1GEZvk7FPvKyIDaRaUvQ2kS55tja0q3wcJXmB+pN/","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":912735},"main":"src/index.ts","type":"module","types":"src/index.ts","exports":{".":"./src/index.ts"},"gitHead":"87707bc5375df62f713a9ea77a65593aca08ce80","scripts":{"dev":"bun run dev.ts","test":"bun test src/__tests__/","bench":"bun run bench.ts","build":"tsup","deploy":"bun run build:samples && wrangler pages deploy dist --project-name craft-agents-mermaid","samples":"bun run index.ts","xychart-test":"bun run xychart-test.ts","build:samples":"bun run index.ts && mkdir -p dist && mv index.html dist/ && cp -r public/* dist/"},"_npmUser":{"name":"craftdocs-user","email":"npm@craft.do"},"repository":{"url":"git+https://github.com/lukilabs/beautiful-mermaid.git","type":"git"},"_npmVersion":"11.8.0","description":"Render Mermaid diagrams as beautiful SVGs or ASCII art. Ultra-fast, fully themeable, zero DOM dependencies.","directories":{},"_nodeVersion":"25.6.0","dependencies":{"elkjs":"^0.11.0","entities":"^7.0.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","shiki":"^3.19.0","@types/bun":"^1.3.9","typescript":"^5.9.3"},"_npmOperationalInternal":{"tmp":"tmp/beautiful-mermaid_1.1.1_1772111416042_0.38027100453251217","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"beautiful-mermaid","version":"1.1.2","keywords":["mermaid","diagram","svg","ascii","flowchart","sequence-diagram","class-diagram","er-diagram","xychart","state-diagram","visualization","theming"],"author":{"name":"Craft Docs"},"license":"MIT","_id":"beautiful-mermaid@1.1.2","maintainers":[{"name":"craftdocs-user","email":"npm@craft.do"}],"homepage":"https://github.com/lukilabs/beautiful-mermaid","bugs":{"url":"https://github.com/lukilabs/beautiful-mermaid/issues"},"dist":{"shasum":"f86a16ebd75f6156fede9266f212e3b54c3c8982","tarball":"https://registry.npmjs.org/beautiful-mermaid/-/beautiful-mermaid-1.1.2.tgz","fileCount":185,"integrity":"sha512-nhsiT0UxdmMTDKpiBSAanYy9SgQRuPyvn8HRx1K0Hmkftc1erMPCKvfn+o4OFizVt4VP1HGH6TKTgLKsDD8AFA==","signatures":[{"sig":"MEUCIQDXh1FwphKbTWFzC0w4feOZG1pb+krGltOZ1oEn4XCfXQIgQhaW9gvBmPz3kAq9IlDWrN6MsldWIauZjxYInWMYkQs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2096840},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"0fae17b28613a0db4c7c79cda49bd70fac5b83e6","scripts":{"dev":"bun run dev.ts","test":"bun test src/__tests__/","bench":"bun run bench.ts","build":"tsup","deploy":"bun run build:samples && wrangler pages deploy site --project-name craft-agents-mermaid","samples":"bun run index.ts","xychart-test":"bun run xychart-test.ts","build:samples":"bun run index.ts && mkdir -p site && mv index.html site/ && cp -r public/* site/","prepublishOnly":"npm run build"},"_npmUser":{"name":"craftdocs-user","email":"npm@craft.do"},"repository":{"url":"git+https://github.com/lukilabs/beautiful-mermaid.git","type":"git"},"_npmVersion":"11.8.0","description":"Render Mermaid diagrams as beautiful SVGs or ASCII art. Ultra-fast, fully themeable, zero DOM dependencies.","directories":{},"_nodeVersion":"25.6.0","dependencies":{"elkjs":"^0.11.0","entities":"^7.0.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","shiki":"^3.19.0","@types/bun":"^1.3.9","typescript":"^5.9.3"},"_npmOperationalInternal":{"tmp":"tmp/beautiful-mermaid_1.1.2_1772114354596_0.8507726792186932","host":"s3://npm-registry-packages-npm-production"}},"1.1.3":{"name":"beautiful-mermaid","version":"1.1.3","license":"MIT","description":"Render Mermaid diagrams as beautiful SVGs or ASCII art. Ultra-fast, fully themeable, zero DOM dependencies.","type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"bun":"./src/index.ts","import":"./dist/index.js","types":"./dist/index.d.ts"}},"repository":{"type":"git","url":"git+https://github.com/lukilabs/beautiful-mermaid.git"},"homepage":"https://github.com/lukilabs/beautiful-mermaid","bugs":{"url":"https://github.com/lukilabs/beautiful-mermaid/issues"},"keywords":["mermaid","diagram","svg","ascii","flowchart","sequence-diagram","class-diagram","er-diagram","xychart","state-diagram","visualization","theming"],"author":{"name":"Craft Docs"},"scripts":{"test":"bun test src/__tests__/","samples":"bun run index.ts","dev":"bun run dev.ts","bench":"bun run bench.ts","build":"tsup","build:samples":"bun run index.ts && mkdir -p site && mv index.html site/ && cp -r public/* site/","deploy":"bun run build:samples && wrangler pages deploy site --project-name craft-agents-mermaid","xychart-test":"bun run xychart-test.ts","prepublishOnly":"npm run build"},"dependencies":{"elkjs":"^0.11.0","entities":"^7.0.1"},"devDependencies":{"@types/bun":"^1.3.9","shiki":"^3.19.0","tsup":"^8.5.1","typescript":"^5.9.3"},"gitHead":"65f4e0ab8c289e9691a9e5bc4f9eac7108cf449b","_id":"beautiful-mermaid@1.1.3","_nodeVersion":"25.6.0","_npmVersion":"11.8.0","dist":{"integrity":"sha512-TItrtrAyHp1vwFfFVYauWGrquouk/6SS21Aq3RsxindSYZODcN4xYrPZD6BiZRU+o5mKJzDPz9MUSMvELdylyg==","shasum":"33622aacd24f3cf37d61a1912673a4710ed90461","tarball":"https://registry.npmjs.org/beautiful-mermaid/-/beautiful-mermaid-1.1.3.tgz","fileCount":185,"unpackedSize":2098676,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIE0O3fnbCVZyegyhaw3BraKdU0d2ZAi8J1VeYUN6zMVAAiBkNLljKGrEi6hEZ/GwIOZSTMGQ4/lLL9cmhEzZnHTUGA=="}]},"_npmUser":{"name":"craftdocs-user","email":"npm@craft.do"},"directories":{},"maintainers":[{"name":"craftdocs-user","email":"npm@craft.do"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/beautiful-mermaid_1.1.3_1772115785907_0.6418113256927069"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-28T16:36:23.190Z","modified":"2026-02-26T14:23:06.234Z","0.1.0":"2026-01-28T16:36:23.335Z","0.1.1":"2026-01-28T16:39:38.053Z","0.1.2":"2026-01-28T16:43:25.489Z","0.1.3":"2026-01-29T20:06:52.631Z","1.0.0":"2026-02-23T11:10:57.740Z","1.0.1":"2026-02-23T16:04:31.849Z","1.0.2":"2026-02-23T17:20:29.484Z","1.1.1":"2026-02-26T13:10:16.254Z","1.1.2":"2026-02-26T13:59:14.823Z","1.1.3":"2026-02-26T14:23:06.116Z"},"bugs":{"url":"https://github.com/lukilabs/beautiful-mermaid/issues"},"author":{"name":"Craft Docs"},"license":"MIT","homepage":"https://github.com/lukilabs/beautiful-mermaid","keywords":["mermaid","diagram","svg","ascii","flowchart","sequence-diagram","class-diagram","er-diagram","xychart","state-diagram","visualization","theming"],"repository":{"type":"git","url":"git+https://github.com/lukilabs/beautiful-mermaid.git"},"description":"Render Mermaid diagrams as beautiful SVGs or ASCII art. Ultra-fast, fully themeable, zero DOM dependencies.","maintainers":[{"name":"craftdocs-user","email":"npm@craft.do"}],"readme":"<div align=\"center\">\n\n# beautiful-mermaid\n\n**Render Mermaid diagrams as beautiful SVGs or ASCII art**\n\nUltra-fast, fully themeable, zero DOM dependencies. Built for the AI era.\n\n![beautiful-mermaid sequence diagram example](hero.png)\n\n[![npm version](https://img.shields.io/npm/v/beautiful-mermaid.svg)](https://www.npmjs.com/package/beautiful-mermaid)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\n[**Live Demo & Samples**](https://agents.craft.do/mermaid)\n\n**[→ Use it live in Craft Agents](https://agents.craft.do)**\n\n</div>\n\n---\n\n## Why We Built This\n\nDiagrams are essential for AI-assisted programming. When you're working with an AI coding assistant, being able to visualize data flows, state machines, and system architecture—directly in your terminal or chat interface—makes complex concepts instantly graspable.\n\n[Mermaid](https://mermaid.js.org/) is the de facto standard for text-based diagrams. It's brilliant. But the default renderer has problems:\n\n- **Aesthetics** — Might be personal preference, but wished they looked more professional\n- **Complex theming** — Customizing colors requires wrestling with CSS classes\n- **No terminal output** — Can't render to ASCII for CLI tools\n- **Heavy dependencies** — Pulls in a lot of code for simple diagrams\n\nWe built `beautiful-mermaid` at [Craft](https://craft.do) to power diagrams in [Craft Agents](https://agents.craft.do). It's fast, beautiful, and works everywhere—from rich UIs to plain terminals.\n\n\nThe ASCII rendering engine is based on [mermaid-ascii](https://github.com/AlexanderGrooff/mermaid-ascii) by Alexander Grooff. We ported it from Go to TypeScript and extended it. Thank you Alexander for the excellent foundation! (And inspiration that this was possible.)\n\n## Features\n\n- **6 diagram types** — Flowcharts, State, Sequence, Class, ER, and XY Charts (bar, line, combined)\n- **Dual output** — SVG for rich UIs, ASCII/Unicode for terminals\n- **Synchronous rendering** — No async, no flash. Works with React `useMemo()`\n- **15 built-in themes** — And dead simple to add your own\n- **Full Shiki compatibility** — Use any VS Code theme directly\n- **Live theme switching** — CSS custom properties, no re-render needed\n- **Mono mode** — Beautiful diagrams from just 2 colors\n- **Zero DOM dependencies** — Pure TypeScript, works everywhere\n- **Ultra-fast** — Renders 100+ diagrams in under 500ms\n\n## Installation\n\n```bash\nnpm install beautiful-mermaid\n# or\nbun add beautiful-mermaid\n# or\npnpm add beautiful-mermaid\n```\n\n## Quick Start\n\n### SVG Output\n\n```typescript\nimport { renderMermaidSVG } from 'beautiful-mermaid'\n\nconst svg = renderMermaidSVG(`\n  graph TD\n    A[Start] --> B{Decision}\n    B -->|Yes| C[Action]\n    B -->|No| D[End]\n`)\n```\n\nRendering is **fully synchronous** — no `await`, no promises. The ELK.js layout engine runs synchronously via a FakeWorker bypass, so you get your SVG string instantly.\n\nNeed async? Use `renderMermaidSVGAsync()` — same output, returns a `Promise<string>`.\n\n### ASCII Output\n\n```typescript\nimport { renderMermaidASCII } from 'beautiful-mermaid'\n\nconst ascii = renderMermaidASCII(`graph LR; A --> B --> C`)\n```\n\n```\n┌───┐     ┌───┐     ┌───┐\n│   │     │   │     │   │\n│ A │────►│ B │────►│ C │\n│   │     │   │     │   │\n└───┘     └───┘     └───┘\n```\n\n---\n\n## React Integration\n\nBecause rendering is synchronous, you can use `useMemo()` for zero-flash diagram rendering:\n\n```tsx\nimport { renderMermaidSVG } from 'beautiful-mermaid'\n\nfunction MermaidDiagram({ code }: { code: string }) {\n  const { svg, error } = React.useMemo(() => {\n    try {\n      return {\n        svg: renderMermaidSVG(code, {\n          bg: 'var(--background)',\n          fg: 'var(--foreground)',\n          transparent: true,\n        }),\n        error: null,\n      }\n    } catch (err) {\n      return { svg: null, error: err instanceof Error ? err : new Error(String(err)) }\n    }\n  }, [code])\n\n  if (error) return <pre>{error.message}</pre>\n  return <div dangerouslySetInnerHTML={{ __html: svg! }} />\n}\n```\n\n**Why this works well:**\n- **No flash** — SVG is computed synchronously during render, not in a useEffect\n- **CSS variables** — Pass `var(--background)` etc. instead of hex colors. The SVG inherits from your app's CSS, so theme switches apply instantly without re-rendering\n- **Memoized** — Only re-renders when `code` changes\n\n---\n\n## Theming\n\nThe theming system is the heart of `beautiful-mermaid`. It's designed to be both powerful and dead simple.\n\n### The Two-Color Foundation\n\nEvery diagram needs just two colors: **background** (`bg`) and **foreground** (`fg`). That's it. From these two colors, the entire diagram is derived using `color-mix()`:\n\n```typescript\nconst svg = renderMermaidSVG(diagram, {\n  bg: '#1a1b26',  // Background\n  fg: '#a9b1d6',  // Foreground\n})\n```\n\nThis is **Mono Mode**—a coherent, beautiful diagram from just two colors. The system automatically derives:\n\n| Element | Derivation |\n|---------|------------|\n| Text | `--fg` at 100% |\n| Secondary text | `--fg` at 60% into `--bg` |\n| Edge labels | `--fg` at 40% into `--bg` |\n| Faint text | `--fg` at 25% into `--bg` |\n| Connectors | `--fg` at 50% into `--bg` |\n| Arrow heads | `--fg` at 85% into `--bg` |\n| Node fill | `--fg` at 3% into `--bg` |\n| Group header | `--fg` at 5% into `--bg` |\n| Inner strokes | `--fg` at 12% into `--bg` |\n| Node stroke | `--fg` at 20% into `--bg` |\n\n### Enriched Mode\n\nFor richer themes, you can provide optional \"enrichment\" colors that override specific derivations:\n\n```typescript\nconst svg = renderMermaidSVG(diagram, {\n  bg: '#1a1b26',\n  fg: '#a9b1d6',\n  // Optional enrichment:\n  line: '#3d59a1',    // Edge/connector color\n  accent: '#7aa2f7',  // Arrow heads, highlights\n  muted: '#565f89',   // Secondary text, labels\n  surface: '#292e42', // Node fill tint\n  border: '#3d59a1',  // Node stroke\n})\n```\n\nIf an enrichment color isn't provided, it falls back to the `color-mix()` derivation. This means you can provide just the colors you care about.\n\n### CSS Custom Properties = Live Switching\n\nAll colors are CSS custom properties on the `<svg>` element. This means you can switch themes instantly without re-rendering:\n\n```javascript\n// Switch theme by updating CSS variables\nsvg.style.setProperty('--bg', '#282a36')\nsvg.style.setProperty('--fg', '#f8f8f2')\n// The entire diagram updates immediately\n```\n\nFor React apps, pass CSS variable references instead of hex values:\n\n```typescript\nconst svg = renderMermaidSVG(diagram, {\n  bg: 'var(--background)',\n  fg: 'var(--foreground)',\n  accent: 'var(--accent)',\n  transparent: true,\n})\n// Theme switches apply automatically via CSS cascade — no re-render needed\n```\n\n### Built-in Themes\n\n15 carefully curated themes ship out of the box:\n\n| Theme | Type | Background | Accent |\n|-------|------|------------|--------|\n| `zinc-light` | Light | `#FFFFFF` | Derived |\n| `zinc-dark` | Dark | `#18181B` | Derived |\n| `tokyo-night` | Dark | `#1a1b26` | `#7aa2f7` |\n| `tokyo-night-storm` | Dark | `#24283b` | `#7aa2f7` |\n| `tokyo-night-light` | Light | `#d5d6db` | `#34548a` |\n| `catppuccin-mocha` | Dark | `#1e1e2e` | `#cba6f7` |\n| `catppuccin-latte` | Light | `#eff1f5` | `#8839ef` |\n| `nord` | Dark | `#2e3440` | `#88c0d0` |\n| `nord-light` | Light | `#eceff4` | `#5e81ac` |\n| `dracula` | Dark | `#282a36` | `#bd93f9` |\n| `github-light` | Light | `#ffffff` | `#0969da` |\n| `github-dark` | Dark | `#0d1117` | `#4493f8` |\n| `solarized-light` | Light | `#fdf6e3` | `#268bd2` |\n| `solarized-dark` | Dark | `#002b36` | `#268bd2` |\n| `one-dark` | Dark | `#282c34` | `#c678dd` |\n\n```typescript\nimport { renderMermaidSVG, THEMES } from 'beautiful-mermaid'\n\nconst svg = renderMermaidSVG(diagram, THEMES['tokyo-night'])\n```\n\n### Adding Your Own Theme\n\nCreating a theme is trivial. At minimum, just provide `bg` and `fg`:\n\n```typescript\nconst myTheme = {\n  bg: '#0f0f0f',\n  fg: '#e0e0e0',\n}\n\nconst svg = renderMermaidSVG(diagram, myTheme)\n```\n\nWant richer colors? Add any of the optional enrichments:\n\n```typescript\nconst myRichTheme = {\n  bg: '#0f0f0f',\n  fg: '#e0e0e0',\n  accent: '#ff6b6b',  // Pop of color for arrows\n  muted: '#666666',   // Subdued labels\n}\n```\n\n### Full Shiki Compatibility\n\nUse **any VS Code theme** directly via Shiki integration. This gives you access to hundreds of community themes:\n\n```typescript\nimport { getSingletonHighlighter } from 'shiki'\nimport { renderMermaidSVG, fromShikiTheme } from 'beautiful-mermaid'\n\n// Load any theme from Shiki's registry\nconst highlighter = await getSingletonHighlighter({\n  themes: ['vitesse-dark', 'rose-pine', 'material-theme-darker']\n})\n\n// Extract diagram colors from the theme\nconst colors = fromShikiTheme(highlighter.getTheme('vitesse-dark'))\n\nconst svg = renderMermaidSVG(diagram, colors)\n```\n\nThe `fromShikiTheme()` function intelligently maps VS Code editor colors to diagram roles:\n\n| Editor Color | Diagram Role |\n|--------------|--------------|\n| `editor.background` | `bg` |\n| `editor.foreground` | `fg` |\n| `editorLineNumber.foreground` | `line` |\n| `focusBorder` / keyword token | `accent` |\n| comment token | `muted` |\n| `editor.selectionBackground` | `surface` |\n| `editorWidget.border` | `border` |\n\n---\n\n## Supported Diagrams\n\n### Flowcharts\n\n```\ngraph TD\n  A[Start] --> B{Decision}\n  B -->|Yes| C[Process]\n  B -->|No| D[End]\n  C --> D\n```\n\nAll directions supported: `TD` (top-down), `LR` (left-right), `BT` (bottom-top), `RL` (right-left).\n\n### State Diagrams\n\n```\nstateDiagram-v2\n  [*] --> Idle\n  Idle --> Processing: start\n  Processing --> Complete: done\n  Complete --> [*]\n```\n\n### Sequence Diagrams\n\n```\nsequenceDiagram\n  Alice->>Bob: Hello Bob!\n  Bob-->>Alice: Hi Alice!\n  Alice->>Bob: How are you?\n  Bob-->>Alice: Great, thanks!\n```\n\n### Class Diagrams\n\n```\nclassDiagram\n  Animal <|-- Duck\n  Animal <|-- Fish\n  Animal: +int age\n  Animal: +String gender\n  Animal: +isMammal() bool\n  Duck: +String beakColor\n  Duck: +swim()\n  Duck: +quack()\n```\n\n### ER Diagrams\n\n```\nerDiagram\n  CUSTOMER ||--o{ ORDER : places\n  ORDER ||--|{ LINE_ITEM : contains\n  PRODUCT ||--o{ LINE_ITEM : \"is in\"\n```\n\n### Inline Edge Styling\n\nUse `linkStyle` to override edge colors and stroke widths — just like [Mermaid's linkStyle](https://mermaid.js.org/syntax/flowchart.html#styling-links):\n\n```\ngraph TD\n  A --> B --> C\n  linkStyle 0 stroke:#ff0000,stroke-width:2px\n  linkStyle default stroke:#888888\n```\n\n|             Syntax              |                 Effect                 |\n| ------------------------------- | -------------------------------------- |\n| `linkStyle 0 stroke:#f00`       | Style a single edge by index (0-based) |\n| `linkStyle 0,2 stroke:#f00`     | Style multiple edges at once           |\n| `linkStyle default stroke:#888` | Default style applied to all edges     |\n\nIndex-specific styles override the default. Supported properties: `stroke`, `stroke-width`.\n\nWorks in both flowcharts and state diagrams.\n\n### XY Charts\n\nBar charts, line charts, and combinations — using Mermaid's `xychart-beta` syntax.\n\n**Bar chart:**\n\n```\nxychart-beta\n    title \"Monthly Revenue\"\n    x-axis [Jan, Feb, Mar, Apr, May, Jun]\n    y-axis \"Revenue ($K)\" 0 --> 500\n    bar [180, 250, 310, 280, 350, 420]\n```\n\n**Line chart:**\n\n```\nxychart-beta\n    title \"User Growth\"\n    x-axis [Jan, Feb, Mar, Apr, May, Jun]\n    line [1200, 1800, 2500, 3100, 3800, 4500]\n```\n\n**Combined bar + line:**\n\n```\nxychart-beta\n    title \"Sales with Trend\"\n    x-axis [Jan, Feb, Mar, Apr, May, Jun]\n    bar [300, 380, 280, 450, 350, 520]\n    line [300, 330, 320, 353, 352, 395]\n```\n\n**Horizontal orientation:**\n\n```\nxychart-beta horizontal\n    title \"Language Popularity\"\n    x-axis [Python, JavaScript, Java, Go, Rust]\n    bar [30, 25, 20, 12, 8]\n```\n\n**Axis configuration:**\n\n- Categorical x-axis: `x-axis [A, B, C]`\n- Numeric x-axis range: `x-axis 0 --> 100`\n- Axis titles: `x-axis \"Category\" [A, B, C]`\n- Y-axis range: `y-axis \"Score\" 0 --> 100`\n\n**Multi-series:** Add multiple `bar` and/or `line` declarations. Each series gets a distinct color from a monochromatic palette derived from the theme's accent color.\n\n### XY Chart Styling\n\nThe chart renderer follows a clean, minimal design philosophy inspired by Apple and Craft:\n\n- **Dot grid** — A subtle dot pattern fills the plot area instead of traditional solid grid lines\n- **Rounded bars** — All bar corners are rounded for a modern, polished look\n- **Smooth curves** — Line series use natural cubic spline interpolation, producing mathematically smooth curves through all data points (not straight segments or staircase steps)\n- **Floating labels** — No visible axis lines or tick marks; labels float freely for a clutter-free aesthetic\n- **Drop-shadow lines** — Each line series has a subtle shadow beneath it for depth\n- **Monochromatic palette** — Series 0 uses the theme's accent color; additional series get darker/lighter shades of the same hue with subtle hue drift, adapting automatically to light or dark backgrounds\n- **Interactive tooltips** — When rendered with `interactive: true`, hovering over bars or data points shows value tooltips. Multi-line tooltips appear when multiple series share an x-position\n- **Sparse line dots** — Lines with 12 or fewer data points show data point dots by default for readability\n- **Full theme support** — All 15 built-in themes (and custom themes) apply to charts. The accent color drives the entire series color palette\n- **Live theme switching** — Chart series colors are CSS custom properties (`--xychart-color-N`), so theme changes apply instantly without re-rendering\n\n---\n\n## ASCII Output\n\nFor terminal environments, CLI tools, or anywhere you need plain text, render to ASCII or Unicode box-drawing characters:\n\n```typescript\nimport { renderMermaidASCII } from 'beautiful-mermaid'\n\n// Unicode mode (default) — prettier box drawing\nconst unicode = renderMermaidASCII(`graph LR; A --> B`)\n\n// Pure ASCII mode — maximum compatibility\nconst ascii = renderMermaidASCII(`graph LR; A --> B`, { useAscii: true })\n```\n\n**Unicode output:**\n```\n┌───┐     ┌───┐\n│   │     │   │\n│ A │────►│ B │\n│   │     │   │\n└───┘     └───┘\n```\n\n**ASCII output:**\n```\n+---+     +---+\n|   |     |   |\n| A |---->| B |\n|   |     |   |\n+---+     +---+\n```\n\n### ASCII Options\n\n```typescript\nrenderMermaidASCII(diagram, {\n  useAscii: false,      // true = ASCII, false = Unicode (default)\n  paddingX: 5,          // Horizontal spacing between nodes\n  paddingY: 5,          // Vertical spacing between nodes\n  boxBorderPadding: 1,  // Padding inside node boxes\n  colorMode: 'auto',    // 'none' | 'auto' | 'ansi16' | 'ansi256' | 'truecolor' | 'html'\n  theme: { ... },       // Partial<AsciiTheme> — override default colors\n})\n```\n\n### ASCII XY Charts\n\nXY charts render to ASCII with dedicated chart-drawing characters:\n\n- **Bar charts** — `█` blocks (Unicode) or `#` (ASCII mode)\n- **Line charts** — Staircase routing with rounded corners: `╭╮╰╯│─` (Unicode) or `+|-` (ASCII)\n- **Multi-series** — Each series gets a distinct ANSI color from the theme's accent palette\n- **Legends** — Automatically shown when multiple series are present\n- **Horizontal charts** — Fully supported with categories on the y-axis\n\n---\n\n## API Reference\n\n### `renderMermaidSVG(text, options?): string`\n\nRender a Mermaid diagram to SVG. Synchronous. Auto-detects diagram type.\n\n**Parameters:**\n- `text` — Mermaid source code\n- `options` — Optional `RenderOptions` object\n\n**RenderOptions:**\n\n| Option | Type | Default | Description |\n|--------|------|---------|-------------|\n| `bg` | `string` | `#FFFFFF` | Background color (or CSS variable) |\n| `fg` | `string` | `#27272A` | Foreground color (or CSS variable) |\n| `line` | `string?` | — | Edge/connector color |\n| `accent` | `string?` | — | Arrow heads, highlights |\n| `muted` | `string?` | — | Secondary text, labels |\n| `surface` | `string?` | — | Node fill tint |\n| `border` | `string?` | — | Node stroke color |\n| `font` | `string` | `Inter` | Font family |\n| `transparent` | `boolean` | `false` | Render with transparent background |\n| `padding` | `number` | `40` | Canvas padding in px |\n| `nodeSpacing` | `number` | `24` | Horizontal spacing between sibling nodes |\n| `layerSpacing` | `number` | `40` | Vertical spacing between layers |\n| `componentSpacing` | `number` | `24` | Spacing between disconnected components |\n| `thoroughness` | `number` | `3` | Crossing minimization trials (1-7, higher = better but slower) |\n| `interactive` | `boolean` | `false` | Enable hover tooltips on XY chart bars and data points |\n\n**XY Charts:** Diagrams starting with `xychart-beta` are auto-detected — no separate function needed. The `accent` color option drives the chart series color palette.\n\n### `renderMermaidSVGAsync(text, options?): Promise<string>`\n\nAsync version of `renderMermaidSVG()`. Same output, returns a `Promise<string>`. Useful in async server handlers or data loaders.\n\n### `renderMermaidASCII(text, options?): string`\n\nRender a Mermaid diagram to ASCII/Unicode text. Synchronous.\n\n**AsciiRenderOptions:**\n\n| Option | Type | Default | Description |\n|--------|------|---------|-------------|\n| `useAscii` | `boolean` | `false` | Use ASCII instead of Unicode |\n| `paddingX` | `number` | `5` | Horizontal node spacing |\n| `paddingY` | `number` | `5` | Vertical node spacing |\n| `boxBorderPadding` | `number` | `1` | Inner box padding |\n| `colorMode` | `string` | `'auto'` | `'none'`, `'auto'`, `'ansi16'`, `'ansi256'`, `'truecolor'`, or `'html'` |\n| `theme` | `Partial<AsciiTheme>` | — | Override default colors for ASCII output |\n\n### `parseMermaid(text): MermaidGraph`\n\nParse Mermaid source into a structured graph object (for custom processing).\n\n### `fromShikiTheme(theme): DiagramColors`\n\nExtract diagram colors from a Shiki theme object.\n\n### `THEMES: Record<string, DiagramColors>`\n\nObject containing all 15 built-in themes.\n\n### `DEFAULTS: { bg: string, fg: string }`\n\nDefault colors (`#FFFFFF` / `#27272A`).\n\n---\n\n## Attribution\n\nThe ASCII rendering engine is based on [mermaid-ascii](https://github.com/AlexanderGrooff/mermaid-ascii) by Alexander Grooff. We ported it from Go to TypeScript and extended it with:\n\n- Sequence diagram support\n- Class diagram support\n- ER diagram support\n- Unicode box-drawing characters\n- Configurable spacing and padding\n\nThank you Alexander for the excellent foundation!\n\n---\n\n## License\n\nMIT — see [LICENSE](LICENSE) for details.\n\n---\n\n<div align=\"center\">\n\nBuilt with care by the team at [Craft](https://craft.do)\n\n</div>\n","readmeFilename":"README.md"}