{"id":18983386,"url":"https://github.com/petrgrishin/config-decorator","last_synced_at":"2026-02-18T17:03:07.495Z","repository":{"id":70739788,"uuid":"553735723","full_name":"petrgrishin/config-decorator","owner":"petrgrishin","description":"PoC: simple config decorator with type casting, validation and env-driven out of the box","archived":false,"fork":false,"pushed_at":"2025-07-22T14:04:02.000Z","size":1355,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T01:33:56.031Z","etag":null,"topics":["config","decorator","dotenv","env","poc"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/config-decorator","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/petrgrishin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2022-10-18T17:26:45.000Z","updated_at":"2024-06-23T08:00:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"9562ed80-8e78-4d37-8b78-ce384151d9ea","html_url":"https://github.com/petrgrishin/config-decorator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/petrgrishin/config-decorator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petrgrishin%2Fconfig-decorator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petrgrishin%2Fconfig-decorator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petrgrishin%2Fconfig-decorator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petrgrishin%2Fconfig-decorator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petrgrishin","download_url":"https://codeload.github.com/petrgrishin/config-decorator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petrgrishin%2Fconfig-decorator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29587066,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T16:55:40.614Z","status":"ssl_error","status_checked_at":"2026-02-18T16:55:37.558Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","decorator","dotenv","env","poc"],"created_at":"2024-11-08T16:16:52.671Z","updated_at":"2026-02-18T17:03:07.473Z","avatar_url":"https://github.com/petrgrishin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# config-decorator\nPoC: simple config decorator with type casting, validation and env-driven out of the box\n\n## TL;DR\n```bash\nnpm i config-decorator\n```\n\n```typescript\nimport { Config, Nullable, Option } from 'config-decorator';\n\n@Config('app')\nexport class AppConfig {\n    @Option({\n        type: 'number',\n        default: 3000,\n    })\n    @Nullable()\n    public readonly port!: number;\n}\n\nconst appConfig = new AppConfig();\nconsole.log(appConfig.port);\n// 3000\n```\n\nEnvironment:\n```dotenv\nAPP_PORT=3000\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetrgrishin%2Fconfig-decorator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetrgrishin%2Fconfig-decorator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetrgrishin%2Fconfig-decorator/lists"}