mirror of
https://github.com/ModernRelay/omnigraph.git
synced 2026-06-21 02:28:07 +02:00
Polish README: add badges, fix typos, dedupe features, simplify CLI examples
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
da28dd57ef
commit
de79c19016
1 changed files with 27 additions and 83 deletions
110
README.md
110
README.md
|
|
@ -1,9 +1,18 @@
|
||||||
# Omnigraph
|
# Omnigraph
|
||||||
|
|
||||||
Omnigraph is a typed property graph database built on Lance. It combines
|
[](LICENSE)
|
||||||
schema-first graph modeling, typed queries and mutations, Git-style graph
|
[](rust-toolchain.toml)
|
||||||
workflows, and storage that runs equally well on a local directory or an
|
[](https://github.com/ModernRelay/omnigraph/actions/workflows/ci.yml)
|
||||||
`s3://` URI.
|
[](Cargo.toml)
|
||||||
|
|
||||||
|
Typed graph engine built for reasoning paths, not just storage.
|
||||||
|
Git-style workflows, schema-as-code graph modeling, S3-optimized.
|
||||||
|
|
||||||
|
## Use Cases
|
||||||
|
|
||||||
|
- On-prem & hybrid context graphs
|
||||||
|
- Backbone for multi-agentic research
|
||||||
|
- Enterprise knowledge systems
|
||||||
|
|
||||||
## Quick Install
|
## Quick Install
|
||||||
|
|
||||||
|
|
@ -43,95 +52,30 @@ If a previous run left objects under the same repo prefix but did not finish
|
||||||
initializing the repo, rerun with `RESET_REPO=1` or set `PREFIX` to a new
|
initializing the repo, rerun with `RESET_REPO=1` or set `PREFIX` to a new
|
||||||
value.
|
value.
|
||||||
|
|
||||||
## Good Fit For
|
## Omnigraph CORE
|
||||||
|
|
||||||
- Team knowledge graphs and internal context graphs
|
|
||||||
- Research, decisions, and evidence tracking
|
|
||||||
- Collaborative knowledge systems with reviewable changes
|
|
||||||
- Private self-hosted graph backends for local or on-prem AI tooling
|
|
||||||
|
|
||||||
## Why Omnigraph
|
|
||||||
|
|
||||||
- Typed schema, typed queries, and typed mutations
|
- Typed schema, typed queries, and typed mutations
|
||||||
|
- Schema-as-code, query validation and linting
|
||||||
- Git-style graph workflows: branches, commits, merges, and transactional runs
|
- Git-style graph workflows: branches, commits, merges, and transactional runs
|
||||||
- Local-first and S3-native storage with snapshot-pinned reads
|
- Local, on-prem & cloud S3-native storage with snapshot-pinned reads
|
||||||
- Graph traversal plus text, fuzzy, BM25, vector, and RRF search in one runtime
|
- Graph traversal + text, fuzzy, BM25, vector, and RRF search in one runtime
|
||||||
- Policy as code for server-side access control
|
- Policy-as-code for server-side access control
|
||||||
|
- Single CLI for multiple deployments
|
||||||
## Quick Start
|
|
||||||
|
|
||||||
From a checkout of this repo:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cargo build --workspace
|
|
||||||
|
|
||||||
cargo run -p omnigraph-cli -- init \
|
|
||||||
--schema crates/omnigraph/tests/fixtures/test.pg \
|
|
||||||
./repo.omni
|
|
||||||
|
|
||||||
cargo run -p omnigraph-cli -- load \
|
|
||||||
--data crates/omnigraph/tests/fixtures/test.jsonl \
|
|
||||||
./repo.omni
|
|
||||||
|
|
||||||
cargo run -p omnigraph-cli -- read \
|
|
||||||
./repo.omni \
|
|
||||||
--query crates/omnigraph/tests/fixtures/test.gq \
|
|
||||||
--name friends_of \
|
|
||||||
--params '{"name":"Alice"}'
|
|
||||||
```
|
|
||||||
|
|
||||||
`init` also scaffolds an `omnigraph.yaml` next to the repo if one does not
|
|
||||||
already exist.
|
|
||||||
|
|
||||||
## Run A Server
|
|
||||||
|
|
||||||
Serve the same repo over HTTP:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cargo run -p omnigraph-server -- ./repo.omni --bind 127.0.0.1:8080
|
|
||||||
```
|
|
||||||
|
|
||||||
Then query it remotely:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cargo run -p omnigraph-cli -- read \
|
|
||||||
--target http://127.0.0.1:8080 \
|
|
||||||
--query crates/omnigraph/tests/fixtures/test.gq \
|
|
||||||
--name get_person \
|
|
||||||
--params '{"name":"Alice"}'
|
|
||||||
```
|
|
||||||
|
|
||||||
Server routes include `/healthz`, `/snapshot`, `/export`, `/read`, `/change`,
|
|
||||||
`/schema/apply`, `/ingest`, `/branches`, `/runs`, and `/commits`.
|
|
||||||
|
|
||||||
To require auth, set `OMNIGRAPH_SERVER_BEARER_TOKEN` on the server and set the
|
|
||||||
matching bearer token env var in your CLI target config.
|
|
||||||
|
|
||||||
## Common Commands
|
## Common Commands
|
||||||
|
|
||||||
Core repo flow:
|
The same URI works for local paths, `s3://…`, or `http://host:port`.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
omnigraph init --schema ./schema.pg ./repo.omni
|
omnigraph init --schema ./schema.pg ./repo.omni
|
||||||
omnigraph load --data ./data.jsonl --mode overwrite ./repo.omni
|
omnigraph load --data ./data.jsonl ./repo.omni
|
||||||
omnigraph schema apply --schema ./next.pg ./repo.omni --json
|
omnigraph read --query ./queries.gq --name get_person --params '{"name":"Alice"}' ./repo.omni
|
||||||
omnigraph snapshot ./repo.omni --branch main --json
|
omnigraph change --query ./queries.gq --name insert_person --params '{"name":"Mina"}' ./repo.omni
|
||||||
omnigraph read --uri ./repo.omni --query ./queries.gq --name get_person --params '{"name":"Alice"}'
|
omnigraph branch create --from main feature-x ./repo.omni
|
||||||
omnigraph change --uri ./repo.omni --query ./queries.gq --name insert_person --params '{"name":"Mina","age":28}'
|
omnigraph branch merge feature-x --into main ./repo.omni
|
||||||
omnigraph branch create --uri ./repo.omni --from main feature-x
|
|
||||||
omnigraph branch merge --uri ./repo.omni feature-x --into main
|
|
||||||
```
|
```
|
||||||
|
|
||||||
More CLI examples, config patterns, and admin commands live in
|
See [docs/cli.md](docs/cli.md) for schema apply, snapshots, ingest, runs, and policy commands.
|
||||||
[docs/cli.md](docs/cli.md).
|
|
||||||
|
|
||||||
## Production Features
|
|
||||||
|
|
||||||
- Branches, commits, merge-base-aware graph merges, and transactional runs
|
|
||||||
- Snapshot-pinned reads across local and S3-backed repos
|
|
||||||
- Traversal plus text, fuzzy, BM25, vector, and RRF search
|
|
||||||
- Axum server for reads, changes, export, branches, commits, and runs
|
|
||||||
- Cedar-based server-side authorization
|
|
||||||
|
|
||||||
## Docs
|
## Docs
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue