{"id":20287080,"url":"https://github.com/devcsrj/nestjs-autoconfigure","last_synced_at":"2025-10-05T06:12:01.641Z","repository":{"id":187206826,"uuid":"676492364","full_name":"devcsrj/nestjs-autoconfigure","owner":"devcsrj","description":"spring boot's auto-configuration powers as a nestjs module","archived":false,"fork":false,"pushed_at":"2023-08-09T10:32:55.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-14T08:23:50.078Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devcsrj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["devcsrj"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2023-08-09T10:18:58.000Z","updated_at":"2023-08-09T10:19:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"c56bd758-018f-41e3-9dc8-d5726099cd55","html_url":"https://github.com/devcsrj/nestjs-autoconfigure","commit_stats":null,"previous_names":["devcsrj/nestjs-autoconfigure"],"tags_count":0,"template":false,"template_full_name":"jsynowiec/node-typescript-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcsrj%2Fnestjs-autoconfigure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcsrj%2Fnestjs-autoconfigure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcsrj%2Fnestjs-autoconfigure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcsrj%2Fnestjs-autoconfigure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devcsrj","download_url":"https://codeload.github.com/devcsrj/nestjs-autoconfigure/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241780497,"owners_count":20019061,"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":[],"created_at":"2024-11-14T14:38:05.285Z","updated_at":"2025-10-05T06:12:01.530Z","avatar_url":"https://github.com/devcsrj.png","language":"TypeScript","funding_links":["https://github.com/sponsors/devcsrj"],"categories":[],"sub_categories":[],"readme":"# nestjs-autoconfigure\n\nA [nestjs module](https://docs.nestjs.com/modules) for autoconfiguring other nestjs modules.\nThis idea is borrowed from [spring-boot-autoconfigure](https://docs.spring.io/spring-boot/docs/current/reference/html/using-spring-boot.html#using-boot-auto-configuration).\n\n| This project is still experimental. |\n|-------------------------------------|\n\n## Idea\n\nGiven a generic nestjs `AppModule`:\n\n```ts\nimport { Module } from '@nestjs/common';\nimport { AutoConfigurationModule } from '@devcsrj/nestjs-autoconfigure';\n\n@Module({\n  imports: [AutoConfigurationModule],\n})\nexport class AppModule {}\n```\n\nIt will automatically populate the nestjs application context with providers according to\nvarious conditions such as:\n - Existence of a property (`e.g.: database.url`)\n - Existence of a dependency (`e.g.: @nestjs/typeorm, typeorm`)\n - Lack of a provider (`e.g.: DataSource`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevcsrj%2Fnestjs-autoconfigure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevcsrj%2Fnestjs-autoconfigure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevcsrj%2Fnestjs-autoconfigure/lists"}