{"id":19335031,"url":"https://github.com/ngocbd/loopback4-connector-firestore","last_synced_at":"2026-05-03T17:31:30.537Z","repository":{"id":50306116,"uuid":"426959724","full_name":"ngocbd/loopback4-connector-firestore","owner":"ngocbd","description":"Firebase Firestore connector for the LoopBack4 framework","archived":false,"fork":false,"pushed_at":"2021-11-18T03:46:12.000Z","size":465,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-21T04:33:14.885Z","etag":null,"topics":["firestore","loopback4"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ngocbd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-11T10:29:21.000Z","updated_at":"2021-11-18T03:46:14.000Z","dependencies_parsed_at":"2022-09-24T11:30:24.584Z","dependency_job_id":null,"html_url":"https://github.com/ngocbd/loopback4-connector-firestore","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ngocbd/loopback4-connector-firestore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngocbd%2Floopback4-connector-firestore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngocbd%2Floopback4-connector-firestore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngocbd%2Floopback4-connector-firestore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngocbd%2Floopback4-connector-firestore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngocbd","download_url":"https://codeload.github.com/ngocbd/loopback4-connector-firestore/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngocbd%2Floopback4-connector-firestore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32578578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: 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":["firestore","loopback4"],"created_at":"2024-11-10T03:04:32.571Z","updated_at":"2026-05-03T17:31:30.521Z","avatar_url":"https://github.com/ngocbd.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# loopback4-connector-firestore\nFirebase Firestore connector for the LoopBack4 framework.\n\n\nI needed an easy way to connect a Loopback application to [Firebase][7]'s NoSQL database [Firestore][6] so that i decided to build this connector.\n\n### Installation\nIf you want to know how to get started with Loopback4 [check this][5].\n\nTo add a new data source, use the data source generator:\n```sh\nlb4 datasource\n```\nThen the data source generator will prompt some questions like\n\n - Enter the data-source name: **Firestore** *(Choose your prefered name)*\n - Select the connector for Firestore: **other**\n - Enter the connector's module name **loopback4-connector-firestore**\n - Install loopback4-connector-firestore (Y/n) **y**\n\nThen you should use a service account. Go to [Project Settings \u003e Service Accounts][4] in the Google Cloud Platform Console. Generate a new private key and save the JSON file.\n\nYou should fill the application's datasource file which is located in `/server/datasources.json`  with those details, You can find them in the downloaded JSON file from the Google Cloud Platform.\n\n```json\n\"firestore\": {\n  \"name\": \"firestore\",\n  \"projectId\": \"\",\n  \"clientEmail\":  \"\",\n  \"privateKey\": \"\",\n  \"databaseName\": \"Optional, Default: projectId\"\n}\n```\n\n#### Connection properties\n\n| Property | Type\u0026nbsp;\u0026nbsp; | Description | --- |\n| --- | --- | --- | --- |\n| projectId | String | project_id in the JSON file | --- |\n| clientEmail | String | client_email in the JSON file | --- |\n| privateKey | String | private_key in the JSON file | --- |\n| databaseName | String | Firebase's project id | Optional, Default: projectId | --- |\n\nAnd you can actually store those private details as an Environment variables, Check [source-configuration][8]\n\n\n### Build and test from source\nDownload google service json key file to test folder and rename it to config.json\n```\nnpm test\n```\n\n### Inspiration\nI've got inspired by the Official [MongoDB connector][3] by Loopback\n\n### License\nCopylefted (c) 2021 [Bui Dinh Ngoc][1] Licensed under the [MIT license][2].\nCopylefted (c) 2017 [Dyaa Eldin Moustafa][1] Licensed under the [MIT license][2].\n\n\n  [1]: https://github.com/ngocbd/\n  [2]: https://github.com/ngocbd/loopback4-connector-firestore/blob/master/LICENSE\n  [3]: https://github.com/strongloop/loopback-connector-mongodb/\n  [4]: https://console.cloud.google.com/projectselector/iam-admin/serviceaccounts\n  [5]: http://loopback.io/getting-started/\n  [6]: https://firebase.google.com/products/firestore/\n  [7]: https://firebase.google.com\n  [8]: https://loopback.io/doc/en/lb4\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngocbd%2Floopback4-connector-firestore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngocbd%2Floopback4-connector-firestore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngocbd%2Floopback4-connector-firestore/lists"}