{"id":51230165,"url":"https://github.com/choewy/nestjs-bootstrap","last_synced_at":"2026-06-28T15:31:08.023Z","repository":{"id":228754352,"uuid":"774847547","full_name":"choewy/nestjs-bootstrap","owner":"choewy","description":"NestJS Bootstrap","archived":false,"fork":false,"pushed_at":"2024-03-28T11:44:49.000Z","size":773,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-24T23:38:02.016Z","etag":null,"topics":["bootstrap","nestjs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@choewy/nestjs-bootstrap","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/choewy.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-20T09:55:06.000Z","updated_at":"2024-03-20T10:05:07.000Z","dependencies_parsed_at":"2024-03-20T10:04:07.183Z","dependency_job_id":"91d2ee7d-a5eb-4788-9713-c727da8c41c6","html_url":"https://github.com/choewy/nestjs-bootstrap","commit_stats":null,"previous_names":["choewy/nestjs-bootstrap"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/choewy/nestjs-bootstrap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choewy%2Fnestjs-bootstrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choewy%2Fnestjs-bootstrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choewy%2Fnestjs-bootstrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choewy%2Fnestjs-bootstrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/choewy","download_url":"https://codeload.github.com/choewy/nestjs-bootstrap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choewy%2Fnestjs-bootstrap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34894560,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"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":["bootstrap","nestjs"],"created_at":"2026-06-28T15:31:07.286Z","updated_at":"2026-06-28T15:31:08.019Z","avatar_url":"https://github.com/choewy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NestJS Bootstrap\n\n## Installing\n\n```bash\nnpm i @choewy/nestjs-bootstrap\n```\n\n## Uses\n\n### createBootstrapOptions\n\n```ts\nasync function bootstrap() {\n  const app = await NestFactory.create(AppModule);\n  const bootstrapOptions = createBootstrapOptions(app);\n\n  app.useGlobalInterceptors(...bootstrapOptions.interceptors);\n  app.useGlobalPipes(...bootstrapOptions.pipes);\n\n  await app.listen(3000);\n}\n\nbootstrap();\n```\n\n### HttpLogMiddleware\n\n#### Applying middleware\n\n```ts\n@Module({\n  controllers: [AppController],\n  providers: [AppService],\n})\nexport class AppModule implements NestModule {\n  configure(consumer: MiddlewareConsumer) {\n    consumer.apply(HttpLogMiddleware).forRoutes('*');\n  }\n}\n```\n\n#### Functional middleware\n\n```ts\nasync function bootstrap() {\n  const app = await NestFactory.create(AppModule);\n\n  app.use(HttpLogMiddleware.use);\n\n  await app.listen(3000);\n}\n```\n\n### HttpLogInterceptor\n\n```ts\nasync function bootstrap() {\n  const app = await NestFactory.create(AppModule);\n\n  app.use(HttpLogMiddleware.use);\n  app.useGlobalInterceptors(new HttpLoggingInterceptor());\n\n  await app.listen(3000);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoewy%2Fnestjs-bootstrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchoewy%2Fnestjs-bootstrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoewy%2Fnestjs-bootstrap/lists"}