{"id":16790465,"url":"https://github.com/sebasg22/firebase-worker","last_synced_at":"2025-03-17T01:21:43.732Z","repository":{"id":112862578,"uuid":"215559596","full_name":"SebasG22/firebase-worker","owner":"SebasG22","description":null,"archived":false,"fork":false,"pushed_at":"2019-10-23T23:05:44.000Z","size":1031,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-08T04:29:31.982Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SebasG22.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2019-10-16T13:48:37.000Z","updated_at":"2019-10-23T23:05:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"bcf3ecac-3bfa-4b99-b47b-25f3f9733a75","html_url":"https://github.com/SebasG22/firebase-worker","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/SebasG22%2Ffirebase-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebasG22%2Ffirebase-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebasG22%2Ffirebase-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebasG22%2Ffirebase-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SebasG22","download_url":"https://codeload.github.com/SebasG22/firebase-worker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243955725,"owners_count":20374374,"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":"2024-10-13T08:29:48.491Z","updated_at":"2025-03-17T01:21:43.699Z","avatar_url":"https://github.com/SebasG22.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Firebase Worker Demo\n\nThis is an experimental demo that will demonstrate the usage of `enablePersistence` on web workers.\n\n### Why ?\n\nInspired on [I dropped 95% of my Firebase bundle size using this one weird trick](https://davidea.st/articles/firebase-bundle-size) article, most of the devs out there want to have improve their apps.\n\n\n## Get started\n\n1. Run the `index.html` using a development server.\n\n**Recommendation**: \n- [Live Server](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer) for vscode users\n\n2. Open the index.html on your browser and see the logs\n\n\n## Flows\n\nOver firebase firestore is a collection of `projects`. The idea of this mini-poc is to test the \nflow in common scenarios \n\n### Query Data\n1. Get the projects from the worker\n\n**Result**: Working as expected\n\n### Save Data\n1. Get the projects from the worker and go offline _(disable network connection)_\n2. Create a new project\n3. Retrieve the projects \n4. Go online and sync the projects _(automatically)_\n\n**Result**: Working as expected\n\n### Sync Data (advance)\n1. Get the projects from the worker and go offline _(disable network connection)_\n2. Create a new project\n3. Retrieve the projects \n4. Close the browser tab \n5. Open the browser tab and go online _(enable network connection)_\n6. Sync the projects _(automatically)_\n\n**Result**: Not working\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebasg22%2Ffirebase-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebasg22%2Ffirebase-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebasg22%2Ffirebase-worker/lists"}