{"id":46168241,"url":"https://github.com/rustic-ai/uni-db","last_synced_at":"2026-06-06T01:00:27.931Z","repository":{"id":333566534,"uuid":"1137659226","full_name":"rustic-ai/uni-db","owner":"rustic-ai","description":"Uni is a modern, embedded database that combines property graph (OpenCypher), vector search, and columnar storage (Lance) into a single, cohesive engine. It is designed for applications requiring local, fast, and multimodal data access, backed by object storage (S3/GCS) durability.","archived":false,"fork":false,"pushed_at":"2026-04-09T21:54:06.000Z","size":10405,"stargazers_count":17,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-09T23:27:24.029Z","etag":null,"topics":["agentic","columnar","columnar-storage","database","embedded-database","graph","graph-algorithms","graph-database","knowledge-management","python-library","rust-crate","vector-database"],"latest_commit_sha":null,"homepage":"https://rustic-ai.github.io/uni-db/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rustic-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-01-19T16:55:51.000Z","updated_at":"2026-04-09T21:54:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rustic-ai/uni-db","commit_stats":null,"previous_names":["rustic-ai/uni","rustic-ai/uni-db"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/rustic-ai/uni-db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustic-ai%2Funi-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustic-ai%2Funi-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustic-ai%2Funi-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustic-ai%2Funi-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rustic-ai","download_url":"https://codeload.github.com/rustic-ai/uni-db/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustic-ai%2Funi-db/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31859899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["agentic","columnar","columnar-storage","database","embedded-database","graph","graph-algorithms","graph-database","knowledge-management","python-library","rust-crate","vector-database"],"created_at":"2026-03-02T13:47:54.813Z","updated_at":"2026-06-06T01:00:27.911Z","avatar_url":"https://github.com/rustic-ai.png","language":"Rust","funding_links":[],"categories":["\u003ca name=\"Rust\"\u003e\u003c/a\u003eRust"],"sub_categories":[],"readme":"# Uni: Embedded Graph \u0026 Vector Database\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Rust](https://img.shields.io/badge/rust-1.75+-orange.svg)](https://www.rust-lang.org)\n[![Python](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org)\n\n**Uni** is an embedded database that combines a property graph (OpenCypher), vector search, and columnar storage (Lance) into a single engine. Designed for applications requiring local, fast, multimodal data access with object storage (S3/GCS/local) durability.\n\nPart of [The Rustic Initiative](https://www.rustic.ai) by [Dragonscale Industries Inc.](https://www.dragonscale.ai)\n\n## Key Features\n\n- **Embedded \u0026 Serverless:** Runs as a library within your application — no server process.\n- **Property Graph:** OpenCypher queries with MATCH, CREATE, WHERE, ORDER BY, LIMIT, and aggregations.\n- **Vector Search:** K-NN similarity search (L2, cosine) with pre-filter and threshold support.\n- **Columnar Storage:** Lance-backed persistence on local disk or object storage (S3/GCS).\n- **Graph Algorithms:** PageRank, Louvain, shortest path, and more via the built-in algorithm library.\n- **Forks:** Named, durable, writable graph branches with nesting, TTL, structural diff, and content-UID-keyed write-audit-publish promotion to primary. See [`website/docs/features/forks.md`](website/docs/features/forks.md).\n- **Rust \u0026 Python:** Native Rust crate and Python bindings (PyO3).\n\n## Getting Started\n\n### Rust\n\nAdd to your `Cargo.toml`:\n\n```toml\n[dependencies]\nuni-db = \"0.1.3\"\n```\n\n### Python\n\n```bash\npip install uni-db\n```\n\n```python\nimport uni_db\n\n# Open or create a database\ndb = uni_db.Database(\"./my_graph\")\n\n# Define schema\ndb.create_label(\"Person\")\ndb.add_property(\"Person\", \"name\", \"string\", False)\ndb.add_property(\"Person\", \"age\", \"int64\", True)\ndb.create_scalar_index(\"Person\", \"name\", \"btree\")\n\n# Write data\ndb.execute(\"CREATE (p:Person {name: 'Alice', age: 30})\")\ndb.execute(\"CREATE (p:Person {name: 'Bob', age: 25})\")\ndb.flush()\n\n# Query\nresults = db.query(\n    \"MATCH (p:Person) WHERE p.age \u003e $min RETURN p.name\",\n    {\"min\": 28},\n)\nprint(results)  # [{'p.name': 'Alice'}]\n```\n\n## Vector Search\n\n```python\n# Create schema with a vector property\ndb.create_label(\"Document\")\ndb.add_property(\"Document\", \"text\", \"string\", False)\ndb.add_property(\"Document\", \"embedding\", \"vector[128]\", True)\ndb.create_vector_index(\"Document\", \"embedding\", \"cosine\")\n\n# Insert data\ndb.execute(\"CREATE (d:Document {text: 'hello world', embedding: [0.1, 0.2, 0.3]})\")\ndb.flush()\n\n# K-NN search\nresults = db.query(\"\"\"\n    CALL uni.vector.query('Document', 'embedding', $vec, 10)\n    YIELD vid, distance\n    RETURN vid, distance\n    ORDER BY distance\n\"\"\", {\"vec\": my_embedding})\n\n# K-NN with pre-filter\nresults = db.query(\"\"\"\n    CALL uni.vector.query('Document', 'embedding', $vec, 10, 'category = \"tech\"')\n    YIELD vid, distance\n    RETURN vid, distance\n\"\"\", {\"vec\": my_embedding})\n```\n\n## Async API\n\n```python\nimport uni_db\n\ndb = await uni_db.AsyncDatabase.open(\"./my_graph\")\n\nawait db.execute(\"CREATE (p:Person {name: 'Alice', age: 30})\")\nresults = await db.query(\"MATCH (p:Person) RETURN p.name\")\n```\n\n## Python OGM (uni-pydantic)\n\n```bash\npip install uni-pydantic\n```\n\n```python\nfrom uni_pydantic import UniNode, UniSession, Field, Relationship, Vector\n\nclass Person(UniNode):\n    name: str\n    age: int | None = None\n    email: str = Field(unique=True, index=\"btree\")\n    embedding: Vector[128] = Field(metric=\"cosine\")\n    friends: list[\"Person\"] = Relationship(\"FRIEND_OF\", direction=\"both\")\n\nsession = UniSession(db)\nsession.register(Person)\nsession.sync_schema()\n\nalice = Person(name=\"Alice\", email=\"alice@example.com\")\nsession.add(alice)\nsession.commit()\n\nadults = session.query(Person).filter(Person.age \u003e= 18).order_by(Person.name).all()\n```\n\n## Documentation\n\n- [Full Documentation](https://rustic-ai.github.io/uni-db)\n- [GitHub Repository](https://github.com/rustic-ai/uni-db)\n\n## License\n\nApache 2.0 — see [LICENSE](LICENSE) for details.\n\n---\n\n**Uni** is developed by [Dragonscale Industries Inc.](https://www.dragonscale.ai) as part of [The Rustic Initiative](https://www.rustic.ai).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustic-ai%2Funi-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frustic-ai%2Funi-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustic-ai%2Funi-db/lists"}