{"id":19562473,"url":"https://github.com/inpassor/ts-firebase-config","last_synced_at":"2026-05-11T07:07:16.250Z","repository":{"id":44844055,"uuid":"153578917","full_name":"Inpassor/ts-firebase-config","owner":"Inpassor","description":"Firebase Remote Config library","archived":false,"fork":false,"pushed_at":"2022-12-30T17:12:06.000Z","size":101,"stargazers_count":1,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-08T18:07:17.176Z","etag":null,"topics":["config","firebase","javascript","library","remote","rest","typescript"],"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/Inpassor.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":"2018-10-18T07:08:01.000Z","updated_at":"2020-06-01T05:17:58.000Z","dependencies_parsed_at":"2023-01-31T12:15:49.306Z","dependency_job_id":null,"html_url":"https://github.com/Inpassor/ts-firebase-config","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/Inpassor/ts-firebase-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inpassor%2Fts-firebase-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inpassor%2Fts-firebase-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inpassor%2Fts-firebase-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inpassor%2Fts-firebase-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Inpassor","download_url":"https://codeload.github.com/Inpassor/ts-firebase-config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inpassor%2Fts-firebase-config/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269814220,"owners_count":24479355,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["config","firebase","javascript","library","remote","rest","typescript"],"created_at":"2024-11-11T05:14:43.564Z","updated_at":"2026-05-11T07:07:16.161Z","avatar_url":"https://github.com/Inpassor.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Firebase Remote Config library\n\n![](https://img.shields.io/npm/v/@inpassor/firebase-config.svg?style=flat)\n![](https://img.shields.io/github/license/Inpassor/ts-firebase-config.svg?style=flat-square)\n![](https://img.shields.io/npm/dt/@inpassor/firebase-config.svg?style=flat-square)\n\nThis library used for interaction with\n[Firebase Remote Config](https://firebase.google.com/products/remote-config)\nREST API to set or get\nRemote Config values in node.js environment.\n\n## Dependencies\n\n### [google-auth-library](https://www.npmjs.com/package/google-auth-library)\n\nThe library uses **google-auth-library** npm package\nand provides a variety of ways to authenticate Remote Config API requests:\n- Provide a **keyId** and **key** of your Firebase project.\n- Provide a **private key file** for your Firebase service account.\n- Provide **GOOGLE_APPLICATION_CREDENTIALS** environment variable.\n- Use none of above in case of usage of the library on Google Cloud.\n\nRead about Google Cloud API authentication at\n[Getting Started with Authentication](https://cloud.google.com/docs/authentication/getting-started)\n\n### [node-cache](https://www.npmjs.com/package/node-cache)\n\nThe library uses **node-cache** npm package for storing ETag value.\n\nSee **cacheOptions** config option.\n\n### [flat](https://www.npmjs.com/package/flat)\n\nThe library uses **flat** npm package for flatten and unflatten Remote Config parameters.\n\nSee **delimiter** config option.\n\n\n## Example\n\n```typescript\nimport * as path from 'path';\nimport {\n    FirebaseConfig,\n    DataObject,\n} from '@inpassor/firebase-config';\n\n/**\n * Instantiate FirebaseConfig\n */\nconst firebaseConfig = new FirebaseConfig({\n    projectId: 'my-awesome-project-id',\n    keyFileName: path.resolve('path', 'to', 'my-awesome-project-service-key.json'),\n    // key: 'my-project-key',\n    // keyId: 'my-project-key-id',\n    // cacheOptions: {\n    //     forceString?: boolean;\n    //     objectValueSize?: number;\n    //     arrayValueSize?: number;\n    //     stdTTL?: number;\n    //     checkperiod?: number;\n    //     useClones?: boolean;\n    //     errorOnMissing?: boolean;\n    //     deleteOnExpire?: boolean;\n    // },\n    // delimiter: '___',\n    // defaultErrorMessage: 'Invalid response from the Firebase Remote Config service',\n});\n\n/**\n * Set Remote Config \n */\nfirebaseConfig.set({\n    // [key: string]: any\n}).then(\n    () =\u003e console.log('published'),\n    (error: any) =\u003e console.error(error),\n);\n\n/**\n * Get Remote Config \n */\nfirebaseConfig.get().then(\n    (parameters: DataObject) =\u003e console.log(parameters),\n    (error: any) =\u003e console.error(error),\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finpassor%2Fts-firebase-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finpassor%2Fts-firebase-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finpassor%2Fts-firebase-config/lists"}