{"id":22222058,"url":"https://github.com/fabiospampinato/graphviz-wasm","last_synced_at":"2025-10-19T20:34:04.974Z","repository":{"id":57253765,"uuid":"442231500","full_name":"fabiospampinato/graphviz-wasm","owner":"fabiospampinato","description":"A port of Graphviz to WASM.","archived":false,"fork":false,"pushed_at":"2024-04-05T00:07:07.000Z","size":974,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-20T00:13:50.484Z","etag":null,"topics":["dot","graphviz","wasm"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fabiospampinato.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"fabiospampinato","custom":"https://www.paypal.me/fabiospampinato"}},"created_at":"2021-12-27T17:45:54.000Z","updated_at":"2024-09-09T18:25:41.000Z","dependencies_parsed_at":"2024-06-19T13:26:31.720Z","dependency_job_id":"ccc685ee-6a12-4c80-ac18-388ef5f2b34f","html_url":"https://github.com/fabiospampinato/graphviz-wasm","commit_stats":{"total_commits":21,"total_committers":1,"mean_commits":21.0,"dds":0.0,"last_synced_commit":"609e7486c8d092a6d9a81d5d5e46bff31376795d"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fgraphviz-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fgraphviz-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fgraphviz-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fgraphviz-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiospampinato","download_url":"https://codeload.github.com/fabiospampinato/graphviz-wasm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227817017,"owners_count":17824200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dot","graphviz","wasm"],"created_at":"2024-12-02T23:16:43.648Z","updated_at":"2025-10-19T20:34:04.879Z","avatar_url":"https://github.com/fabiospampinato.png","language":"TypeScript","funding_links":["https://github.com/sponsors/fabiospampinato","https://www.paypal.me/fabiospampinato"],"categories":[],"sub_categories":[],"readme":"# Graphviz WASM\n\nA port of Graphviz to WASM.\n\nNote: this is currently just a light wrapper around [`@hpcc-js/wasm`](https://www.npmjs.com/package/@hpcc-js/wasm), you might want to consider just using that directly. The plan is to eventually generate custom bindings to graphviz, optimized for speed and size, and depending on your use case you'd import the right one.\n\n## Install\n\n```sh\nnpm install --save graphviz-wasm\n```\n\n## Usage\n\nThis is how you'd use the library:\n\n```ts\nimport graphviz from 'graphviz-wasm';\n\nawait graphviz.loadWASM (); // First of all you need to load the WASM instance and wait for it\n\nconst dot = `\n  strict graph {\n    a -- b\n    a -- b\n    b -- a [color=blue]\n  }\n`;\n\nconst svg = graphviz.layout ( dot );\n```\n\nThis is the interface of the `layout` method:\n\n```ts\ntype Engine = 'circo' | 'dot' | 'fdp' | 'neato' | 'osage' | 'patchwork' | 'sfdp' | 'twopi';\n\ntype Format = 'dot_json' | 'dot' | 'json' | 'plain-ext' | 'plain' | 'svg' | 'xdot_json';\n\ntype layout = ( source: string, format: Format = 'svg', engine: Engine = 'dot' ) =\u003e string;\n```\n\n## License\n\n- **Graphviz**: EPL © [Graphviz](https://gitlab.com/graphviz/graphviz/-/blob/main/LICENSE).\n- **WASM Port**: Apache © [hpcc-js-wasm](https://github.com/hpcc-systems/hpcc-js-wasm/blob/trunk/LICENSE).\n- **Rest**: MIT © Fabio Spampinato.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fgraphviz-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiospampinato%2Fgraphviz-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fgraphviz-wasm/lists"}