{"id":28223192,"url":"https://github.com/jonlambert/launchdarkly-typegen","last_synced_at":"2025-09-01T12:35:26.827Z","repository":{"id":206599131,"uuid":"717267311","full_name":"jonlambert/launchdarkly-typegen","owner":"jonlambert","description":"CLI tool to generate TypeScript types from a LaunchDarkly project.","archived":false,"fork":false,"pushed_at":"2024-09-02T14:59:48.000Z","size":129,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-01T03:06:57.499Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonlambert.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}},"created_at":"2023-11-11T00:34:41.000Z","updated_at":"2024-11-20T22:36:30.000Z","dependencies_parsed_at":"2023-11-16T14:30:13.844Z","dependency_job_id":"bc743c40-7991-4c14-bdb7-4ad359bc5d0c","html_url":"https://github.com/jonlambert/launchdarkly-typegen","commit_stats":null,"previous_names":["jonlambert/launchdarkly-typegen"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/jonlambert/launchdarkly-typegen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonlambert%2Flaunchdarkly-typegen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonlambert%2Flaunchdarkly-typegen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonlambert%2Flaunchdarkly-typegen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonlambert%2Flaunchdarkly-typegen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonlambert","download_url":"https://codeload.github.com/jonlambert/launchdarkly-typegen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonlambert%2Flaunchdarkly-typegen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273122884,"owners_count":25049672,"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","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"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":[],"created_at":"2025-05-18T07:14:56.043Z","updated_at":"2025-09-01T12:35:26.819Z","avatar_url":"https://github.com/jonlambert.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LaunchDarkly TypeScript Generator\n\nType-safe flag evaluations for LaunchDarkly.\n\n_Note: This is a third-party tool with no affiliation to LaunchDarkly._\n\n## Introduction\n\nThis CLI tool will fetch flags from a LaunchDarkly project and render them to TypeScript definitions.\n\nThe output can then be imported across your application to give build-time checks to your flag evaluations.\n\n## Example\n\n```ts\nexport interface AppFlagSet {\n  'feature-one': boolean;\n  'feature-two': boolean;\n}\n\nexport type AppFlag = keyof AppFlagSet;\n\nexport type FlagEnvironment = 'staging' | 'production';\n```\n\n## Installation\n\n```bash\nnpx launchdarkly-typegen@latest\n```\n\nor\n\n```bash\n# Lock a version\nnpm install -D launchdarkly-typegen\n```\n\n## Usage\n\n```bash\nlaunchdarkly-typegen\n\nUsage:\n  $ npx launchdarkly-typegen@latest \u003ccommand\u003e [options]\n\nOptions:\n  --output [file]               Path to generated file (default: output to stdout)\n  --project [project]           LaunchDarkly project key (default: default)\n  --flag-interface-name [name]  Name of the generated flag interface (default: AppFlagSet)\n  --env-type-name [name]        Name of the generated environment union type (default: FlagEnvironment)\n  --api-key [key]               LaunchDarkly API key (if not set, will attempt to use LAUNCHDARKLY_API_KEY from the environment)\n  -h, --help                    Display this message\n\n```\n\n## Features\n\n- [x] Fetch flag keys and their types\n- [x] Fetch environment keys\n- [x] Output to stdout or write to file\n- [ ] Support non-boolean flag types\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonlambert%2Flaunchdarkly-typegen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonlambert%2Flaunchdarkly-typegen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonlambert%2Flaunchdarkly-typegen/lists"}