Skip to content

Latest commit

Β 

History

2,104 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Latest release License Core build Plugins build UI build Web build

Springwolf logo Springwolf

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

What Springwolf does

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.

springwolf-ui

The optional springwolf-ui provides a browser UI with example payloads and can publish messages for testing.

Springwolf UI Message publishing
Springwolf UI displaying generated channels, schemas, and example payloads Springwolf UI showing the publish button for an example message
Click to try the demo Due to security concerns, publishing must be enabled in the configuration

Supported integrations

All Springwolf plugins, artifacts, bindings, and add-ons use the same version. Use the release or snapshot version shown below:

Maven Central Sonatype snapshots

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

Quick start

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.

Configuration

Configuration comes with sensible defaults and is documented on springwolf.dev.

Springwolf configuration documentation showing optional application properties

Releases

Browse GitHub releases for release notes, changes, and migration guidance.

Artifacts

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.

Compatibility

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

Using SNAPSHOT version

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>

Local releases

For local releases, run the publishToMavenLocal Gradle task.

The current version number is set in the .env file.

Add mavenLocal() to the repositories section.

Help and contributing

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.

Contributors

Stav Shamir
Stav Shamir

πŸ’»
Timon Back
Timon Back

πŸ’»
sam0r040
sam0r040

πŸ’»
Carlos Tasada
Carlos Tasada

πŸ’»
jrlambs
jrlambs

πŸ’»
DmitriButorchin
DmitriButorchin

πŸ’»
Thomas Vahrst
Thomas Vahrst

πŸ’»
Yasen Pavlov
Yasen Pavlov

πŸ’»
Arthur Geweiler
Arthur Geweiler

πŸ’»
CS-BASF
CS-BASF

πŸ’»
Jeroen van Wilgenburg
Jeroen van Wilgenburg

πŸ’»
Michael Strelchenko
Michael Strelchenko

πŸ’»
Olivier Gaudefroy
Olivier Gaudefroy

πŸ’»
Omerbea
Omerbea

πŸ’»
Pavel Bodiachevskii
Pavel Bodiachevskii

πŸ’»
Sergio RoldΓ‘n
Sergio RoldΓ‘n

πŸ’»
Stmated
Stmated

πŸ’»
Themistoklis Pyrgiotis
Themistoklis Pyrgiotis

πŸ’»
Zach Hubbs
Zach Hubbs

πŸ’»
biergit
biergit

πŸ’»
kalarani
kalarani

πŸ’»
Dipesh Singh
Dipesh Singh

πŸ’»
Sakshi Jain
Sakshi Jain

πŸ’»
Sheheryar Aamir
Sheheryar Aamir

πŸ’»
jmwestbe
jmwestbe

πŸ’»
pdalfarr
pdalfarr

πŸ’»
Krzysztof KwiecieΕ„
Krzysztof KwiecieΕ„

πŸ’»
Robert Henke
Robert Henke

πŸ’»
Raphael De Lio
Raphael De Lio

πŸ’»
Nikita Marunko
Nikita Marunko

πŸ’»
Victor Levitskiy
Victor Levitskiy

πŸ’»
Christopher Cudennec
Christopher Cudennec

πŸ’»
dabeck81
dabeck81

πŸ’»
Jan Marten
Jan Marten

πŸ’»
FabianBesner2020
FabianBesner2020

πŸ’»
Norbert Wirges
Norbert Wirges

πŸ’»
Tomas Tulka
Tomas Tulka

πŸ’»
Elys Rivero
Elys Rivero

πŸ’»
AlexElin
AlexElin

πŸ’»
antoine VAISSET
antoine VAISSET

πŸ’»
Karlender
Karlender

πŸ’»
Steffen
Steffen

πŸ’»
risingcult
risingcult

πŸ’»
Hamzeh Adawi
Hamzeh Adawi

πŸ’»
Haisia
Haisia

πŸ’»
Emanuel Trandafir
Emanuel Trandafir

πŸ’»
Revan Channa
Revan Channa

πŸ’»
Skypha
Skypha

πŸ’»
Adrien-dev25
Adrien-dev25

πŸ’»
Noorul Misbah
Noorul Misbah

πŸ’»
Andres Zapata
Andres Zapata

πŸ’»

Releases

Used by

Contributors

Languages