{"id":13634793,"url":"https://github.com/Rustixir/darkbird","last_synced_at":"2025-04-18T23:33:02.286Z","repository":{"id":48168005,"uuid":"487314772","full_name":"Rustixir/darkbird","owner":"Rustixir","description":"In-memory database inspired by erlang mnesia","archived":false,"fork":false,"pushed_at":"2024-04-14T19:55:34.000Z","size":252,"stargazers_count":403,"open_issues_count":0,"forks_count":9,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-04-24T05:34:47.290Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rustixir.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}},"created_at":"2022-04-30T15:36:57.000Z","updated_at":"2024-06-02T10:03:45.281Z","dependencies_parsed_at":"2024-01-31T14:25:25.450Z","dependency_job_id":"732e5452-7a1b-4c94-84cc-05d015a42d71","html_url":"https://github.com/Rustixir/darkbird","commit_stats":{"total_commits":112,"total_committers":7,"mean_commits":16.0,"dds":0.5803571428571428,"last_synced_commit":"9b6231808bbc5377b2096df0026d46a4e7864e22"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rustixir%2Fdarkbird","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rustixir%2Fdarkbird/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rustixir%2Fdarkbird/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rustixir%2Fdarkbird/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rustixir","download_url":"https://codeload.github.com/Rustixir/darkbird/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249565250,"owners_count":21292427,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-08-02T00:00:34.260Z","updated_at":"2025-04-18T23:33:02.001Z","avatar_url":"https://github.com/Rustixir.png","language":"Rust","readme":"![DarkBird](https://github.com/Rustixir/darkbird/blob/main/darkbird.png)\n\n\u003cdiv align=\"center\"\u003e\n  \u003c!-- Downloads --\u003e\n  \u003ca href=\"https://crates.io/crates/darkbird\"\u003e\n    \u003cimg src=\"https://img.shields.io/crates/d/darkbird.svg?style=flat-square\"\n      alt=\"Download\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\nDarkBird is a _document-oriented_, _in-memory_ database solution optimized for **fast real-time data searches**.\n\n## Features\n- **Database level**: darkbird was storage, but from ( vsn 5.0.3 ) is full-featured database\nbecause provide Schema for building database and all operation do with database layer\n- **Persistent**: Uses a _non-blocking_ write-ahead-logging engine for data persistence, storing data to multiple pages.\n- **In-memory**: Data is stored in memory, with two modes (_DiskCopies_, _RamCopies_), the first persisting data to disk and reloading the data into memory after restart.\n- **Concurrency**: Uses a high-concurrent HashMap ([_DashMap_](https://github.com/xacrimon/conc-map-bench)) and doesn't require Mutex/RwLock for thread synchronization.\n- **Vector**: darkbird provide a vector engine for storing and searching vectors\n- **Indexing**: Supports indexing, allowing for dynamic decision-making about which document fields to index.\n- **Full-text search**: Supports full-text search operations since version 3.5.0.\n- **Materialized view**: Supports materialized view\n- **Tagging**: Each document can have multiple tags, and one tag can refer to many documents, making it great for indexing groups of documents for fast retrieval by key.\n- **Expiration**: from vsn 6.0.0 support key expiry.\n- **Atomic Operation**: from vsn 6.0.0 support Atomic Operation (just like redis setNx)\n- **Migration**: The storage model is (Key, Document), and you can use `migration` to change the existing (Key, Document) data on disk before opening the storage.\n- **Backup / Restore** from vsn-6.1.0 support Backup/Restore\n- **External database support**: Supports Copy storage data to Postgres/Cassandra/Scylla and load from it.\n- **Event handling**: Subscribe to darkbird reporter to receive events.\n\n## Crate\n\n```\ndarkbird = \"6.2.4\"\n```\n\n## Examples\n- See the complete examples [here](https://github.com/Rustixir/darkbird/tree/main/example).\n- This repo is Movies store service with (darkbird + actix-web) [here](https://github.com/Rustixir/darkapp/).\n\n\n## Versions\n- **2.0.0**: Improved _performance_ and added _persistent copy_ of whole data to a database.\n- **3.0.0**: Implemented _indexing_, _tagging_, and _range queries_. **Document model must implement tree trait from this version**\n- **3.5.0**: Added full-text search API\n- **4.0.0**: Added _materialized view_ support. Document models must implement the MaterializedView trait, and API is provided to fetch view models. Uses `\u0026str` instead of `\u0026String` for better performance and API compatibility. All examples are updated.\n- **5.0.1**: migrated from Storage to Database world with Schema builder\nand Database layer to do all operation also is compatible with older version \n- **5.0.2**: fixedbug persist indexing and changed fullText search api for a bug \nall examples updates\n- **5.0.3**: fixedbug loader\n- **6.0.0**: added another storage Engine for supporting:\n  atomic operation (just like redis setNx), expiration and simpler api  \n- **6.0.1**: Backup/Restore _ new migration component (recover self if occure error)\n- **6.2.0**: Vector Engine\n\n\u003ca href=\"https://www.buymeacoffee.com/xnALmpJF9a\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-yellow.png\" alt=\"Buy Me A Coffee\" height=\"41\" width=\"174\"\u003e\u003c/a\u003e\n\n","funding_links":["https://www.buymeacoffee.com/xnALmpJF9a"],"categories":["Applications","Rust","\u003ca name=\"Rust\"\u003e\u003c/a\u003eRust"],"sub_categories":["Database"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRustixir%2Fdarkbird","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRustixir%2Fdarkbird","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRustixir%2Fdarkbird/lists"}