{"id":49296325,"url":"https://github.com/antonygiomarxdev/rango","last_synced_at":"2026-04-29T07:00:58.103Z","repository":{"id":353271665,"uuid":"1218391557","full_name":"antonygiomarxdev/rango","owner":"antonygiomarxdev","description":"Durable document memory for stateful AI systems. Local-first state · Durable history · Incremental sync. Written in Rust.","archived":false,"fork":false,"pushed_at":"2026-04-26T02:02:55.000Z","size":348,"stargazers_count":2,"open_issues_count":21,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-26T04:02:21.740Z","etag":null,"topics":["agent-memory","ai-agents","bson","copilot","database","document-database","llm","local-first","memory","rust","sync"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antonygiomarxdev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-22T20:39:15.000Z","updated_at":"2026-04-26T00:29:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/antonygiomarxdev/rango","commit_stats":null,"previous_names":["antonygiomarxdev/rango"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/antonygiomarxdev/rango","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonygiomarxdev%2Frango","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonygiomarxdev%2Frango/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonygiomarxdev%2Frango/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonygiomarxdev%2Frango/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antonygiomarxdev","download_url":"https://codeload.github.com/antonygiomarxdev/rango/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonygiomarxdev%2Frango/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32323215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent-memory","ai-agents","bson","copilot","database","document-database","llm","local-first","memory","rust","sync"],"created_at":"2026-04-26T04:00:22.978Z","updated_at":"2026-04-27T05:00:59.363Z","avatar_url":"https://github.com/antonygiomarxdev.png","language":"Rust","readme":"# Rango\n\nDurable memory substrate for stateful AI systems.\n\nRango is memory-first, document-native, and local-first. It is not a generic database product and not a workflow product.\n\n## Product Position\n\nRango is built as infrastructure below agents and apps:\n\n- canonical state and history for operational memory\n- append-only events plus materialized current state\n- local-first writes with incremental sync\n- clear layer boundaries for future semantic/retrieval projections\n\n## v1 Scope\n\nIncluded in v1:\n\n- embedded local engine\n- append-only oplog\n- current state store\n- simple indexes and deterministic replay\n- snapshots/checkpoints\n- sync foundations (push/pull + checkpoint progression)\n- tenant/namespace isolation primitives\n\nOut of v1 core:\n\n- vector-native retrieval\n- graph reasoning engine\n- workflow/orchestration semantics\n- dynamic plugin loading in core\n\n## Install\n\n### Option 1: GitHub Releases (recommended for product teams)\n\nDownload the latest platform archive from [GitHub Releases](https://github.com/antonygiomarxdev/rango/releases), then add the extracted binaries to your `PATH`:\n\n- `rango` (CLI)\n- `rango-server` (sync hub)\n\n### Option 2: Build/install from source\n\n```bash\ncargo install --path crates/cli\ncargo install --path crates/server\n```\n\n### Option 3: Run directly from workspace\n\n```bash\ncargo run -p rango-cli -- --help\ncargo run -p rango-server -- --help\n```\n\n## Quick Start\n\n### 1) Local memory workspace via CLI\n\n```bash\nrango init ./memory\nrango inspect ./memory\n```\n\nImport/export test:\n\n```bash\nrango import --path ./memory --collection events ./events.jsonl\nrango export --path ./memory --collection events --output ./events-export.jsonl\nrango doctor ./memory\n```\n\n### 2) Embed as a Rust library\n\n```rust\nuse std::sync::Arc;\n\nuse bson::doc;\nuse rango_oplog::FileOplog;\nuse rango_sdk::RangoClient;\nuse rango_storage::RedbStorage;\n\nfn main() -\u003e anyhow::Result\u003c()\u003e {\n    let root = std::path::PathBuf::from(\"./memory\");\n    std::fs::create_dir_all(\u0026root)?;\n\n    let storage = Arc::new(RedbStorage::open(root.join(\"data.redb\"))?);\n    let oplog = Arc::new(FileOplog::new(root.join(\"oplog.rgo\"))?);\n    let client = RangoClient::open(storage, oplog, \"agent-node-1\")?;\n\n    let state = client.collection(\"agent_state\");\n    let id = state.insert_one(doc! {\n        \"tenant_id\": \"acme\",\n        \"namespace\": \"planner\",\n        \"status\": \"running\",\n        \"step\": \"collect-context\"\n    })?;\n\n    let current = state.find_one(\u0026id)?;\n    println!(\"current={current:?}\");\n\n    Ok(())\n}\n```\n\n### 3) Run a sync hub\n\nStart server:\n\n```bash\nrango-server --bind 0.0.0.0 --port 8080 --token dev-token --oplog-path ./server-oplog.rgo\n```\n\nSync a workspace:\n\n```bash\nrango sync ./memory --server http://localhost:8080 --token dev-token --node-id node-a\n```\n\n## Integration Modes for Products Built on Rango\n\n1. Embedded mode: each product instance embeds Rango locally for offline durability.\n2. Hub-and-spoke mode: product instances sync to a central `rango-server` hub.\n3. Multi-product mode: each product gets tenant/namespace isolation and shared sync topology.\n\nThis allows products other than OpenClaw to use the same substrate with the same core contract.\n\n## Integrations\n\n- OpenClaw: [integration guide](docs/integrations/openclaw.md) + [memory contract](docs/integrations/openclaw-memory-contract.json)\n- Generic product integration pattern: [docs index](docs/README.md)\n\n## Release Naming\n\n- Stable tags: `vX.Y.Z` -\u003e GitHub release name `Rango vX.Y.Z`\n- Main prereleases: `vX.Y.Z-rango-YYYYMMDD-HHMM-SHA` -\u003e GitHub release name `Rango vX.Y.Z-rango.YYYYMMDD-HHMM+SHA`\n- Channel tags:\n  - stable releases move `latest`\n  - prereleases from `main` move `nightly` and `beta`\n\n## Validation\n\nRun full checks:\n\n```bash\ncargo check --workspace\ncargo test --workspace\n```\n\nRun end-to-end smoke script:\n\n```powershell\npowershell -ExecutionPolicy Bypass -File scripts/smoke-e2e.ps1\n```\n\n## Workspace Crates\n\n- `rango-types`: shared canonical types\n- `rango-core`: engine + deterministic apply/replay\n- `rango-storage`: storage engine trait + `redb` backend + crypto\n- `rango-oplog`: append-only operation log\n- `rango-sync`: sync queue/checkpoint/scheduler/client\n- `rango-server`: HTTP sync hub\n- `rango-sdk`: embeddable Rust API\n- `rango-cli`: operator and local tooling\n\n## Documentation\n\n- [Docs Index](docs/README.md)\n- [Roadmap](ROADMAP.md)\n- [Vision](docs/vision.md)\n- [Architecture Overview](docs/architecture/overview.md)\n- [Memory Model](docs/architecture/memory/model.md)\n- [API Reference](docs/reference/api.md)\n- [Sync Protocol](docs/reference/sync-protocol.md)\n- [OpenClaw Integration Guide](docs/integrations/openclaw.md)\n- [Work Management Workflow](docs/operations/workflow.md)\n- [Security](docs/operations/security.md)\n- [ADRs](docs/adr/)\n\n## License\n\nSource-available under [Business Source License 1.1](LICENSE) with project-specific additional use grant.\nSee [LICENSING.md](LICENSING.md) for practical policy.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonygiomarxdev%2Frango","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantonygiomarxdev%2Frango","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonygiomarxdev%2Frango/lists"}