{"id":16244584,"url":"https://github.com/endykaufman/ngx-remote-config","last_synced_at":"2026-01-21T07:26:01.263Z","repository":{"id":34505464,"uuid":"179871065","full_name":"EndyKaufman/ngx-remote-config","owner":"EndyKaufman","description":"Remote configurations for Angular9+ applications, with built-in interceptor for mock REST data and non-permanent api","archived":false,"fork":false,"pushed_at":"2024-03-26T21:47:03.000Z","size":3063,"stargazers_count":1,"open_issues_count":47,"forks_count":1,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2024-04-14T13:52:37.278Z","etag":null,"topics":["angular","api","config","directives","mock","remote","rest","settings"],"latest_commit_sha":null,"homepage":"https://endykaufman.github.io/ngx-remote-config","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/EndyKaufman.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2019-04-06T18:26:08.000Z","updated_at":"2020-05-25T16:03:39.000Z","dependencies_parsed_at":"2024-09-12T11:00:54.290Z","dependency_job_id":null,"html_url":"https://github.com/EndyKaufman/ngx-remote-config","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndyKaufman%2Fngx-remote-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndyKaufman%2Fngx-remote-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndyKaufman%2Fngx-remote-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndyKaufman%2Fngx-remote-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EndyKaufman","download_url":"https://codeload.github.com/EndyKaufman/ngx-remote-config/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237709867,"owners_count":19354088,"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":["angular","api","config","directives","mock","remote","rest","settings"],"created_at":"2024-10-10T14:19:47.395Z","updated_at":"2026-01-21T07:26:01.226Z","avatar_url":"https://github.com/EndyKaufman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ngx-remote-config\n\n[![Build Status](https://travis-ci.org/EndyKaufman/ngx-remote-config.svg?branch=master)](https://travis-ci.org/EndyKaufman/ngx-remote-config)\n[![npm version](https://badge.fury.io/js/ngx-remote-config.svg)](https://badge.fury.io/js/ngx-remote-config)\n\nRemote configurations for Angular9+ applications, with built-in interceptor for mock REST data and non-permanent api\n\n## Installation\n\n```bash\nnpm i --save ngx-remote-config\n```\n\n## Links\n\n[Demo](https://endykaufman.github.io/ngx-remote-config) - Demo application with ngx-remote-config.\n\n[Stackblitz](https://stackblitz.com/edit/ngx-remote-config) - Simply sample of usage on https://stackblitz.com\n\n[Demo settings](https://testapi.io/api/EndyKaufman/ngx-remote-config.json) - Settings for demo application stored on https://testapi.io\n\n[Demo Ionic](https://github.com/rucken/todo-ionic) - Example usage in ionic application with native HTTP module\n\n[path-to-regexp](https://github.com/pillarjs/path-to-regexp) - Library usage for match url on interceptor\n\n# Usage\n\napp.module.ts\n\n```js\nimport { HttpClientModule } from '@angular/common/http';\nimport { NgxRemoteConfigModule } from 'ngx-remote-config';\n\n@NgModule({\n  imports: [\n    ...\n    HttpClientModule,\n    NgxRemoteConfigModule.forRoot({\n      url: 'https://testapi.io/api/EndyKaufman/ngx-remote-config.json'\n    }),\n    ...\n  ],\n  ...\n})\nexport class AppModule {}\n```\n\napp.component.html\n\n```html\n...\n\u003cp\u003eLoad with directive\u003c/p\u003e\n\u003cng-container *remoteConfig=\"let config\"\u003e\n  {{config|json}}\n\u003c/ng-container\u003e\n\u003cp\u003eLoad with service\u003c/p\u003e\n\u003cng-container *ngIf=\"serviceConfig$ | async as serviceConfig\"\u003e\n  {{serviceConfig|json}}\n\u003c/ng-container\u003e\n...\n```\n\napp.component.ts\n\n```js\nimport { NgxRemoteConfigService } from 'ngx-remote-config';\nimport { Observable } from 'rxjs';\n...\nserviceConfig$: Observable\u003cany\u003e;\nconstructor(\n  private _ngxRemoteConfigService: NgxRemoteConfigService\n) {\n  this.serviceConfig$ = this._ngxRemoteConfigService.config$.asObservable();\n}\n...\n```\n\nsettings.json (https://testapi.io/api/EndyKaufman/ngx-remote-config.json)\n\n```js\n{\n  \"options\":{\n    \"name\":\"Remote name\",\n    \"description\":\"Remote description\"\n  },\n  \"/api/resource/2\": {\n    \"get\": {\n      \"status\": 404,\n      \"body\": {\n        \"message\": \"Fake not found message\"\n      }\n    }\n  },\n  \"/api/resource\": {\n    \"get\": [\n      {\n        \"name\": \"get:item1\"\n      },\n      {\n        \"name\": \"get:item2\"\n      },\n      {\n        \"name\": \"get:item3\"\n      }\n    ]\n  },\n  \"/api/(.*)\": \"https://todo-nestjs.rucken.io/api/\"\n}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendykaufman%2Fngx-remote-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendykaufman%2Fngx-remote-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendykaufman%2Fngx-remote-config/lists"}