{"id":22160433,"url":"https://github.com/rozek/localforage-esm","last_synced_at":"2026-03-04T07:00:59.682Z","repository":{"id":215425867,"uuid":"738916779","full_name":"rozek/localforage-esm","owner":"rozek","description":"the \"localForage\" library bundled as an ECMAscript module","archived":false,"fork":false,"pushed_at":"2024-06-26T09:04:01.000Z","size":114,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-26T13:40:36.054Z","etag":null,"topics":["indexeddb","javascript","localforage","localstorage","offline","storage","websql"],"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/rozek.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-04T10:49:55.000Z","updated_at":"2024-09-25T14:53:56.000Z","dependencies_parsed_at":"2025-07-26T09:33:06.972Z","dependency_job_id":"b1e3e9ce-5584-44a6-b0e0-afd97461aa3e","html_url":"https://github.com/rozek/localforage-esm","commit_stats":null,"previous_names":["rozek/localforage-esm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rozek/localforage-esm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Flocalforage-esm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Flocalforage-esm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Flocalforage-esm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Flocalforage-esm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rozek","download_url":"https://codeload.github.com/rozek/localforage-esm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Flocalforage-esm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30075425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T05:31:57.858Z","status":"ssl_error","status_checked_at":"2026-03-04T05:31:38.462Z","response_time":59,"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":["indexeddb","javascript","localforage","localstorage","offline","storage","websql"],"created_at":"2024-12-02T04:07:50.029Z","updated_at":"2026-03-04T07:00:59.308Z","avatar_url":"https://github.com/rozek.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# localforage-esm #\n\nthe \"localForage\" library bundled as an ECMAscript module\n\nThis repository provides the [localForage](https://github.com/localForage/localForage) library as an ECMAScript module (ESM).\n\n## Background ##\n\nIf you are used to importing external modules - even within browser scripts (e.g., in a no-build environment) - using the localForage library becomes difficult (see issues [#831](https://github.com/localForage/localForage/issues/831) and [#976](https://github.com/localForage/localForage/issues/976)). And since the attempts to made relevant changes broke installations of existing users, all activities in that direction seem to have been stopped (see issues [#940](https://github.com/localForage/localForage/issues/940) and  [#977](https://github.com/localForage/localForage/pull/977)).\n\nThis repository therefore **copies the source code of the original** distribution **and bundles it into an ECMAScript module** - nothing else.\n\nBut now you can easily `import localforage from 'localforage'` (or `import localForage from 'localforage'` if you prefer that capitalisation) as shown below\n\n## Usage ##\n\n```\n\u003cscript type=\"importmap\"\u003e\n  {\n    \"imports\": {\n      \"localforage\":\"https://rozek.github.io/localforage-esm/dist/localforage.esm.js\"\n    }\n  }\n\u003c/script\u003e\n\n\u003cscript type=\"module\"\u003e\n  import localforage from 'localforage'\n  ...\n\u003c/script\u003e\n```\n\nOr, if you don't like import maps\n\n```\n\u003cscript type=\"module\"\u003e\n  import localforage from 'https://rozek.github.io/localforage-esm/dist/localforage.esm.js'\n  ...\n\u003c/script\u003e\n```\n\n## Build Instructions ##\n\nYou may easily build this module yourself.\n\nJust install [NPM](https://docs.npmjs.com/) according to the instructions for your platform and follow these steps:\n\n1. either clone this repository using [git](https://git-scm.com/) or [download a ZIP archive](https://github.com/rozek/localforage-esm/archive/refs/heads/main.zip) with its contents to your disk and unpack it there \n2. open a shell and navigate to the root directory of this repository\n3. run `npm install` in order to install the complete build environment\n4. execute `npm run build` to create a new build\n\nThat's it!\n\n## License ##\n\nPlease note, that the original source code is licensed under Apache 2.0 - and since I simply copy it and just build the library in a different way, this repository has that license as well.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frozek%2Flocalforage-esm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frozek%2Flocalforage-esm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frozek%2Flocalforage-esm/lists"}