Building the product · Independent · 26 Oct 2026

swagger-api/swagger-codegen

swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.

← Building the product
Swagger Codegen: API code generator. Turns API description files into client code.
Verified26 Oct 2026

Radar check

What we found when we opened it. Every bar is one fact, with its date.

Alive100

Last code pushed 26 Oct 2026, the same day before this check.

Releases100

Latest release v2.4.53 on 22 Oct 2026.

Maturity100

Public since July 2011, a little over 15 years.

Adoption85

17,792 stars and 5,947 forks.

Activity25

6 commits and 2 new issues in the last 90 days.

Community100

1,248 contributors. 13 pull requests merged in 90 days.

Security40

No security policy file says how to report a problem. 2 published security advisories.

Licence Apache-2.0: permissive: use it for anything, keep the noticeSetup effort 3 of 5Payoff 4 of 5
How the bars are scored
  • Alive. Days since the last code push: a week or less 100, a month 90, three months 70, six months 50, a year 30, eighteen months 15, older 0.
  • Releases. Age of the latest GitHub release, on a similar scale; no bar when the project publishes no releases.
  • Maturity. Age of the project: eight years 100, five 90, three 70, two 55, one 40, six months 25, younger 10.
  • Adoption. Stars on a log scale: 100,000 stars is 100, 10,000 is 80, 1,000 is 60, 100 is 40.
  • Activity. Commits in the last 90 days: 300 or more 100, 100 85, 30 65, 10 45, any 25.
  • Community. People who have contributed: 100 or more 100, 30 80, 10 60, 5 40, 2 25, one 10.
  • Security. A published security policy 80, none 40; published advisories are listed, not scored.

Checked by Repo Radar on 26 Oct 2026 from the repository on GitHub.

In simple English

You give this program a text file that describes your web API. It reads the file and writes working code in dozens of programming languages. You save days of writing boilerplate code by hand when you change your API. You need Java installed on your computer to run it, and some familiarity with the command line. It costs nothing to use and is free of ongoing fees.

What it is

A command-line tool and template engine that turns an OpenAPI specification into client libraries, server stubs, and HTML documentation across dozens of programming languages. It supports multiple versions of the OpenAPI specification through its independently maintained version branches.

What it is good for

Solo builders who need to generate a client library in a specific language for an existing API, or want to create starter code for a new server without writing network request code by hand.

Stars18k
LicenceApache-2.0
Latestv2.4.53 (2026-10-22)checked 26 Oct 2026
Last code change2026-10-26
Written inMustache
Setup effort
3 / 5
Payoff
4 / 5
Good
  • Supports dozens of programming languages for both clients and server stubs.
  • Can generate static or dynamic HTML documentation directly from your API file.
  • Integrates into build tools like Maven and Gradle for automated pipelines.
Watch for
  • Requires Java (a programming platform needed to run Java applications) to be installed on your machine.
  • High number of open issues on GitHub means community support for bugs can be slow.
  • Generated code quality varies wildly depending on the target language and template used.
Replaces

Writing API client libraries and server request handling code by hand.

Works well with

OpenAPI Specification (a standard format for describing web APIs in JSON or YAML)

Similar repositories
  • swagger-api/swagger-ui29k stars

    Renders interactive API documentation in a browser from the same OpenAPI definition files.

Also reviewed on Repo Radar
  • evanw/esbuild40k stars

    Joins many JavaScript, TypeScript and CSS files into one, in well under a second.

  • Textualize/textual38k stars

    Lets a Python program draw a real interface inside a terminal, and serve the same thing to a browser.

  • python-attrs/cattrs1.1k stars

    Turns loose data into declared Python objects, and declared objects back into loose data.

Install
git clone https://github.com/swagger-api/swagger-codegen
cd swagger-codegen
mvn clean package

Independent: reviewed for Repo Radar outside the daily editions. Every independent repository

On Stack Radar: Build & Ship › APIs & Developer Utilities › API Client Libraries & SDKs.

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.