@inngest/asyncapi
v0.1.0
Published
Generate AsyncAPI specs from your Inngest account
Downloads
9
Readme
Inngest AsyncAPI
Automatically generate an AsyncAPI spec file from your Inngest Cloud account.
After being logged in with the Inngest CLI you can quickly generate an AsyncAPI schema from your account using the following command:
npx @inngest/asyncapi
You should now have a properly formatted AsyncAPI spec in a new spec.yaml
file!
You can now explore your spec using the AsyncAPI Studio. You can do this right on the web studio or with the Async API CLI:
npm install -g @asyncapi/cli
asyncapi start studio -f ./spec.yaml
That's it! You should now be viewing your automatically generated API spec from your Inngest Cloud events.
Why
Why AsyncAPI? AsyncAPI is awesome because it is a standard specification which can be used to document event-driven systems. It can also be used with tools that can generate code or system architecture diagrams.
Why this works with Inngest? Inngest Cloud parses and saves the schema of every single event that is received in multiple formats: JSONSchema, Cue, and as a TypeScript type.
Inngest Cloud can be combined with AsyncAPI to create a self-documenting event-driven system architecture.