{"_id":"@aigentive/wire-renderers","name":"@aigentive/wire-renderers","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.2":{"name":"@aigentive/wire-renderers","version":"1.0.2","description":"Wire — server/static renderers and framework-neutral adapter output.","license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/aigentive/wirediagram.git","directory":"packages/wire-renderers"},"type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"clean":"node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"","build":"npm run clean && tsc -p tsconfig.json","typecheck":"tsc --noEmit -p tsconfig.json"},"dependencies":{"@aigentive/wire-core":"^1.0.4"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_id":"@aigentive/wire-renderers@1.0.2","gitHead":"12594c6937561cfc522c5692fa236a1882d51c5e","bugs":{"url":"https://github.com/aigentive/wirediagram/issues"},"homepage":"https://github.com/aigentive/wirediagram#readme","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-aLJH5TWDLTeMVn0L+Rzr4rxw8Ne9XFhq1Qu+ikszsj1bHAya2HBRyvzgfFppxotXyr9X0nJJHZUV7H8KnihUyw==","shasum":"c34e912900ebe28d9b9f677f72142b6c214b478b","tarball":"https://registry.npmjs.org/@aigentive/wire-renderers/-/wire-renderers-1.0.2.tgz","fileCount":14,"unpackedSize":30621,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aigentive%2fwire-renderers@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC1H8FsXg1DtrZYiphXIblO1ggOG13reLq+4KRbcqADMwIhAKidDpxQ4ivGyk+Hv9HdzT4ou5gJ1C+rWf8f5vdiV8BX"}]},"_npmUser":{"name":"themefy","email":"adrian@themefy.io"},"directories":{},"maintainers":[{"name":"lazabogdan","email":"laza.bogdan@macro-net.ro"},{"name":"themefy","email":"adrian@themefy.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/wire-renderers_1.0.2_1783027530519_0.20150380292383807"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-02T21:25:30.274Z","1.0.2":"2026-07-02T21:25:30.662Z","modified":"2026-07-02T21:25:31.162Z"},"maintainers":[{"name":"lazabogdan","email":"laza.bogdan@macro-net.ro"},{"name":"themefy","email":"adrian@themefy.io"}],"description":"Wire — server/static renderers and framework-neutral adapter output.","homepage":"https://github.com/aigentive/wirediagram#readme","repository":{"type":"git","url":"git+https://github.com/aigentive/wirediagram.git","directory":"packages/wire-renderers"},"bugs":{"url":"https://github.com/aigentive/wirediagram/issues"},"license":"Apache-2.0","readme":"# @aigentive/wire-renderers\n\nRender Wire diagrams. Two surfaces:\n\n1. **`renderToSvg(diagram)`** — pure server-side SVG renderer. No React, no DOM. Used by the MCP server for `render_svg` and by the CLI for `wire export`.\n2. **`toReactFlow(diagram)`** — compatibility adapter that returns React Flow-shaped `nodes` + `edges` for apps that still maintain their own third-party graph canvas.\n\n## Install\n\n```bash\nnpm install @aigentive/wire-renderers\n```\n\n## Use\n\n```ts\nimport { renderToSvg } from \"@aigentive/wire-renderers\";\nimport { writeFileSync } from \"node:fs\";\n\nconst svg = renderToSvg(diagram, { padding: 24, background: \"#fafafa\" });\nwriteFileSync(\"./diagram.svg\", svg);\n```\n\nFor React apps, prefer the native `<WireCanvas>` from `@aigentive/wire-react`. Use `toReactFlow` only as an interop adapter for an app that already owns a React Flow-compatible canvas.\n\n## License\n\nApache-2.0\n","readmeFilename":"README.md","_rev":"1-e4329411e8a97d01fea09590b985ace4"}