{"id":26017598,"url":"https://github.com/postmannen/graphed","last_synced_at":"2026-02-28T03:08:06.114Z","repository":{"id":278954499,"uuid":"937112470","full_name":"postmannen/graphed","owner":"postmannen","description":"Graph database written in Go .... or rather a POC for a graph database written in Go :)","archived":false,"fork":false,"pushed_at":"2025-05-12T09:31:26.000Z","size":105,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-21T10:27:14.694Z","etag":null,"topics":["go","golang","graph","graph-database"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/postmannen.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,"zenodo":null}},"created_at":"2025-02-22T11:15:17.000Z","updated_at":"2025-05-09T03:21:30.000Z","dependencies_parsed_at":"2025-02-22T19:31:51.249Z","dependency_job_id":"3432960a-fc0e-407a-9610-242d9baecc6b","html_url":"https://github.com/postmannen/graphed","commit_stats":null,"previous_names":["postmannen/graphed"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/postmannen/graphed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmannen%2Fgraphed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmannen%2Fgraphed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmannen%2Fgraphed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmannen%2Fgraphed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/postmannen","download_url":"https://codeload.github.com/postmannen/graphed/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmannen%2Fgraphed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29923436,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"online","status_checked_at":"2026-02-28T02:00:07.010Z","response_time":90,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["go","golang","graph","graph-database"],"created_at":"2025-03-06T05:18:39.226Z","updated_at":"2026-02-28T03:08:06.109Z","avatar_url":"https://github.com/postmannen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# graphed\n\nGraph database written in Go .... or rather a POC for a graph database written in Go :)\n\n## Features\n\n### In-Memory and Persistent Storage\n\nGraphed supports both in-memory and persistent storage options:\n\n- **In-Memory Storage**: Fast, but data is lost when the program exits\n- **Persistent Storage**: Stores data on disk for durability and recovery\n\nThe persistent storage implementation includes:\n\n- Chunked storage for efficient I/O\n- Write-ahead logging (WAL) for crash recovery\n- In-memory indexes for fast lookups\n- Automatic chunk management\n\n## Usage\n\n### In-Memory Storage\n\n```go\n// Create a new in-memory store\nstore := graphed.NewNodeStore()\n\n// Add nodes\nstore.AddNode(\"root\", \"\")\nstore.AddNode(\"child\", \"root\")\n\n// Add values\nstore.AddToValues(\"child\", []byte(\"some data\"))\n\n// Retrieve nodes\nnode, err := store.Node(\"child\")\nif err != nil {\n    // Handle error\n}\n```\n\n### Persistent Storage\n\n```go\n// Create a new persistent store\ndataDir := \"/path/to/data\"\nstore, err := graphed.NewNodeStoreAdapter(dataDir)\nif err != nil {\n    // Handle error\n}\ndefer store.Close() // Important: Close to ensure data is flushed\n\n// Use the same API as in-memory store\nstore.AddNode(\"root\", \"\")\nstore.AddNode(\"child\", \"root\")\nstore.AddToValues(\"child\", []byte(\"persistent data\"))\n\n// Data will be saved to disk automatically\n```\n\n### Configuration Options\n\n```go\n// Custom chunk size (default is 100 nodes per chunk)\nstore, err := graphed.NewNodeStoreAdapter(dataDir, graphed.WithChunkSize(500))\n```\n\n## TODO/IDEAS\n\n### Traverse graph in any direction ?\n\n### HASH/Checksum of node, tamper protection ?\n\nNot sure if this makes sense, but a thing to check out further.\n\n### Built-in version control of node data ?\n\n### Query language ?\n\n### Storage Optimizations, Compression ?\n\n### Support for different storage backends, disk and memory\n\nImplemented, but should be refactored to to use the same function, and rather choose to have a storage interface as an argument.\n\n### Time\n\n- Time index?\n- Implement a dedicated time index/hashmap?\n- Time-bucket, query logs by day/hour ranges?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostmannen%2Fgraphed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpostmannen%2Fgraphed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostmannen%2Fgraphed/lists"}