Skip to content
Projetos

springwolf/springwolf-core

Ver no GitHub

Sobre

Documentação automatizada para aplicações orientadas a eventos desenvolvidas com Spring Boot.

Desenvolvimento web e de aplicativos

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
0
em 7 dias
0
em 15 dias
0
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

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

💻

Explore projetos relacionados

Carregando…