{"id":49237357,"url":"https://github.com/paperdb/kv-storage","last_synced_at":"2026-04-24T17:01:14.149Z","repository":{"id":57135068,"uuid":"241515825","full_name":"PaperDB/kv-storage","owner":"PaperDB","description":"LocalForage based key-value storage for Browser, Node.js, and Cordova/Ionic","archived":false,"fork":false,"pushed_at":"2020-04-14T21:22:17.000Z","size":52,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-22T09:13:26.804Z","etag":null,"topics":["ipfs","key-value","localforage","localforage-driver","storage"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/PaperDB.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}},"created_at":"2020-02-19T02:36:59.000Z","updated_at":"2021-12-06T01:44:45.000Z","dependencies_parsed_at":"2022-09-04T16:50:10.378Z","dependency_job_id":null,"html_url":"https://github.com/PaperDB/kv-storage","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/PaperDB/kv-storage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaperDB%2Fkv-storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaperDB%2Fkv-storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaperDB%2Fkv-storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaperDB%2Fkv-storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PaperDB","download_url":"https://codeload.github.com/PaperDB/kv-storage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaperDB%2Fkv-storage/sbom","scorecard":{"id":107681,"data":{"date":"2025-08-11","repo":{"name":"github.com/PaperDB/kv-storage","commit":"ce42c509b45ce35fa775a8f0d04a5d4190a9d575"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/21 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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npmpublish.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/PaperDB/kv-storage/npmpublish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npmpublish.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/PaperDB/kv-storage/npmpublish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npmpublish.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/PaperDB/kv-storage/npmpublish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npmpublish.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/PaperDB/kv-storage/npmpublish.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/npmpublish.yml:16","Warn: npmCommand not pinned by hash: .github/workflows/npmpublish.yml:28","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 npmCommand dependencies pinned"],"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/npmpublish.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE: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"}},{"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"}}]},"last_synced_at":"2025-08-15T11:24:28.807Z","repository_id":57135068,"created_at":"2025-08-15T11:24:28.807Z","updated_at":"2025-08-15T11:24:28.807Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32232613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: 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":["ipfs","key-value","localforage","localforage-driver","storage"],"created_at":"2026-04-24T17:01:13.255Z","updated_at":"2026-04-24T17:01:14.144Z","avatar_url":"https://github.com/PaperDB.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# @paper-db/kv-storage\n\nLocalForage based key-value storage for Browser, Node.js, and Cordova/Ionic.\n\n## LocalForage Drivers\n\n* Browser: \n  * IndexedDB\n  * [datastore-level](src/localforage-driver-datastore-level.ts)\n  * WebSQL\n  * localStorage\n* Node.js:\n  * [datastore-level](src/localforage-driver-datastore-level.ts)\n* Cordova/Ionic\n  * [SQLite](https://github.com/thgreasi/localForage-cordovaSQLiteDriver)\n  * IndexedDB\n  * [datastore-level](src/localforage-driver-datastore-level.ts)\n  * WebSQL\n  * localStorage\n\n## Installation\n\n```\nnpm install @paper-db/kv-storage\n```\n\nIf you would like to use SQLite as a storage engine for Cordova/Ionic, install the SQLite plugin dependency:\n\n```\ncordova plugin add cordova-sqlite-storage --save\n```\n\n## Usage\n\nExample:\n\n```js\nconst { KVStorage } = require('@paper-db/kv-storage')\n\nconst storage = new KVStorage({\n  path: './test-db',  // path to the level-datastore being used, only required when using datastore-level localForage driver\n})\n\nawait storage.ready()\n\nawait storage.set('test', 123)\n\nconsole.log(await storage.has('test'))  // true\nconsole.log(await storage.get('test'))  // 123\n\nconsole.log(await storage.length())  // 1\nconsole.log(await storage.keys())  // ['test']\n\nstorage.forEach((value, key, i) =\u003e {\n  console.log(value, key, i)  // 123 'test' 0\n})\n\nawait storage.remove('test')\n```\n\n## API\n\n[see dist/index.d.ts](https://cdn.jsdelivr.net/npm/@paper-db/kv-storage/dist/index.d.ts)\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaperdb%2Fkv-storage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaperdb%2Fkv-storage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaperdb%2Fkv-storage/lists"}