Minigraf is an embedded bitemporal graph database that stores data in one file.
Add Minigraf to a Rust application to query a local graph and its history. No database server is required.
; Store facts with valid-time ranges
(transact [[:alice :works-at :acme {:valid-from "2022-01-01"}]
[:alice :works-at :globo {:valid-from "2024-06-01"}]])
; Ask what was true at any point in the past
(query [:find ?company
:valid-at "2023-06-01"
:where [?e :name "Alice"]
[?e :works-at ?company]])
For each fact, Minigraf tracks when it was true and when it was recorded. You can query either time.
| Repo | Description |
|---|---|
| minigraf | Core library (Rust) |
| minigraf-python | Python bindings |
| minigraf-node | Node.js bindings |
| minigraf-wasm | Browser / WASI bindings |
| minigraf-java | JVM bindings |
| minigraf-android | Android bindings |
| minigraf-swift | Swift / iOS bindings |
| minigraf-c | C bindings |
| minigraf-playground | Browser playground |
| minigraf-inspector | .graph file inspector |
| minigraf-visualizer | Time-travel visualizer |
| minigraf-examples | Examples and cookbooks |
| temporal_reasoning | MCP server for AI agents |