{"library":"ngx-fastboot","title":"ngx-fastboot","description":"ngx-fastboot is an Angular library for dynamically loading configuration at runtime, optimizing startup performance by lazy-loading providers. The current stable version is 2.1.0, released February 2025. It requires Angular 19 and Node >=20.10.0. Key differentiators: unlike typical static environment files, ngx-fastboot allows configurations to be loaded asynchronously via HTTP or custom sources and bundled into a separate chunk for faster initial loads. It provides fastBootstrapApplication, withProviders, and lazyRootComponent helpers. The library ships TypeScript types and follows Angular's standalone component pattern.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install ngx-fastboot"],"cli":null},"imports":["import { fastBootstrapApplication } from 'ngx-fastboot';","import { withProviders } from 'ngx-fastboot';","import { lazyRootComponent } from 'ngx-fastboot';","import type { AppConfig } from 'ngx-fastboot';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { fastBootstrapApplication, withProviders } from 'ngx-fastboot';\nimport { provideHttpClient } from '@angular/common/http';\nimport { AppComponent } from './app.component';\n\n// Config loader factory - must return a promise of providers\nconst configProviders = () =>\n  fetch('/config.json').then(res => res.json()).then(config => [\n    { provide: 'APP_CONFIG', useValue: config },\n  ]);\n\n// Bootstrap\nfastBootstrapApplication(AppComponent, {\n  providers: [\n    provideHttpClient(),\n    withProviders(configProviders), // lazy-loaded providers\n  ],\n});","lang":"typescript","description":"Bootstraps an Angular app with lazy configuration loaded via HTTP. Uses fastBootstrapApplication and withProviders to defer config providers.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}