Generate AsyncAPI documentation from your Spring Boot event-driven application
Get started Β· Try the demo Β· View a generated AsyncAPI document Β· Read the documentation Β· Join Discord
Springwolf generates an AsyncAPI document from your event-driven Spring application.
For supported brokers, it discovers endpoints from listener annotations such as @KafkaListener, @RabbitListener, and @SqsListener.
It is inspired by Springfox, but focuses on asynchronous APIs rather than HTTP/OpenAPI APIs.
The generated document can be shared as JSON or YAML or integrated into API hubs such as Backstage.
The optional springwolf-ui provides a browser UI with example payloads and can publish messages for testing.
| Springwolf UI | Message publishing |
|---|---|
![]() |
![]() |
| Click to try the demo | Due to security concerns, publishing must be enabled in the configuration |
All Springwolf plugins, artifacts, bindings, and add-ons use the same version. Use the release or snapshot version shown below:
| Integration | Detected listeners / endpoints | Artifact | Example |
|---|---|---|---|
| AMQP | @RabbitListener |
io.github.springwolf:springwolf-amqp |
Example code |
| AWS SNS | N/A | io.github.springwolf:springwolf-sns |
Example code |
| AWS SQS | @SqsListener |
io.github.springwolf:springwolf-sqs |
Example code |
| Cloud Stream | Functional @Bean |
io.github.springwolf:springwolf-cloud-stream |
Example code |
| JMS | @JmsListener |
io.github.springwolf:springwolf-jms |
Example code |
| Kafka | @KafkaListener, @KafkaHandler |
io.github.springwolf:springwolf-kafka |
Example code |
| STOMP / WebSocket | @MessageMapping, @SendTo, @SendToUser |
io.github.springwolf:springwolf-stomp |
Example code |
| Something missing? | Use @AsyncListener, @AsyncPublisher |
io.github.springwolf:springwolf-core |
Docs or check Kafka example |
For a Spring Boot application using Spring Kafka, add the Springwolf Kafka plugin:
dependencies {
implementation 'io.github.springwolf:springwolf-kafka:<springwolf-version>'
implementation 'io.github.springwolf:springwolf-web:<springwolf-version>' // optional, exposes the AsyncAPI document
implementation 'io.github.springwolf:springwolf-ui:<springwolf-version>' // optional, requires springwolf-web
}At startup, Springwolf scans your application for supported listener and publisher annotations (such as @KafkaListener) and generates an AsyncAPI document.
Alternatively use the standalone mode to generate or verify an existing AsyncAPI document as part of your tests.
- Open
http://localhost:8080/springwolf/docsto view the AsyncAPI document - Open
http://localhost:8080/springwolf/asyncapi-ui.htmlto use thespringwolf-uiwebsite.
Configuration comes with sensible defaults and is documented on springwolf.dev.
Browse GitHub releases for release notes, changes, and migration guidance.
Further artifacts apart from the integration plugins above:
| Artifact | Contents |
|---|---|
io.github.springwolf:springwolf-asyncapi |
JVM model and builders for the AsyncAPI specification. |
io.github.springwolf:springwolf-core |
Spring integration that scans endpoints and generates the AsyncAPI document. |
io.github.springwolf:springwolf-web |
Exposes the generated AsyncAPI document via a REST controller. |
io.github.springwolf:springwolf-ui |
Browser UI for viewing the generated document and example payloads. |
io.github.springwolf:springwolf-bindings |
Annotations and models for protocol-specific AsyncAPI bindings. |
io.github.springwolf:springwolf-common-model-converters |
Shared converters for mapping Java types to AsyncAPI schemas. |
io.github.springwolf:springwolf-json-schema |
Adds JSON Schema representations to detected AsyncAPI schemas. |
io.github.springwolf:springwolf-kotlinx-serialization-model-converter |
Converts Kotlinx-serialized classes to AsyncAPI schemas, including @SerialName values. |
The current release line targets Spring Boot 4 with Jackson 3.
| Spring Boot | Springwolf versions | Support status |
|---|---|---|
| 4.x | 3.x | Current release line. Uses Jackson 3 |
| 4.x | 2.x | Legacy; no further updates. Uses Jackson 2 |
| 3.x | Up to 1.20.0 | Legacy; no further updates. Uses Spring Boot 3 |
| 2.x | Older, plugin-specific versions | Legacy; no further updates. Uses Spring Boot 2 |
For Sonatype snapshots, add the snapshot repository to your Gradle build:
repositories {
// ...
maven {
url "https://central.sonatype.com/repository/maven-snapshots/" // build.gradle
// url = uri("https://central.sonatype.com/repository/maven-snapshots/") // build.gradle.kts
}
}For Maven, add the snapshot repository to your pom.xml:
<repositories>
<repository>
<id>oss-sonatype</id>
<name>oss-sonatype</name>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>For local releases, run the publishToMavenLocal Gradle task.
The current version number is set in the .env file.
Add mavenLocal() to the repositories section.
For setup problems, see the FAQ, including UI troubleshooting.
To report a bug or request a feature, open an issue; for questions and discussion, join Discord.
To contribute, start with the contribution guide.


