npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@workos/oagen-emitters

v0.12.3

Published

WorkOS' oagen emitters

Readme

oagen-emitters

Language emitters, extractors, and smoke runners for 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`).

Plugin export

The primary export for consumers is the workosEmittersPlugin bundle:

import { workosEmittersPlugin } from "@workos/oagen-emitters";

const config: OagenConfig = {
  ...workosEmittersPlugin,
  // consumer-owned spec policy goes here
  docUrl: "https://workos.com/docs",
  operationHints,
  mountRules,
  modelHints,
};

The plugin bundle registers all emitters, extractors, and smoke runners provided by this package.

Development

npm install
npm test          # run emitter unit tests
npm run typecheck # verify types
npm run build     # build dist/ output

Using a local oagen checkout

npm run oagen:use:local     # build and link ../oagen
npm run oagen:build:local   # rebuild ../oagen after changes
npm run oagen:use:published # switch back to published package
npm run git:push -- <args>  # push with published oagen, then restore local link

Emitter development

Each emitter lives in src/<lang>/ and implements the Emitter interface from @workos/oagen. Extractors live in src/compat/extractors/<lang>.ts. Smoke runners live in smoke/sdk-<lang>.ts.

When building or changing an emitter:

  1. Implement or update the emitter code in src/<lang>/
  2. Implement or update the extractor in src/compat/extractors/ if needed
  3. Implement or update the smoke runner in smoke/ if needed
  4. Export the emitter through src/plugin.ts and src/index.ts
  5. Run npm test and npm run typecheck
  6. Switch to the consumer project (e.g. openapi-spec) and run the real end-to-end flow

Adding a new language

Use the oagen skills:

claude --plugin-dir node_modules/@workos/oagen
/oagen:generate-sdk <language>

This orchestrates: emitter scaffolding, extractor, compat verification, smoke tests, and integration.