{"id":48727157,"url":"https://github.com/beriberikix/zephyrdb","last_synced_at":"2026-04-14T01:00:42.733Z","repository":{"id":350455023,"uuid":"1203609054","full_name":"beriberikix/zephyrdb","owner":"beriberikix","description":"Embedded multi-model database for Zephyr RTOS.","archived":false,"fork":false,"pushed_at":"2026-04-11T22:19:35.000Z","size":228,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-11T23:24:02.214Z","etag":null,"topics":["database","embedded-systems","key-value","time-series","zephyr-rtos"],"latest_commit_sha":null,"homepage":"","language":"C","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/beriberikix.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":"docs/roadmap.md","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-07T07:40:58.000Z","updated_at":"2026-04-11T22:19:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/beriberikix/zephyrdb","commit_stats":null,"previous_names":["beriberikix/zephyrdb"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/beriberikix/zephyrdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beriberikix%2Fzephyrdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beriberikix%2Fzephyrdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beriberikix%2Fzephyrdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beriberikix%2Fzephyrdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beriberikix","download_url":"https://codeload.github.com/beriberikix/zephyrdb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beriberikix%2Fzephyrdb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31777348,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T00:11:49.126Z","status":"ssl_error","status_checked_at":"2026-04-14T00:10:29.837Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["database","embedded-systems","key-value","time-series","zephyr-rtos"],"created_at":"2026-04-11T23:16:19.948Z","updated_at":"2026-04-14T01:00:42.725Z","avatar_url":"https://github.com/beriberikix.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ZephyrDB\n\nEmbedded multi-model database for Zephyr RTOS, designed for memory-constrained systems.\n\n## What Is Implemented\n\n- Zero-malloc static-slab memory model\n- Key-value model with NVS or ZMS backends\n- Time-series model with LittleFS or FCB backends\n- Document model with typed fields and query APIs\n- Durability helpers: integrity checks, recovery, stats export\n- Optional FlatBuffers export helper for TS samples\n- Optional KV event emitter/listener hooks\n- Optional zbus adapter for KV event publication\n\n## Quick Start\n\n### 1. Add module to west manifest\n\n```yaml\nmanifest:\n  projects:\n    - name: zephyrdb\n      url: https://github.com/beriberikix/zephyrdb\n      path: modules/lib/zephyrdb\n      revision: main\n```\n\n### 2. Enable in prj.conf\n\n```conf\nCONFIG_ZEPHYRDB=y\n\n# Optional models\nCONFIG_ZDB_KV=y\nCONFIG_ZDB_TS=y\nCONFIG_ZDB_DOC=y\n\n# Example backends\nCONFIG_ZDB_KV_BACKEND_NVS=y\nCONFIG_ZDB_TS_BACKEND_LITTLEFS=y\n\n# Optional stats and export helpers\nCONFIG_ZDB_STATS=y\nCONFIG_FLATCC=y\nCONFIG_ZDB_FLATBUFFERS=y\n```\n\n### 3. Initialize\n\n```c\n#include \u003czephyrdb.h\u003e\n\nstatic const zdb_cfg_t cfg = {\n    .kv_backend_fs = NULL,\n    .lfs_mount_point = CONFIG_ZDB_LFS_MOUNT_POINT,\n    .work_q = \u0026k_sys_work_q,\n};\n\nZDB_DEFINE_STATIC(db, cfg);\n\nint rc = zdb_init(\u0026db, \u0026cfg);\nif (rc != ZDB_OK) {\n    /* handle init error */\n}\n```\n\n## Documentation\n\n- [Documentation Index](docs/README.md)\n- [API Reference](docs/api.md)\n- [Architecture](docs/architecture.md)\n- [Configuration](docs/configuration.md)\n- [Testing Guide](docs/testing.md)\n- [Samples Guide](docs/samples.md)\n- [Roadmap](docs/roadmap.md)\n\n## Eventing and zbus Adapter\n\nZephyrDB can emit lightweight KV mutation events when enabled:\n\n- `CONFIG_ZDB_EVENTING=y` enables local KV event emission\n- `CONFIG_ZDB_EVENTING_ZBUS=y` bridges those events to a zbus channel\n\nThe zbus channel carries `zdb_kv_event_t` messages and is intended as an\noptional adapter layer for local subscribers.\n\nSee sample:\n\n- [samples/eventing_zbus](samples/eventing_zbus)\n\n## Storage Layout\n\n- KV backend storage is provided through `cfg.kv_backend_fs`\n- TS files live under `\u003cmount\u003e/\u003cCONFIG_ZDB_TS_DIRNAME\u003e/`\n- DOC files live under `\u003cmount\u003e/zdb_docs/`\n\nUse dedicated flash partitions when isolating ZephyrDB from app settings storage.\n\n## Build Integration\n\nZephyrDB integrates through:\n\n- `CMakeLists.txt`\n- `Kconfig` and `Kconfig.zephyrdb`\n- `module.yml`\n\n## License\n\nSee [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberiberikix%2Fzephyrdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fberiberikix%2Fzephyrdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberiberikix%2Fzephyrdb/lists"}