{"id":37089467,"url":"https://github.com/themanticoreproject/gopengraph","last_synced_at":"2026-01-14T10:58:19.946Z","repository":{"id":321022208,"uuid":"1084158370","full_name":"TheManticoreProject/gopengraph","owner":"TheManticoreProject","description":"A Go library to create BloodHound OpenGraphs easily","archived":false,"fork":false,"pushed_at":"2025-11-21T12:34:59.000Z","size":577,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-21T14:31:54.065Z","etag":null,"topics":["bloodhound-opengraph","library"],"latest_commit_sha":null,"homepage":"https://bloodhound.specterops.io/opengraph/overview","language":"Go","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/TheManticoreProject.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"p0dalirius","patreon":"Podalirius"}},"created_at":"2025-10-27T09:57:07.000Z","updated_at":"2025-11-21T12:35:00.000Z","dependencies_parsed_at":"2025-10-27T11:39:43.263Z","dependency_job_id":null,"html_url":"https://github.com/TheManticoreProject/gopengraph","commit_stats":null,"previous_names":["themanticoreproject/gopengraph"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/TheManticoreProject/gopengraph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheManticoreProject%2Fgopengraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheManticoreProject%2Fgopengraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheManticoreProject%2Fgopengraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheManticoreProject%2Fgopengraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheManticoreProject","download_url":"https://codeload.github.com/TheManticoreProject/gopengraph/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheManticoreProject%2Fgopengraph/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28417784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["bloodhound-opengraph","library"],"created_at":"2026-01-14T10:58:19.219Z","updated_at":"2026-01-14T10:58:19.942Z","avatar_url":"https://github.com/TheManticoreProject.png","language":"Go","funding_links":["https://github.com/sponsors/p0dalirius","https://patreon.com/Podalirius"],"categories":[],"sub_categories":[],"readme":"![](./.github/banner.png)\n\n\u003cp align=\"center\"\u003e\n  A Go library to create BloodHound OpenGraphs easily\n  \u003cbr\u003e\n  \u003ca href=\"https://pkg.go.dev/github.com/TheManticoreProject/bhopengraph\"\u003e\u003cimg alt=\"Go Reference\" src=\"https://pkg.go.dev/badge/github.com/TheManticoreProject/bhopengraph.svg\"\u003e\u003c/a\u003e\n  \u003cimg alt=\"GitHub release (latest by date)\" src=\"https://img.shields.io/github/v/release/TheManticoreProject/gopengraph\"\u003e\n  \u003ca href=\"https://twitter.com/intent/follow?screen_name=podalirius_\" title=\"Follow\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/podalirius_?label=Podalirius\u0026style=social\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.youtube.com/c/Podalirius_?sub_confirmation=1\" title=\"Subscribe\"\u003e\u003cimg alt=\"YouTube Channel Subscribers\" src=\"https://img.shields.io/youtube/channel/subscribers/UCF_x5O7CSfr82AfNVTKOv_A?style=social\"\u003e\u003c/a\u003e\n  \u003cimg height=21px src=\"https://img.shields.io/badge/Get bloodhound:-191646\"\u003e \u003ca href=\"https://specterops.io/bloodhound-enterprise/\" title=\"Get BloodHound Enterprise\"\u003e\u003cimg alt=\"Get BloodHound Enterprise\" height=21px src=\"https://mintlify.s3.us-west-1.amazonaws.com/specterops/assets/enterprise-edition-pill-tag.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://specterops.io/bloodhound-community-edition/\" title=\"Get BloodHound Community\"\u003e\u003cimg alt=\"Get BloodHound Community\" height=21px src=\"https://mintlify.s3.us-west-1.amazonaws.com/specterops/assets/community-edition-pill-tag.svg\"\u003e\u003c/a\u003e\n  \u003cbr\u003e\n  \u003cbr\u003e\n  This library also exists in: \u003ca href=\"https://github.com/TheManticoreProject/gopengraph\"\u003eGo\u003c/a\u003e | \u003ca href=\"https://github.com/p0dalirius/bhopengraph\"\u003ePython\u003c/a\u003e\n\u003c/p\u003e\n\n## Features\n\nThis module provides Go types and helpers for creating and managing graph structures that are compatible with BloodHound OpenGraph. The APIs follow the [BloodHound OpenGraph schema](https://bloodhound.specterops.io/opengraph/schema) and [best practices](https://bloodhound.specterops.io/opengraph/best-practices).\n\nIf you don't know about BloodHound OpenGraph yet, a great introduction can be found here: [https://bloodhound.specterops.io/opengraph/best-practices](https://bloodhound.specterops.io/opengraph/best-practices)\n\n## Installation\n\nInstall with:\n\n```bash\ngo get github.com/TheManticoreProject/bhopengraph\n```\n\n## Examples\n\nHere is an example of a Go program using the [bhopengraph](https://github.com/TheManticoreProject/bhopengraph) Go library to model the [Minimal Working JSON](https://bloodhound.specterops.io/opengraph/schema#minimal-working-json) from the OpenGraph Schema documentation:\n\n```go\npackage main\n\nimport (\n\t\"github.com/TheManticoreProject/bhopengraph\"\n\t\"github.com/TheManticoreProject/bhopengraph/edge\"\n\t\"github.com/TheManticoreProject/bhopengraph/node\"\n\t\"github.com/TheManticoreProject/bhopengraph/properties\"\n)\n\nfunc main() {\n\t// Create an OpenGraph instance\n\tgraph := bhopengraph.NewOpenGraph(\"Base\")\n\n\t// Create nodes\n\tbobProps := properties.NewProperties()\n\tbobProps.SetProperty(\"displayname\", \"bob\")\n\tbobProps.SetProperty(\"property\", \"a\")\n\tbobProps.SetProperty(\"objectid\", \"123\")\n\tbobProps.SetProperty(\"name\", \"BOB\")\n\n\tbobNode, _ := node.NewNode(\"123\", []string{\"Person\", \"Base\"}, bobProps)\n\n\taliceProps := properties.NewProperties()\n\taliceProps.SetProperty(\"displayname\", \"alice\")\n\taliceProps.SetProperty(\"property\", \"b\")\n\taliceProps.SetProperty(\"objectid\", \"234\")\n\taliceProps.SetProperty(\"name\", \"ALICE\")\n\n\taliceNode, _ := node.NewNode(\"234\", []string{\"Person\", \"Base\"}, aliceProps)\n\n\t// Add nodes to graph\n\tgraph.AddNode(bobNode)\n\tgraph.AddNode(aliceNode)\n\n\t// Create edge: Bob knows Alice\n\tknowsEdge, _ := edge.NewEdge(\n\t\tbobNode.GetID(),   // Bob is the start\n\t\taliceNode.GetID(), // Alice is the end\n\t\t\"Knows\",\n\t\tnil,\n\t)\n\n\t// Add edge to graph\n\tgraph.AddEdge(knowsEdge)\n\n\t// Export to file\n\tgraph.ExportToFile(\"minimal_working_json.json\")\n}\n```\n\nThis gives us the following [Minimal Working JSON](https://bloodhound.specterops.io/opengraph/schema#minimal-working-json) as per the documentation:\n\n```json\n{\n  \"graph\": {\n    \"edges\": [\n      {\n        \"end\": {\n          \"match_by\": \"id\",\n          \"value\": \"234\"\n        },\n        \"kind\": \"Knows\",\n        \"start\": {\n          \"match_by\": \"id\",\n          \"value\": \"123\"\n        }\n      }\n    ],\n    \"nodes\": [\n      {\n        \"id\": \"123\",\n        \"kinds\": [\n          \"Person\",\n          \"Base\"\n        ],\n        \"properties\": {\n          \"displayname\": \"bob\",\n          \"name\": \"BOB\",\n          \"objectid\": \"123\",\n          \"property\": \"a\"\n        }\n      },\n      {\n        \"id\": \"234\",\n        \"kinds\": [\n          \"Person\",\n          \"Base\"\n        ],\n        \"properties\": {\n          \"displayname\": \"alice\",\n          \"name\": \"ALICE\",\n          \"objectid\": \"234\",\n          \"property\": \"b\"\n        }\n      }\n    ]\n  },\n  \"metadata\": {\n    \"source_kind\": \"Base\"\n  }\n}\n```\n\n## Contributing\n\nPull requests are welcome. Feel free to open an issue if you want to add other features.\n\n## References\n\n- [BloodHound OpenGraph Best Practices](https://bloodhound.specterops.io/opengraph/best-practices)\n- [BloodHound OpenGraph Schema](https://bloodhound.specterops.io/opengraph/schema)\n- [BloodHound OpenGraph API](https://bloodhound.specterops.io/opengraph/api)\n- [BloodHound OpenGraph Custom Icons](https://bloodhound.specterops.io/opengraph/custom-icons)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemanticoreproject%2Fgopengraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthemanticoreproject%2Fgopengraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemanticoreproject%2Fgopengraph/lists"}