{"id":523,"slug":"localstorage","name":"LocalStorage","short_description":"LocalStorage is a JavaScript object that allows storing arbitrary key-value pairs in the web browser as an alternative to cookies.","url":"https://github.com/topics/localstorage","github_count":11769,"created_by":null,"logo_url":null,"released":null,"wikipedia_url":"https://en.wikipedia.org/wiki/Web_storage","related_topics":["sessionstorage","indexeddb","websql","web-storage","webstorage"],"aliases":["local-storage"],"github_url":null,"content":"\u003cp\u003eLocalStorage is a JavaScript object that allows storing arbitrary key-value pairs in the web browser as an alternative to cookies—another alternative if the data in question goes beyond key-value pairs is to use the IndexedDB.\u003c/p\u003e\n\n\u003cp\u003e\u003ccode class=\"language-plaintext highlighter-rouge\"\u003elocalStorage\u003c/code\u003e data is specific to the protocol of the document. In particular, for a site loaded over HTTP (e.g., http://example.com), \u003ccode class=\"language-plaintext highlighter-rouge\"\u003elocalStorage\u003c/code\u003e returns a different object than \u003ccode class=\"language-plaintext highlighter-rouge\"\u003elocalStorage\u003c/code\u003e for the corresponding site loaded over HTTPS (e.g., https://example.com).\u003c/p\u003e\n","created_at":"2024-07-29T13:47:25.608Z","updated_at":"2026-06-14T00:17:57.314Z","topic_url":"https://awesome.ecosyste.ms/api/v1/topics/localstorage","html_url":"https://awesome.ecosyste.ms/topics/localstorage","projects_url":"https://awesome.ecosyste.ms/api/v1/projects?keyword=localstorage","lists_url":"https://awesome.ecosyste.ms/api/v1/lists?topic=localstorage"}