{"id":18001642,"url":"https://github.com/rigtorp/go-graphviz","last_synced_at":"2026-01-18T18:32:18.400Z","repository":{"id":104245007,"uuid":"594615127","full_name":"rigtorp/go-graphviz","owner":"rigtorp","description":"Graphviz wrapped for Go using WebAssembly. No cgo required.","archived":false,"fork":false,"pushed_at":"2023-04-04T03:04:15.000Z","size":333,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T07:09:16.042Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rigtorp.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}},"created_at":"2023-01-29T04:47:40.000Z","updated_at":"2024-07-30T03:01:21.000Z","dependencies_parsed_at":"2024-02-06T03:15:13.584Z","dependency_job_id":null,"html_url":"https://github.com/rigtorp/go-graphviz","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rigtorp/go-graphviz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rigtorp%2Fgo-graphviz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rigtorp%2Fgo-graphviz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rigtorp%2Fgo-graphviz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rigtorp%2Fgo-graphviz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rigtorp","download_url":"https://codeload.github.com/rigtorp/go-graphviz/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rigtorp%2Fgo-graphviz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28547218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T14:59:57.589Z","status":"ssl_error","status_checked_at":"2026-01-18T14:59:46.540Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-10-29T23:18:17.843Z","updated_at":"2026-01-18T18:32:18.383Z","avatar_url":"https://github.com/rigtorp.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Graphviz for Go\n\nThis package wraps [Graphviz](https://graphviz.org/) as a Go package. It doesn't\nrely on cgo or an external binary, instead using the\n[wazero](https://wazero.io/) WebAssembly runtime to embed Graphviz.\n\nWazero is configured to sandbox Graphviz such that Graphviz only has access to\nthe input and output data.\n\n## Performance\n\nFor a small Graphviz graph, go-graphviz takes about 51ms:\n\n```shell\n$ go test -test.bench .\ngoos: linux\ngoarch: amd64\npkg: github.com/rigtorp/go-graphviz\ncpu: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz\nBenchmarkGraphviz-8           24          51285746 ns/op\nPASS\nok      github.com/rigtorp/go-graphviz  3.057s\n```\n\n## Building Graphviz for WASM\n\nDownload [wasi-sdk](https://github.com/WebAssembly/wasi-sdk) and extract it\nsomewhere.\n\nNext build Graphviz:\n\n```shell\nmkdir build\ncd build\ncmake .. -DWASI_SDK_PREFIX=/path/to/wasi/sdk\nninja\n```\n\n## Acknowledgements\n\nI got the idea for this approach of embedding an external program in Go using\nWebAssembly from the blog post [The carcinization of Go\nprograms](https://xeiaso.net/blog/carcinization-golang).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frigtorp%2Fgo-graphviz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frigtorp%2Fgo-graphviz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frigtorp%2Fgo-graphviz/lists"}