{"id":50257834,"url":"https://github.com/offline-pixel/idb-lib","last_synced_at":"2026-05-27T07:11:06.914Z","repository":{"id":57271104,"uuid":"284237601","full_name":"offline-pixel/idb-lib","owner":"offline-pixel","description":"It is a fast and lightweight angular library without any dependencies. A developer can use it for implementing CRUD operations with indexedDb. It is not only fast and lightweight, It is easiest to implement in angular projects.","archived":false,"fork":false,"pushed_at":"2020-08-03T06:36:45.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-15T19:45:41.646Z","etag":null,"topics":["angular","angular8","angular9","idb","indexed-db","indexeddb","npm","storage"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/offline-pixel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null}},"created_at":"2020-08-01T10:24:21.000Z","updated_at":"2020-08-03T06:36:48.000Z","dependencies_parsed_at":"2022-09-06T21:50:42.555Z","dependency_job_id":null,"html_url":"https://github.com/offline-pixel/idb-lib","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/offline-pixel/idb-lib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offline-pixel%2Fidb-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offline-pixel%2Fidb-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offline-pixel%2Fidb-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offline-pixel%2Fidb-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/offline-pixel","download_url":"https://codeload.github.com/offline-pixel/idb-lib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offline-pixel%2Fidb-lib/sbom","scorecard":{"id":703020,"data":{"date":"2025-08-11","repo":{"name":"github.com/offline-pixel/idb-lib","commit":"e81258f446d242e1b8fb68a111d1f95036e58021"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/1 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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":4,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Warn: no linked content found","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-22T05:40:02.135Z","repository_id":57271104,"created_at":"2025-08-22T05:40:02.135Z","updated_at":"2025-08-22T05:40:02.135Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33555141,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["angular","angular8","angular9","idb","indexed-db","indexeddb","npm","storage"],"created_at":"2026-05-27T07:11:05.975Z","updated_at":"2026-05-27T07:11:06.905Z","avatar_url":"https://github.com/offline-pixel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IndexedDb | Angular\nIt is one of the lightweight(packed:~28KB) and fastest NPM without any dependencies. A developer can use it for implementing CRUD operations with indexedDb. It is not only fast and lightweight, It is easiest to implement in angular projects. It returns a promise either will resolve or reject. Any issue's/suggestion's can be raised via [github](https://github.com/offline-pixel/idb-lib).\n\n## Future releases\nFuture releases of this library will include some out-of-the-box implementation and right now, we are looking for funding. Without funding our major builds are getting delayed.\n\n## Installation\n```\n    npm i idb-lib\n```\n\n## Usage\nin your ```*.module.ts``` file\n```javascript\n    import { IndexedDbService } from 'indexed-db';\n    @NgModule({\n    ...\n        providers: [\n            IndexedDbService\n        ],\n    ...\n    })\n```\n\n#### 1. Create/Register/Fetch in indexedDb\nin your ```*.component.ts``` file with ``` this.idb.stream() ```\n\n```javascript\n    import { IndexedDbService } from 'indexed-db';\n    export class *Component {\n        res = {\n            name: 'main',\n            store: 'child'\n        }\n        constructor( private idb: IndexedDbService ) {\n            this.idb.stream(this.res).then(data =\u003e {\n                if ( data === undefined || data.length === 0 ) {\n                    // Do something\n                    return;\n                }\n                // Do something\n            });\n        }\n    }\n```\n\n#### 2. Add/Update record in indexedDb\nin your ```*.component.ts``` file with ``` this.idb.updateDB() ```\n\n```javascript\n    import { IndexedDbService } from 'indexed-db';\n    export class *Component {\n        res = {\n            name: 'main',\n            store: 'child',\n            key: 'uniqueValue',\n            data: yourData // { name, email, mob } ref: destructuring\n        }\n        constructor( private idb: IndexedDbService ) {\n            this.idb.updateDB(this.res).then(data =\u003e {\n                if ( data === undefined || data.length === 0 ) {\n                    // Do something\n                    return;\n                }\n                // Do something\n            });\n        }\n    }\n```\n\n#### 3. Delete a record in indexedDb\nin your ```*.component.ts``` file with ``` this.idb.deleteId() ```\n\n```javascript\n    import { IndexedDbService } from 'indexed-db';\n    export class *Component {\n        res = {\n            name: 'main',\n            store: 'child',\n            key: 'uniqueValue'\n        }\n        constructor( private idb: IndexedDbService ) {\n            this.idb.deleteId(this.res).then(data =\u003e {\n                if ( data === undefined || data.length === 0 ) {\n                    // Do something\n                    return;\n                }\n                // Do something\n            });\n        }\n    }\n```\n\n\n#### Note: **It rejects whenever an operation fails and returns an empty array without any error messages. However, ERP can requests for the same. Also, peerDependencies and devDependencies are listed in package.json**\n\n\u003c!-- ## License(V0.0.2) --\u003e\n\u003c!-- Proprietary licence: Traditional use of copyright; no rights need be granted. --\u003e\n## Donation\nKeep this account funded for open-source contributions and it will fasten our processes for other libraries/project as well.\n\n```paypal.me/dranolia```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foffline-pixel%2Fidb-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foffline-pixel%2Fidb-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foffline-pixel%2Fidb-lib/lists"}