{"id":48838833,"url":"https://github.com/workos/oagen-emitters","last_synced_at":"2026-05-06T02:06:11.512Z","repository":{"id":346402555,"uuid":"1185505356","full_name":"workos/oagen-emitters","owner":"workos","description":"WorkOS' oagen emitters","archived":false,"fork":false,"pushed_at":"2026-04-27T00:45:48.000Z","size":1100,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-27T02:34:37.974Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/workos.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-18T16:48:56.000Z","updated_at":"2026-04-27T00:45:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"be5bb38a-ff60-47a8-9ad6-1dd7c64b51a1","html_url":"https://github.com/workos/oagen-emitters","commit_stats":null,"previous_names":["workos/oagen-emitters"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/workos/oagen-emitters","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Foagen-emitters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Foagen-emitters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Foagen-emitters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Foagen-emitters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/workos","download_url":"https://codeload.github.com/workos/oagen-emitters/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Foagen-emitters/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32552379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T22:28:24.418Z","status":"ssl_error","status_checked_at":"2026-05-02T22:28:14.225Z","response_time":132,"last_error":"SSL_read: 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":[],"created_at":"2026-04-15T01:00:38.614Z","updated_at":"2026-05-06T02:06:11.487Z","avatar_url":"https://github.com/workos.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oagen-emitters\n\nLanguage emitters, extractors, and smoke runners for [oagen](../oagen). This package is a **plugin library** -- it provides SDK generation capabilities but does not own the consumer config. The canonical generation config lives in the spec-consuming project (e.g. https://github.com/workos/openapi-spec/oagen.config.ts`).\n\n## Plugin export\n\nThe primary export for consumers is the `workosEmittersPlugin` bundle:\n\n```ts\nimport { workosEmittersPlugin } from \"@workos/oagen-emitters\";\n\nconst config: OagenConfig = {\n  ...workosEmittersPlugin,\n  // consumer-owned spec policy goes here\n  docUrl: \"https://workos.com/docs\",\n  operationHints,\n  mountRules,\n};\n```\n\nThe plugin bundle registers all emitters, extractors, and smoke runners provided by this package.\n\n## Development\n\n```bash\nnpm install\nnpm test          # run emitter unit tests\nnpm run typecheck # verify types\nnpm run build     # build dist/ output\n```\n\n### Using a local `oagen` checkout\n\n```bash\nnpm run oagen:use:local     # build and link ../oagen\nnpm run oagen:build:local   # rebuild ../oagen after changes\nnpm run oagen:use:published # switch back to published package\nnpm run git:push -- \u003cargs\u003e  # push with published oagen, then restore local link\n```\n\n## Emitter development\n\nEach emitter lives in `src/\u003clang\u003e/` and implements the `Emitter` interface from `@workos/oagen`. Extractors live in `src/compat/extractors/\u003clang\u003e.ts`. Smoke runners live in `smoke/sdk-\u003clang\u003e.ts`.\n\nWhen building or changing an emitter:\n\n1. Implement or update the emitter code in `src/\u003clang\u003e/`\n2. Implement or update the extractor in `src/compat/extractors/` if needed\n3. Implement or update the smoke runner in `smoke/` if needed\n4. Export the emitter through `src/plugin.ts` and `src/index.ts`\n5. Run `npm test` and `npm run typecheck`\n6. Switch to the consumer project (e.g. `openapi-spec`) and run the real end-to-end flow\n\n### Adding a new language\n\nUse the oagen skills:\n\n```bash\nclaude --plugin-dir node_modules/@workos/oagen\n/oagen:generate-sdk \u003clanguage\u003e\n```\n\nThis orchestrates: emitter scaffolding, extractor, compat verification, smoke tests, and integration.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkos%2Foagen-emitters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworkos%2Foagen-emitters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkos%2Foagen-emitters/lists"}