{"id":13475576,"url":"https://github.com/developit/histore","last_synced_at":"2025-04-05T10:08:38.985Z","repository":{"id":66020012,"uuid":"132499340","full_name":"developit/histore","owner":"developit","description":"🏬 200b key-value store backed by navigation state","archived":false,"fork":false,"pushed_at":"2018-05-12T03:12:19.000Z","size":11,"stargazers_count":676,"open_issues_count":1,"forks_count":19,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-03-29T09:09:41.668Z","etag":null,"topics":["database","history-api","key-value","localstorage"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/developit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2018-05-07T18:16:41.000Z","updated_at":"2025-03-07T02:37:53.000Z","dependencies_parsed_at":"2023-03-10T23:29:27.620Z","dependency_job_id":null,"html_url":"https://github.com/developit/histore","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fhistore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fhistore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fhistore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fhistore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developit","download_url":"https://codeload.github.com/developit/histore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318744,"owners_count":20919484,"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","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":["database","history-api","key-value","localstorage"],"created_at":"2024-07-31T16:01:21.619Z","updated_at":"2025-04-05T10:08:38.940Z","avatar_url":"https://github.com/developit.png","language":"JavaScript","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://i.imgur.com/zN9xe7D.png\" width=\"300\" height=\"300\" alt=\"histore\"\u003e\n  \u003ch1 align=\"center\"\u003e\n  \tHistore\n\t\u003ca href=\"https://www.npmjs.org/package/histore\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/histore.svg?style=flat\" alt=\"npm\"\u003e\u003c/a\u003e\n  \u003c/h1\u003e\n\u003c/p\u003e\n\nHistore __[his·to·ry]__: a 200b key-value store backed by navigation state.\n\nDoes the fact that `sessionStorage`/`localStorage` is shared across tabs have you down?\n\nDon't worry, here's a strange but widely supported way to store 640kb of object data in a page's navigation state.\n\n[View Demo on JSFiddle](https://jsfiddle.net/developit/8Ltn29a5/)\n\n## Usage\n\n```js\nimport histore from 'histore'\n\nlet storage = histore()\n\nstorage.set('foo', 'bar')\nstorage.get('foo')  // 'bar'\n\nstorage.set('obj', { any: 'object' })\nstorage.get('obj').any  // 'object'\n```\n\nInterestingly, due to the way `history.replaceState` works, storing objects will implicitly clone them using the [Structured Clone algorithm](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm).\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Changelog\n\nEvery release, along with the migration instructions, is documented on the Github [Releases](https://github.com/developit/histore/releases) page.\n\n## License\n\n[Apache 2.0](LICENSE)\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fhistore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopit%2Fhistore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fhistore/lists"}