A lightweight, embeddable property graph engine with a fluent query DSL.
KnitKnot lets you model and explore relationships using an intuitive CLI and REPL. Think of it as SQLite for property graphs — simple, fast, and embeddable.
knitknot repl
knitknot> Find('User').Has('has_skill', 'Go').Where('n.age', '>', 30)- Organizational graphs
- Skill/knowledge mapping
- Event relationship analysis
- Embedded analytics
- Fluent DSL:
Find(...),Has(...),Where(...) - REPL Shell: Interactive exploration with
EXPLAIN,DEFINE VERB - Persistence: Save/load to .gob binary format
- Export: Generate DOT for Graphviz visualization
- Custom Verbs: Define your own relationship semantics (teaches, owns, etc.)
- Subgraph Scoping: Query within domains (org, skills)
- CLI & API: Use as tool or embed in Go apps
# Install
go install github.com/aprksy/knitknot@latest
# Start REPL
knitknot repl
# Run query
knitknot query "Find('User')" --file org.gob
# Export to DOT
knitknot export --format dot > graph.dot
dot -Tsvg graph.dot > graph.svg