{"id":26122691,"url":"https://github.com/importantimport/ezss","last_synced_at":"2026-04-21T01:32:07.483Z","repository":{"id":199983177,"uuid":"704493934","full_name":"importantimport/ezss","owner":"importantimport","description":"🔒️ Easier alternative of react-secure-storage.","archived":false,"fork":false,"pushed_at":"2023-10-16T12:45:08.000Z","size":64,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-15T02:15:58.774Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://npm.im/ezss","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/importantimport.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,"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},"funding":{"custom":["https://donate.lol/eth/0xaBdB3f715198A4d7e6591b6ebBE8Ccf235e5D752"]}},"created_at":"2023-10-13T11:31:19.000Z","updated_at":"2025-04-09T08:39:42.000Z","dependencies_parsed_at":"2023-10-15T00:45:53.177Z","dependency_job_id":null,"html_url":"https://github.com/importantimport/ezss","commit_stats":null,"previous_names":["importantimport/ezss"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/importantimport/ezss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/importantimport%2Fezss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/importantimport%2Fezss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/importantimport%2Fezss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/importantimport%2Fezss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/importantimport","download_url":"https://codeload.github.com/importantimport/ezss/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/importantimport%2Fezss/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32072953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T21:26:33.338Z","status":"ssl_error","status_checked_at":"2026-04-20T21:26:22.081Z","response_time":94,"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":[],"created_at":"2025-03-10T15:12:23.821Z","updated_at":"2026-04-21T01:32:07.461Z","avatar_url":"https://github.com/importantimport.png","language":"TypeScript","funding_links":["https://donate.lol/eth/0xaBdB3f715198A4d7e6591b6ebBE8Ccf235e5D752"],"categories":[],"sub_categories":[],"readme":"# EZSS [![npm](https://img.shields.io/npm/v/ezss)](https://npmjs.com/package/ezss) [![install size](https://pkg-size.dev/badge/install/24426)](https://pkg-size.dev/ezss) [![bundle size](https://pkg-size.dev/badge/bundle/20393)](https://pkg-size.dev/ezss)\n\nEasier alternative of `react-secure-storage`.\n\n## Why\n\nThe `react-secure-storage` code is unnecessarily complex and doesn't support custom data types.\n\nEZSS only implements its internal `EncryptionService` class so that you can use it with the libraries you want. (e.g. `@mantine/hooks`)\n\n## Install\n\n```bash\npnpm add ezss\n# yarn add ezss\n# npm i ezss\n```\n\n## Usage Examples\n\n\u003e do you have other examples? PR's welcome!\n\n###### @mantine/hooks - useLocalStorage\n\n```ts\nimport { useLocalStorage } from '@mantine/hooks'\nimport encryption from 'ezss' // A\n// import { EncryptionService } from 'ezss' // B\n\n// const encryption = new EncryptionService() // B\n\nexport const useSecureLocalStorage =\n  \u003cT = string\u003e(props: Parameters\u003ctypeof useLocalStorage\u003cT\u003e\u003e[0]) =\u003e\n    useLocalStorage\u003cT\u003e({\n      ...props,\n      serialize: value =\u003e encryption.encrypt(JSON.stringify(value)),\n      deserialize: value =\u003e {\n        if (value) {\n          try {\n            return JSON.parse(encryption.decrypt(value))\n          } catch {\n            return encryption.decrypt(value)\n          }\n        } else return value\n      },\n    })\n```\n\n## License\n\nLicensed under the [MIT](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimportantimport%2Fezss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimportantimport%2Fezss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimportantimport%2Fezss/lists"}