{"id":21668719,"url":"https://github.com/lucasmrdt/nedux-persist","last_synced_at":"2026-05-02T20:41:11.587Z","repository":{"id":36468231,"uuid":"226403629","full_name":"lucasmrdt/nedux-persist","owner":"lucasmrdt","description":"🔒 Persist your nedux store","archived":false,"fork":false,"pushed_at":"2023-01-05T02:28:37.000Z","size":237,"stargazers_count":1,"open_issues_count":7,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-28T09:44:11.819Z","etag":null,"topics":["localstorage","nedux-middleware","persistent-storage","persistor","typescript"],"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/lucasmrdt.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":"2019-12-06T20:21:24.000Z","updated_at":"2020-08-04T12:36:31.000Z","dependencies_parsed_at":"2023-01-17T01:46:11.366Z","dependency_job_id":null,"html_url":"https://github.com/lucasmrdt/nedux-persist","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lucasmrdt/nedux-persist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasmrdt%2Fnedux-persist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasmrdt%2Fnedux-persist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasmrdt%2Fnedux-persist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasmrdt%2Fnedux-persist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucasmrdt","download_url":"https://codeload.github.com/lucasmrdt/nedux-persist/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasmrdt%2Fnedux-persist/sbom","scorecard":{"id":602124,"data":{"date":"2025-08-11","repo":{"name":"github.com/lucasmrdt/nedux-persist","commit":"5d71e89a4449b6f1c17d2f4811ecd358bd2bb12e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"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":"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 1/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":"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":-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":"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":"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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"15 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","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-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-h9rv-jmmf-4pgx","Warn: Project is vulnerable to: GHSA-hxcc-f52p-wc94","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T00:42:46.282Z","repository_id":36468231,"created_at":"2025-08-21T00:42:46.282Z","updated_at":"2025-08-21T00:42:46.282Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32549387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T19:18:06.202Z","status":"ssl_error","status_checked_at":"2026-05-02T19:16:21.335Z","response_time":132,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["localstorage","nedux-middleware","persistent-storage","persistor","typescript"],"created_at":"2024-11-25T12:17:23.758Z","updated_at":"2026-05-02T20:41:06.575Z","avatar_url":"https://github.com/lucasmrdt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nedux-persist - persist your nedux store\n\n![typescript](https://img.shields.io/badge/-typescript-blueviolet) [![version](https://img.shields.io/badge/version-beta-blue)](https://www.npmjs.com/package/nedux-persist) [![size](https://img.shields.io/bundlephobia/minzip/nedux-persist?color=green\u0026label=size)](https://www.npmjs.com/package/nedux-persist)\n\n\u003e The official [middleware](https://github.com/lucasmrdt/nedux#%EF%B8%8F-middlewares) persistor for [nedux](https://github.com/lucasmrdt/nedux). Performant and flexible.\n\n## 📦 Installation\n\n```bash\nnpm install nedux-persist --save\n```\n\n## 💻 Usage with examples\n\n|        Name         |                                        Codesandbox                                         |\n| :-----------------: | :----------------------------------------------------------------------------------------: |\n| 🔒 Persisting Token | [here](https://codesandbox.io/s/new-feather-777tm?fontsize=14\u0026hidenavigation=1\u0026theme=dark) | [here](https://codesandbox.io/s/nedux-todos-nm8j0?fontsize=14\u0026hidenavigation=1\u0026theme=dark) |\n\n## 📜 Documentation\n\n### `Import`\n\n```javascript\n// ES6\nimport { persistKeys } from 'nedux-persist';\n\n// ES5\nvar persistKeys = require('nedux-persist').persistKeys;\n```\n\n### `persistKeys(keys, [localStorage])`\n\nCreate a middleware that may your `keys` persisted.\n\n|    argument    | required |        type         | description                       |\n| :------------: | :------: | :-----------------: | :-------------------------------- |\n|     `keys`     |    ✅    |     `string[]`      | The keys that you want to persist |\n| `localStorage` |    ❌    | [Storage](#storage) | The keys that you want to persist |\n\n\u003ca id=\"storage\"\u003e\u003c/a\u003e\n\n### Storage\n\n| argument  | required |                  type                  | description                |\n| :-------: | :------: | :------------------------------------: | :------------------------- |\n| `getItem` |    ✅    |       `(key: string) =\u003e string`        | Get the value from Storage |\n| `setItem` |    ✅    | `(key: string, value: string) =\u003e void` | Set the value into Storage |\n\n## 🎛 Basic Usage\n\n```typescript\nimport { createStore } from 'nedux';\nimport { persistKeys } from 'nedux-persist';\n\ntype Store = {\n  token: string;\n  useless: number;\n};\n\nconst store = createStore\u003cStore\u003e(\n  { token: '', useless: 0 },\n  [persistKeys(['token'])],\n);\n\nstore.subscribe('token', { next: token =\u003e console.log(`token: ${token}`) });\n```\n\n## 🙋🏼 Contributions\n\nAll [Pull Requests](https://github.com/lucasmrdt/nedux-persist/compare?expand=1), [Issues](https://github.com/lucasmrdt/nedux-persist/issues) and [Discussions](https://github.com/lucasmrdt/nedux-persist/issues) are welcomed !\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasmrdt%2Fnedux-persist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasmrdt%2Fnedux-persist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasmrdt%2Fnedux-persist/lists"}