{"id":24987418,"url":"https://github.com/sergi/promised-storage","last_synced_at":"2025-03-29T11:12:32.342Z","repository":{"id":13265719,"uuid":"15951039","full_name":"sergi/promised-storage","owner":"sergi","description":"Store persistent data in the browser asynchronously with promises","archived":false,"fork":false,"pushed_at":"2014-01-19T13:14:08.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T08:13:53.372Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/sergi.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}},"created_at":"2014-01-15T22:40:47.000Z","updated_at":"2014-01-19T13:14:17.000Z","dependencies_parsed_at":"2022-09-21T21:30:23.535Z","dependency_job_id":null,"html_url":"https://github.com/sergi/promised-storage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergi%2Fpromised-storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergi%2Fpromised-storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergi%2Fpromised-storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergi%2Fpromised-storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sergi","download_url":"https://codeload.github.com/sergi/promised-storage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246174603,"owners_count":20735417,"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":[],"created_at":"2025-02-04T11:42:58.863Z","updated_at":"2025-03-29T11:12:32.317Z","avatar_url":"https://github.com/sergi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Promised Storage is basically a port of\n[Mozilla's async_storage.js](https://github.com/mozilla-b2g/gaia/blob/master/shared/js/async_storage.js) to Promises.\n\nWith Promised Storage you can store data in a persistent Key/Value database in the browser\nsimilarly to how you do it with [localStorage](http://diveintohtml5.info/storage.html)\nbut in a non-blocking way (localStorage methods block the main thread). It does so\nby leveraging the more powerful [IndexedDB](https://developer.mozilla.org/en/docs/IndexedDB)\ndatabase behind the scenes.\n\nUsage\n-----\n\nFor example:\n\n```javascript\nvar p = promisedStorage.setItem(\"solution\", 42);\np.then(function() {\n  return promisedStorage.getItem(\"solution\")\n}).then(function(value) {\n    console.log(\"The Stored value is\", value); // 42\n});\n```\n\nLicense\n-------\n\nApache 2.0","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergi%2Fpromised-storage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergi%2Fpromised-storage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergi%2Fpromised-storage/lists"}