{"repo":"ekzhang/graphon","free":true,"listed":false,"github":"https://github.com/ekzhang/graphon","clone":"git clone https://github.com/ekzhang/graphon.git","description":"🌌 A very small graph database in Zig","language":"Zig","stars":35,"topics":["database","gql","graph-database","zig"],"license":null,"category":"databases-storage","readme_excerpt":"Graphon A very small graph database in Zig. Can be queried with GQL, the ISO-standard graph query language. Quickstart Clone the codebase, download Zig 0.16 plus RocksDB, and run zig build to generate the zig-out/bin/ folder. Running a server Graphon is a single binary that implements a subset of the GQL standard. You can query it either from Neo4j client libraries, or by making an HTTP request in any language. There is a graphon-cli binary for connecting to a running server. Features Graphon implements the GQL language for graph queries, which is defined in ISO/IEC 39075:2024. This standard was recently published in April 2024, so there's not many resources on it yet. You can find some documentation on the Google Spanner website. A simple graph query looks like this: GQL is a powerful language. Here is a larger example that demonstrates a few features: - Pattern Matching: Find a variable-length path (trail) between follower and influencer nodes, allowing for a chain of connections between one and three Follows relationships deep. - Complex Filtering: Uses the WHERE clause to filter for influencers who have created popular posts (with more than 100 likes). - Aggregation: OPTIONAL MATCH finds recent posts created by the influencer to enrich the output, and WITH implicitly aggregates them. - Structured Output: Returns distinct named results including names, the titles of popular posts, the count of recent posts, and the entire trail of connections. - Ordering and Limiting: Orde","default_branch":null,"files":null,"tree":[],"storefront":"/r/ekzhang","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ekzhang/graphon/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}