Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asyncapi/generator
Use your AsyncAPI definition to generate literally anything. Markdown documentation, Node.js code, HTML documentation, anything!
https://github.com/asyncapi/generator
asyncapi codegen codegenerator documentation generator get-global-docs-autoupdate get-global-node-release-workflows get-global-releaserc hacktoberfest nodejs
Last synced: 26 days ago
JSON representation
Use your AsyncAPI definition to generate literally anything. Markdown documentation, Node.js code, HTML documentation, anything!
- Host: GitHub
- URL: https://github.com/asyncapi/generator
- Owner: asyncapi
- License: apache-2.0
- Created: 2018-07-24T13:55:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T15:45:37.000Z (6 months ago)
- Last Synced: 2024-05-21T18:07:37.535Z (6 months ago)
- Topics: asyncapi, codegen, codegenerator, documentation, generator, get-global-docs-autoupdate, get-global-node-release-workflows, get-global-releaserc, hacktoberfest, nodejs
- Language: JavaScript
- Homepage: https://asyncapi.com/docs/tools/generator
- Size: 5.72 MB
- Stars: 739
- Watchers: 19
- Forks: 204
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
- awesome-starts - asyncapi/generator - Use your AsyncAPI definition to generate literally anything. Markdown documentation, Node.js code, HTML documentation, anything! (JavaScript)
- awesome-documentation - Async API Generator - Use AsyncAPI definition to generate literally anything, including Markdown documentation and HTML documentation. (Documentation Types / API Documentation)
README
[![AsyncAPI Generator](./assets/readme-banner.png)](https://www.asyncapi.com/tools/generator)
This is a Monorepo managed using [Turborepo](https://turbo.build/) and contains the following package:
1. [Generator](apps/generator): This is a tool that you can use to generate whatever you want basing on the AsyncAPI specification file as an input.
2. [Nunjucks-filters](apps/nunjucks-filters): This library contains generator filters that can be reused across multiple templates, helping to avoid redundant work. These filters are designed specifically for Nunjucks templates and are included by default with the generator, so there's no need to add them to dependencies seprately.
![npm](https://img.shields.io/npm/v/@asyncapi/generator?style=for-the-badge) ![npm](https://img.shields.io/npm/dt/@asyncapi/generator?style=for-the-badge)
> warning: This package doesn't support AsyncAPI 1.x anymore. We recommend to upgrade to the latest AsyncAPI version using the [AsyncAPI converter](https://github.com/asyncapi/converter-js) (You can refer to [installation guide](/apps/generator//docs//installation-guide.md)). If you need to convert documents on the fly, you may use the [Node.js](https://github.com/asyncapi/converter-js) or [Go](https://github.com/asyncapi/converter-go) converters.
- [Overview](#overview)
- [List of official generator templates](#list-of-official-generator-templates)
- [Contributing](#contributing)
- [Contributors β¨](#contributors-%E2%9C%A8)## Overview
Generator is a tool that you can use to generate whatever you want basing on the AsyncAPI specification file as an input. For more information [read the docs](https://www.asyncapi.com/docs/tools/generator).
There is a large number of templates that are ready to use and are officially supported by the AsyncAPI Initiative.
## List of official generator templates
| Template Name | Description | Source code |
| --------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------------------- |
| `@asyncapi/nodejs-template` | Generates Nodejs service that uses Hermes package | [click here](https://github.com/asyncapi/nodejs-template) |
| `@asyncapi/nodejs-ws-template` | Generates Nodejs service that supports WebSockets protocol only | [click here](https://github.com/asyncapi/nodejs-ws-template) |
| `@asyncapi/java-template` | Generates Java JMS application | [click here](https://github.com/asyncapi/java-template) |
| `@asyncapi/java-spring-template` | Generates Java Spring service | [click here](https://github.com/asyncapi/java-spring-template) |
| `@asyncapi/java-spring-cloud-stream-template` | Generates Java Spring Cloud Stream service | [click here](https://github.com/asyncapi/java-spring-cloud-stream-template) |
| `@asyncapi/python-paho-template` | Generates Python service that uses Paho library | [click here](https://github.com/asyncapi/python-paho-template) |
| `@asyncapi/html-template` | Generates HTML documentation site | [click here](https://github.com/asyncapi/html-template) |
| `@asyncapi/markdown-template` | Generates documentation in Markdown file | [click here](https://github.com/asyncapi/markdown-template) |
| `@asyncapi/ts-nats-template` | Generates TypeScript NATS client | [click here](https://github.com/asyncapi/ts-nats-template/) |
| `@asyncapi/go-watermill-template` | Generates Go client using Watermill | [click here](https://github.com/asyncapi/go-watermill-template) |
| `@asyncapi/dotnet-nats-template` | Generates .NET C# client using NATS | [click here](https://github.com/asyncapi/dotnet-nats-template) |
| `@asyncapi/php-template` | Generates PHP client using RabbitMQ | [click here](https://github.com/asyncapi/php-template) |
| `@asyncapi/dotnet-rabbitmq-template` | Generates .NET C# client using RabbitMQ | [click here](https://github.com/asyncapi/dotnet-rabbitmq-template) |You can find above templates and the ones provided by the community in **[this list](https://github.com/search?q=topic%3Aasyncapi+topic%3Agenerator+topic%3Atemplate)**
# Generator Filters
This library contains generator filters that can be reused across multiple templates, helping to avoid redundant work. These filters are designed specifically for Nunjucks templates and are included by default with the generator, so there's no need to add them to dependencies seprately.
This library consists of:
- Custom filters. Check out [API docs](apps/nunjucks-filters/docs/api.md) for complete list
- Lodash-powered filters. For the list of all available filters check [official docs](https://lodash.com/docs/)## Contributing
For developement setup you can follow the detailed guide in [Developement guide](Development.md)
Read [CONTRIBUTING](CONTRIBUTING.md) guide.
## Contributors β¨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
Fran MΓ©ndez
π¬ π π» π π€ π§ π π β οΈ β
Jonas Lagoni
π¬ π π» π π€ π π β οΈ
Lukasz Gornicki
π¬ π π π» π π€ π§ π π β οΈ β π
Travis Reeder
π π
Semen
π π» π π€ π π β οΈ
Waleed Ashraf
π» π
SebastiΓ‘n
π»
Derk Muenchhausen
π»
Ben Timby
π»
Amanda Shafack
π
Florence Njeri
π π π π§
Pratik Haldankar
π π π§ π’
swastik suvam singh
π»
GavinZhengOI
π
lmgyuan
π
pierrick-boule
π» β οΈ π
Dhairya Majmudar
π
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!