{"id":24455537,"url":"https://github.com/nixjs/web-storage","last_synced_at":"2026-02-08T04:32:55.313Z","repository":{"id":61575431,"uuid":"552684354","full_name":"nixjs/web-storage","owner":"nixjs","description":"A minimalistic Typescript plugin for web storage","archived":false,"fork":false,"pushed_at":"2025-01-12T08:54:50.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T09:47:45.440Z","etag":null,"topics":["javascript","localstorage","nixjs","react-local-storage","react-session","session","sessionstorage","storage","typescript","web-storage"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/nixjs.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}},"created_at":"2022-10-17T04:10:37.000Z","updated_at":"2025-01-12T08:54:54.000Z","dependencies_parsed_at":"2025-04-13T02:38:47.197Z","dependency_job_id":null,"html_url":"https://github.com/nixjs/web-storage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nixjs/web-storage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixjs%2Fweb-storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixjs%2Fweb-storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixjs%2Fweb-storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixjs%2Fweb-storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nixjs","download_url":"https://codeload.github.com/nixjs/web-storage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixjs%2Fweb-storage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29220491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T03:18:47.732Z","status":"ssl_error","status_checked_at":"2026-02-08T03:15:31.985Z","response_time":57,"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":["javascript","localstorage","nixjs","react-local-storage","react-session","session","sessionstorage","storage","typescript","web-storage"],"created_at":"2025-01-21T02:13:39.933Z","updated_at":"2026-02-08T04:32:55.298Z","avatar_url":"https://github.com/nixjs.png","language":"TypeScript","readme":"# @nixjs23n6/web-storage\n\nA minimalistic Typescript plugin for web storage\n\n## Install\n\n`yarn add @nixjs23n6/web-storage`\n\n## Usage\n\n### New instance\n\n```typescript\nimport { LocalStorage, SessionStorage, WebStorage } from '@nixjs23n6/web-storage'\n\nconst localStorage = new LocalStorage();\n// const sessionStorage = new SessionStorage();\n\nlocalStorage.setItem(\"ACCESS_TOKEN_KEY\", \"ACCESS_TOKEN\")\nlocalStorage.getItem\u003cstring\u003e(\"ACCESS_TOKEN_KEY\")\n```\n\n### Extend\n\n```typescript\nimport { LocalStorage } from '@nixjs23n6/web-storage'\n\nclass LocalStore extends LocalStorage {\n\n  authorize (token: string): this {\n    return this.setItem('ACCESS_TOKEN', token);\n  }\n\n  deAuthorize (): this {\n    return this.removeItem('ACCESS_TOKEN');\n  }\n\n}\n\nconst store =  new LocalStore();\n```\n\n### Static class\n\n```typescript\nimport { LocalStorageStatic } from '@nixjs23n6/web-storage'\n\nLocalStorageStatic.setItem(\"ACCESS_TOKEN_KEY\", \"ACCESS_TOKEN\")\nLocalStorageStatic.getItem\u003cstring\u003e(\"ACCESS_TOKEN_KEY\")\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnixjs%2Fweb-storage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnixjs%2Fweb-storage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnixjs%2Fweb-storage/lists"}