AsyncAPI Viewer and Validator

Paste an AsyncAPI file to check its structure, explore each channel and message with example payloads, see a producer and consumer diagram and export docs.

ทำงานในเบราว์เซอร์ของคุณ ไฟล์ไม่ออกจากอุปกรณ์ ดูวิธีตรวจสอบ

…

วิธีทำ

  1. 1
    Paste the document

    Paste or open an AsyncAPI 2.x or 3.x file.

  2. 2
    Check validity

    Look at the badge and the Validation tab for errors.

  3. 3
    Browse channels

    Tap a channel to see its direction, parameters and messages.

  4. 4
    Copy examples

    Copy or download generated payload examples.

  5. 5
    View the flow

    Open the diagram and download it as SVG.

  6. 6
    Export docs

    Save a standalone HTML documentation page.

เกี่ยวกับเครื่องมือนี้

AsyncAPI does for event-driven systems what OpenAPI does for HTTP: it describes the brokers, channels, operations and message payloads of a service that talks over Kafka, MQTT, AMQP, WebSockets or similar protocols. Version 3.0 changed the model significantly. Channels now have an address and a set of messages, operations sit in their own section with an action of send or receive, and the confusing publish and subscribe verbs of version 2 are gone. Teams often have files in both versions, and reading them as raw YAML makes it hard to see what a service actually produces and consumes. This viewer accepts 2.x and 3.x documents, checks the required structure and references, lists channels with their direction from the application's point of view, shows each message with its schema and a generated example payload, draws a flow diagram of what the app sends and receives, and exports a single HTML documentation page you can share.

Validation

The checker confirms the asyncapi version, info title and version, servers with url (2.x) or host (3.x) and protocol, and that every local $ref points to something. In 2.x each publish or subscribe operation needs a message. In 3.x every operation needs action send or receive and a channel reference that exists, and every parameter placeholder in a channel address must be defined under parameters.

Direction

In AsyncAPI 2, publish describes what other applications publish to the channel, so the documented application receives it, and subscribe means the application sends. Version 3 states it directly. The viewer normalises both to send and receive so the channel list and the diagram always describe the application itself.

Messages and examples

For each message the tool shows the name, content type and payload schema, and builds an example from examples, defaults, enums and formats such as uuid and date-time. Examples can be copied or downloaded as JSON fixtures for tests.

Flow diagram and docs

The diagram puts the application in the middle with sent channels on the right and received channels on the left. Download it as SVG, or export an HTML page with servers, the diagram, every channel and message, schemas and examples.

Limits

This is a structural check, not the full official JSON Schema validation, and external $ref files and traits are not loaded. Protocol bindings are shown as written but not validated. Payload examples are generated from the schema and may not satisfy every constraint.

ตัวอย่างพร้อมวิธีทำ

An order service described three channels in AsyncAPI 3.0: shop.orders.created and a per-order paid channel with an orderId parameter, which it sends, and shop.stock.reserved, which it receives. The validator reported no errors and the diagram showed two green outgoing arrows and one amber incoming arrow. The OrderCreated example came out as an id in uuid form, a total of 59.9 and an ISO timestamp. Removing the parameters block from the paid channel produced one error naming the undefined orderId parameter, and the exported HTML page opened offline with the same diagram.

สรุปสั้น ๆ

คำถามที่พบบ่อย

Which versions are supported?

AsyncAPI 2.0 to 2.6 and 3.0, in YAML or JSON.

Why does a publish operation show as receive?

In 2.x, publish means other apps publish to that channel, so your app receives. Version 3 removed this confusion with explicit send and receive actions.

Can it convert 2.x files to 3.0?

No. It reads both versions into one model for viewing, but it does not write a converted file. The official converter does that.

Are Avro or Protobuf payloads supported?

The viewer shows any schema, but examples are only generated for JSON Schema payloads.

Does the HTML export need a server?

No. It is a single self-contained file you can open locally or attach to a wiki.

Is my document uploaded?

No. It is parsed in your browser and kept only as a local draft with undo.

ฟรีทั้งหมดไม่มีค่าใช้จ่าย ไม่ต้องสมัคร
ไฟล์เป็นส่วนตัวทุกอย่างทำงานในเบราว์เซอร์ของคุณ
ใช้ง่ายในภาษาของคุณมีหลายภาษา