{"id":21989180,"url":"https://github.com/repcomm/ddb","last_synced_at":"2025-07-22T23:31:02.436Z","repository":{"id":130854055,"uuid":"439151127","full_name":"RepComm/ddb","owner":"RepComm","description":"archived, see https://github.com/repcomm/pubmarine for more complete project","archived":true,"fork":false,"pushed_at":"2021-12-28T03:56:53.000Z","size":104,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T02:44:32.378Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RepComm.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-12-16T23:10:27.000Z","updated_at":"2023-11-10T22:25:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"ef690d22-81b6-4125-93d0-d99984c424d7","html_url":"https://github.com/RepComm/ddb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RepComm/ddb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RepComm%2Fddb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RepComm%2Fddb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RepComm%2Fddb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RepComm%2Fddb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RepComm","download_url":"https://codeload.github.com/RepComm/ddb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RepComm%2Fddb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266590007,"owners_count":23952848,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-11-29T19:28:15.078Z","updated_at":"2025-07-22T23:31:02.425Z","avatar_url":"https://github.com/RepComm.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ddb\n\nNOTICE: Work in progress, not stable or usable\n\nA decentralized database intended for mesh networking.\n\n- 0 dependencies\n- Targets ESM node.js, web, and deno environments\n\n## Implemented\n- Data creation, modification, events\n- Database, events\n- Query, events\n- EventDispatcher w/ type generics\n\n## Example\n```ts\n//create a database\nlet ddb = new Database();\n\n//assume unique public cryptography key as a string\nlet publicKey = 3.14159.toString();\n\n//get data in a tree structure path\nddb\n  .get(\"players\")\n  .get(publicKey)\n  .get(\"position\")\n  .get(\"x\")\n  \n  //listen to changes of this data\n  .on(\"change\", (evt) =\u003e {\n  console.log(evt.datum.value as string);\n});\n\n//data gets set somewhere else in code (or over network)\nddb\n  .get(\"players\")\n  .get(publicKey)\n  .get(\"position\")\n  .get(\"x\")\n\n  //set the data\n  .set( Math.floor( Math.random() * 512 ).toString() );\n\n```\n\n## Example Web\nSee [index.html](./src/index.html) and [index.ts](./src/index.ts)\n\n### Localhost\nUse an http/s server in the same directory as src (not build directory, as a node module is relatively imported for development testing)\n\n`npm install https-localhost -g` or `npm install serve` work well\nNote: https-localhost option requires `sudo` on linux due to network securety\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frepcomm%2Fddb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frepcomm%2Fddb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frepcomm%2Fddb/lists"}