{"id":15455875,"url":"https://github.com/stradivario/gapi-orbitdb","last_synced_at":"2026-02-19T05:01:30.731Z","repository":{"id":93607824,"uuid":"137097222","full_name":"Stradivario/gapi-orbitdb","owner":"Stradivario","description":"@Gapi OrbitDB Ipfs module","archived":false,"fork":false,"pushed_at":"2025-08-21T15:59:27.000Z","size":1274,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-22T12:51:33.914Z","etag":null,"topics":["gapi","ipfs","node","orbitdb"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Stradivario.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-06-12T16:08:43.000Z","updated_at":"2021-09-01T11:59:00.000Z","dependencies_parsed_at":"2025-10-13T23:35:19.235Z","dependency_job_id":"cfe6bc64-3441-4e13-8ecc-d3a3e4e4fdec","html_url":"https://github.com/Stradivario/gapi-orbitdb","commit_stats":{"total_commits":585,"total_committers":1,"mean_commits":585.0,"dds":0.0,"last_synced_commit":"fa51f75a4245e9ea1c69f35cebd59f7fa4c2546c"},"previous_names":[],"tags_count":319,"template":false,"template_full_name":null,"purl":"pkg:github/Stradivario/gapi-orbitdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stradivario%2Fgapi-orbitdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stradivario%2Fgapi-orbitdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stradivario%2Fgapi-orbitdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stradivario%2Fgapi-orbitdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Stradivario","download_url":"https://codeload.github.com/Stradivario/gapi-orbitdb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stradivario%2Fgapi-orbitdb/sbom","scorecard":{"id":134734,"data":{"date":"2025-08-04","repo":{"name":"github.com/Stradivario/gapi-orbitdb","commit":"fa51f75a4245e9ea1c69f35cebd59f7fa4c2546c"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":1.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"125 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-mg85-8mv5-ffjr","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-xq7p-g2vc-g82p","Warn: Project is vulnerable to: GHSA-pp7h-53gx-mx7r","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-c6rq-rjc2-86v2","Warn: Project is vulnerable to: GHSA-257v-vj4p-3w2h","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-7gc6-qh9x-w6h8","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-rq8g-5pc5-wrhr","Warn: Project is vulnerable to: GHSA-p28h-cc7q-c4fg","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-pjxw-22xf-6pwc","Warn: Project is vulnerable to: GHSA-wm7h-9275-46v2","Warn: Project is vulnerable to: GHSA-3wcq-x3mq-6r9p","Warn: Project is vulnerable to: GHSA-ff7x-qrg7-qggm","Warn: Project is vulnerable to: GHSA-vh7m-p724-62c2","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-j4f2-536g-r55m","Warn: Project is vulnerable to: GHSA-r7qp-cfhv-p84w","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-7hx8-2rxv-66xv","Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-6fcr-9h9g-23fq","Warn: Project is vulnerable to: GHSA-7r28-3m3f-r2pr","Warn: Project is vulnerable to: GHSA-r8j5-h5cx-65gg","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-3f99-hvg4-qjwj","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-f44q-634c-jvwv","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-h726-x36v-rx45","Warn: Project is vulnerable to: GHSA-4xcv-9jjx-gfj3","Warn: Project is vulnerable to: GHSA-cvxm-f295-x957","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-fhjf-83wg-r2j9","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-w7rc-rwvf-8q5r","Warn: Project is vulnerable to: GHSA-92xj-mqp7-vmcj","Warn: Project is vulnerable to: GHSA-wxgw-qj99-44c2","Warn: Project is vulnerable to: GHSA-5rrq-pxf6-6jx5","Warn: Project is vulnerable to: GHSA-8fr3-hfg3-gpgp","Warn: Project is vulnerable to: GHSA-gf8q-jrpm-jvxq","Warn: Project is vulnerable to: GHSA-2r2c-g63r-vccr","Warn: Project is vulnerable to: GHSA-cfm4-qjh2-4765","Warn: Project is vulnerable to: GHSA-x4jg-mjrx-434g","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-37q6-576q-vgr7","Warn: Project is vulnerable to: GHSA-6fx8-h7jm-663j","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-hgch-jjmr-gp7w","Warn: Project is vulnerable to: GHSA-r3x4-wr4h-pw33","Warn: Project is vulnerable to: GHSA-876r-hj45-fw7g","Warn: Project is vulnerable to: GHSA-v63x-xc9j-hhvq","Warn: Project is vulnerable to: GHSA-584q-6j8j-r5pm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-w5q7-3pr9-x44w","Warn: Project is vulnerable to: GHSA-3fjq-93xj-3f3f","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-4g88-fppr-53pp","Warn: Project is vulnerable to: GHSA-4jqc-8m5r-9rpr","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-wpg7-2c88-r8xv","Warn: Project is vulnerable to: GHSA-fxwf-4rqh-v8g3","Warn: Project is vulnerable to: GHSA-25hc-qcg6-38wj","Warn: Project is vulnerable to: GHSA-xfhh-g9f5-x4m4","Warn: Project is vulnerable to: GHSA-qm95-pgcg-qqfq","Warn: Project is vulnerable to: GHSA-cqmj-92xf-r6r9","Warn: Project is vulnerable to: GHSA-x9hc-rw35-f44h","Warn: Project is vulnerable to: GHSA-2mvq-xp48-4c77","Warn: Project is vulnerable to: GHSA-5854-jvxx-2cg9","Warn: Project is vulnerable to: GHSA-g64q-3vg8-8f93","Warn: Project is vulnerable to: GHSA-j44m-qm6p-hp7m","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-pq67-2wwv-3xjx","Warn: Project is vulnerable to: GHSA-8cj5-5rvv-wf4v","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-72mh-269x-7mh5","Warn: Project is vulnerable to: GHSA-h4j5-c7cj-74xg","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T06:11:04.560Z","repository_id":93607824,"created_at":"2025-08-16T06:11:04.560Z","updated_at":"2025-08-16T06:11:04.560Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29604108,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T04:38:07.383Z","status":"ssl_error","status_checked_at":"2026-02-19T04:35:50.016Z","response_time":117,"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":["gapi","ipfs","node","orbitdb"],"created_at":"2024-10-01T22:21:23.006Z","updated_at":"2026-02-19T05:01:30.707Z","avatar_url":"https://github.com/Stradivario.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @Gapi OrbitDb decentralized database Module (Beta)\n\n##### More information about OrbitDb can be found here [OrbitDb](https://github.com/orbitdb/orbit-db)\n##### For questions/issues you can write ticket [here](http://gitlab.youvolio.com/gapi/gapi-orbitdb/issues)\n##### This module is intended to be used with [GAPI](https://github.com/Stradivario/gapi)\n\n## Installation and basic examples:\n##### To install this Gapi module, run:\n\n```bash\n$ npm install @gapi/orbitdb --save\n```\n\n## Beta Decentralized module using @rxdi infrastructure\n\n##### To install @orbitdb from ipfs network install globally @rxdi/core `npm i @rxdi/core`\nCheck it inside ipfs network: [QmWxi1tiVRJfVCTkFD9upaeQoPgG4NzbagxyA1RQCt3X3P](http://ipfs.io/ipfs/QmWxi1tiVRJfVCTkFD9upaeQoPgG4NzbagxyA1RQCt3X3P)\n\n```bash\n$ rxdi i QmWxi1tiVRJfVCTkFD9upaeQoPgG4NzbagxyA1RQCt3X3P\n```\n\nImportant: \n- Decentralized module includes property packages: [] if it depends on some \"centralized\" source\n- rxdi install will trigger npm install after finish if there are any packages: [] inside array so you don't have to install\n- In this case we will install @gapi/ipfs@1.2.55 and orbit-db@0.19.8 since it is the working version nothing less nothing more! ;)\n- Later @gapi/ipfs will be also decentralized module and will be added as a dependency like [@rxdi/core](http://ipfs.io/ipfs/QmP9n7m1UWkFn2hqt7mnfQYnBtxmFyyvKZHN7hgngQb1gM) \n\n```json\n{\n    \"name\": \"@gapi/orbitdb\",\n    \"version\":\"1.4.8\",\n    \"typings\": \"QmVXzhhjQCoNZJLwYWwtxLYtAC1x1No8yrZcE9d3unaXnQ\",\n    \"module\": \"QmUEqSRJvn44ThooeizVT8Tp7moW188hX4sBDgV3hN2khc\",\n    \"dependencies\": [\n        \"QmP9n7m1UWkFn2hqt7mnfQYnBtxmFyyvKZHN7hgngQb1gM\"\n    ],\n    \"packages\": [\n        {\n            \"name\": \"orbit-db\",\n            \"version\": \"0.19.8\"\n        },\n        {\n            \"name\": \"@gapi/ipfs\",\n            \"version\": \"1.4.7\"\n        }\n    ]\n}\n```\n\n## Consuming @gapi/orbitdb\n\nImportant: if you install from decentralized source via `rxdi i` command you don't need to install @gapi/ipfs module!\n\n##### To work everything as expected we need to install [@gapi/ipfs](https://github.com/Stradivario/gapi-ipfs) module because OrbitDB is working with ipfs protocol to install it type:\n\n```bash\nnpm i @gapi/ipfs\n```\n##### Important part is that Ipfs module should be resolved before OrbitDb module to work properly\n\n##### Then import your module above OrbitDbModule the following way:\n\n##### Import inside AppModule or CoreModule\n\n```typescript\n\nimport { Module } from '@rxdi/core';\nimport { IpfsModule } from '@gapi/ipfs';\nimport { OrbitDbModule } from '@gapi/orbitdb';\n\n@Module({\n    imports: [\n        IpfsModule.forRoot({\n            start: true,\n            config: {\n                Addresses: {\n                    API: '/ip4/127.0.0.1/tcp/5002',\n                    Announce: [],\n                    Gateway: '/ip4/127.0.0.1/tcp/8081',\n                    NoAnnounce: [],\n                    Swarm: [\n                        '/ip4/0.0.0.0/tcp/4002',\n                        '/ip6/::/tcp/4002'\n                    ]\n                },\n            },\n            logging: true,\n        }),\n        OrbitDbModule\n    ]\n})\nexport class CoreModule { }\n\n```\n\n##### Interact with orbitdb\n\nnote: keep in mind that this is beta testing and contribution is appreciated ! :)\n\n```typescript\n\nimport { Inject, Service } from '@rxdi/core';\nimport { IPFS_NODE_READY } from '@gapi/ipfs';\nimport { OrbitDb } from '@gapi/orbitdb';\nimport { Subject } from 'rxjs/Subject';\nimport { Observable } from 'rxjs/Observable';\n\nexport class User {\n    id: number;\n    name: string;\n    email: string;\n};\n\n@Service()\nexport class OrbitService {\n    constructor(\n        @Inject(OrbitDb) private orbitdb: OrbitDb,\n    ) {}\n\n    async orbitTest() {\n        \n        const db = await this.orbitdb.log\u003cUser\u003e('hello');\n        await db.load();\n\n        // Listen for updates from peers\n        db.events.on('replicated', (address) =\u003e {\n            console.log(db.iterator({ limit: -1 }).collect());\n        });\n\n        // Add an entry\n\n        const hash = await db.add({ id: 1, name: 'Kristiyan Tachev', email: 'kristiqn.tachev@gmail.com' });\n        console.log(hash);\n\n        // Query\n        const result = db.iterator({ limit: -1 }).collect();\n\n        console.log(result[result.length - 1].payload.value.id);\n        // 1\n\n        console.log(result[result.length - 1].payload.value.name);\n        // Kristiyan Tachev\n\n        console.log(result[result.length - 1].payload.value.email);\n        // kristiqn.tachev@gmail.com\n        return await Promise.resolve();\n    }\n\n}\n\n```\n\n\nOr you can do more if you inject database as a Service\n\n\n```typescript\n\nimport { Module } from '@rxdi/core';\nimport { IpfsModule } from '@gapi/ipfs';\nimport { OrbitDbModule } from '@gapi/orbitdb';\nimport { OrbitDb } from '@gapi/orbitdb';\n\ninterface User {\n    id: string;\n}\n\n@Module({\n    imports: [\n        IpfsModule.forRoot({\n            start: true,\n            config: {\n                Addresses: {\n                    API: '/ip4/127.0.0.1/tcp/5002',\n                    Announce: [],\n                    Gateway: '/ip4/127.0.0.1/tcp/8081',\n                    NoAnnounce: [],\n                    Swarm: [\n                        '/ip4/0.0.0.0/tcp/4002',\n                        '/ip6/::/tcp/4002'\n                    ]\n                },\n            },\n            logging: true,\n        }),\n        OrbitDbModule\n    ],\n    services: [\n        {\n            provide: 'hello',\n            deps: [OrbitDb],\n            useFactory: async (orbitdb: OrbitDb) =\u003e await (await orbitdb.log\u003cUser\u003e('hello')).load()\n        }\n    ]\n})\nexport class CoreModule { }\n\n```\n\nThen inject database inside whole application the following way:\n\n```typescript\nimport { Service, Inject } from '@rxdi/core';\nimport { OrbitDb } from '@gapi/orbitdb';\n\ninterface User {\n    id: string;\n}\n\n@Service()\nexport class OrbitService {\n    constructor(\n        @Inject('hello') private helloDB: OrbitLogDatabaseInstance\u003cUser\u003e,\n    ) {}\n\n}\n```\n\nTODO: Better documentation...\n\nEnjoy ! :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstradivario%2Fgapi-orbitdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstradivario%2Fgapi-orbitdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstradivario%2Fgapi-orbitdb/lists"}