{"id":21748902,"url":"https://github.com/realfakenerd/jsi","last_synced_at":"2026-02-11T00:03:21.735Z","repository":{"id":57284450,"uuid":"449123670","full_name":"realfakenerd/jsi","owner":"realfakenerd","description":"Local | Session storage wrapper with great features ","archived":false,"fork":false,"pushed_at":"2022-01-24T21:51:30.000Z","size":72,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T09:12:18.251Z","etag":null,"topics":["javascript","localstorage","storage-api","storage-manager"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/jsi-just-save-it","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/realfakenerd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-18T03:10:55.000Z","updated_at":"2022-01-24T22:00:51.000Z","dependencies_parsed_at":"2022-09-16T22:41:48.350Z","dependency_job_id":null,"html_url":"https://github.com/realfakenerd/jsi","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/realfakenerd/jsi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realfakenerd%2Fjsi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realfakenerd%2Fjsi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realfakenerd%2Fjsi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realfakenerd%2Fjsi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/realfakenerd","download_url":"https://codeload.github.com/realfakenerd/jsi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realfakenerd%2Fjsi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271745679,"owners_count":24813521,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"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":["javascript","localstorage","storage-api","storage-manager"],"created_at":"2024-11-26T08:15:44.589Z","updated_at":"2026-02-11T00:03:21.682Z","avatar_url":"https://github.com/realfakenerd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSI[just,save,it] (͠≖ ͜ʖ͠≖)👌\n\n## The most SUPER SUPREME of all Storage wrappers\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/realfakenerd/jsi\" alt=\"LINK GitHub package.json version (subfolder of monorepo)\"\u003e \u003cimg alt=\"GitHub package.json version (subfolder of monorepo)\" src=\"https://img.shields.io/github/package-json/v/realfakenerd/jsi?color=lightblue\u0026style=flat-square\"\u003e \u003c/a\u003e\n    \u003ca href=\"https://github.com/realfakenerd/jsi\" alt=\"LINK GitHub package.json version (subfolder of monorepo)\"\u003e\u003cimg alt=\"GitHub code size in bytes\" src=\"https://img.shields.io/github/languages/code-size/realfakenerd/jsi?color=blue\u0026style=flat-square\"\u003e\n    \u003c/a\u003e\n    \n\u003c/p\u003e\n\nIt's small, easy and agnostic, runs on every framework or with vanilla Js, it automatically stringify **data** and if the data it's already a string, it doesn't stringify, just save the data as it is. JSI also have type anotations to help with intellisense and a mini tutorial on the lib.\n\nTODOS:\n\n- ~~make it selects between local and session storage~~ ✔\n- make better and smarter 'ifs' and/or 'switches\n- make the logo\n- make an Doc page an site\n- ~~host it on most CDNs~~ ✔\n- make callbacks to give you awesome dev an granular control over the localStorage\n- make more todos and finalizes these Promises() above :)\n\n## Instalation:\n\n```js\n\nnpm i jsi-just-save-it // with npm\n\nyarn add jsi-just-save-it // better on yarn\n\npnpm add jsi-just-save-it // even better on pnpm\n\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/jsi-just-save-it\"\u003e // use it as an iife from jsdelivr\n\u003cscript src=\"https://unpkg.com/jsi-just-save-it@1.0.0/dist/jsi.min.js\"\u003e // or from unpkg\n\n```\n\n## Usage:\n\n```js\nimport { useJSIStorage } from \"jsi-just-save-it\";\n\nconst data = {\n  films: [\"Rogue One\", \"Skywalker Saga\", \"Solo\"],\n  series: [\"Bad Batch\", \"Mandalorian\", \"Rebels\"],\n  games: [\"Knights of the old republic\", \"Fallen Order\", \"Old Republic\"],\n};\n\nconst jsi = useJSIStorage();\n\njsi.set(\"sw\", data); // saves it to the localStorage by default\n\njsi.set(\"sw\", data, {\n    expire: 1000 * 60, // will expire after 1min\n    type: 'session', // values can be 'session' | 'local'\n    prefix: 'Skywalker_Saga_' // the key name will be Skywalker_Saga_sw, by default it is _JSI_\n})\n\njsi.set(\"sw - films\"); // throws an error, so be sure to put some data\n\njsi.set(data); // also throws an error, the name needs to be a string type\n\nconst spit = jsi.get(\"sw\"); // gets it from the localStorage and automatically parses it\n\nconsole.log(spit); // logs out the return of the 'let' above\n\njsi.remove(\"sw\"); // remove the key, throw an if theres no key with the given name\n\njsi.clear(); // clear the localStorage\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealfakenerd%2Fjsi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealfakenerd%2Fjsi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealfakenerd%2Fjsi/lists"}