📊Minigraf: A Single-File Graph DB with Datalog Queries
A new graph DB that runs anywhere, including the browser
TL;DR
Minigraf is a single-file graph database that supports Datalog queries and bi-temporal time travel. It's perfect for mobile, native, and web apps, with zero-configuration setup and recursive rules.
Minigraf is an embedded graph database that supports Datalog queries and bi-temporal time travel. It's designed to be used in the browser, mobile apps, and as a native database, making it incredibly versatile. Developers should care because Minigraf simplifies complex graph queries and supports recursive rules, natural graph traversal, and window functions. It's perfect for applications that need to store and query graph data efficiently. Minigraf supports embeddability anywhere, including native, WASM, mobile, and IoT platforms, and has a zero-configuration setup, requiring only the `Minigraf::open()` function to start using the database.
Key Points
Minigraf supports Datalog queries, making it fundamentally better for graphs than SQL-like languages.
Minigraf's Datalog language is recursive by design, making multi-hop traversals natural and not an afterthought.
Minigraf has a prepared statement feature that allows for parsing and planning once, and executing thousands of times.
Minigraf's graph-native design makes it easy to store and query graph data, with over 40 years of research backing it.
Minigraf's LLM-friendly design makes it easy for AI coding assistants to generate correctly from a few examples.
Why It Matters
If you're building a mobile app or web application that needs to store and query graph data, Minigraf's single-file design and Datalog support make it a perfect fit. It simplifies complex graph queries and supports recursive rules, natural graph traversal, and window functions, making it easier to implement and maintain.
Comments
Be the first to comment
Enjoyed this article?
Get it daily. 7am. Free. Reads in 5 minutes.
Join 3,569 builders reading daily.