
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
@btodell/asyncapi-html-template
Advanced tools
HTML template for the AsyncAPI Generator using an AsyncAPI React Component under the hood.
ag asyncapi.yaml @asyncapi/html-template -o output
If you don't have the AsyncAPI Generator installed, you can install it like this:
npm install -g @asyncapi/generator
| Name | Description | Required | Default | Allowed values | Example |
|---|---|---|---|---|---|
| sidebarOrganization | Defines how the sidebar should be organized. Set its value to byTagsNoRoot to categorize operations by operations tags. Set its value to byTags when you have tags on a root level. These tags are used to model tags navigation and need to have the same tags in operations. | No | undefined | byTags, byTagsNoRoot | byTagsNoRoot |
| baseHref | Sets the base URL for links and forms. | No | / | Any | /docs |
| version | Override the version of your application provided under info.version location in the specification file. | No | Version is taken from the spec file. | Any (See Semver versioning) | 1.0.0 |
| singleFile | Set output into one html-file with styles and scripts inside | No | false | true,false | true |
| outFilename | The filename of the output file. | No | index.html | Any | asyncapi.html |
| Generates output HTML as PDF | No | false | true,false | false | |
| config | Inline stringified JSON or a path to a JSON file to override default React component config. The config override is merged with the default config using the JSON Merge Patch algorithm. | No | { "show": { "sidebar": true }, "sidebar": { "showOperations": "byDefault" } } | JSON config for the React component | {"show":{"sidebar":false}} |
NOTE: If you only generate an HTML website, set the environment variable
PUPPETEER_SKIP_CHROMIUM_DOWNLOADtotrueand the generator will skip downloading chromium.
The HTML-Template is built with an AsyncAPI React Component. For any changes regarding the styling of the page, rendering of the missing/existing elements, please contribute to the AsyncAPI React Component repository.
If you want make changes in template itself, please follow:
Make sure you have the latest generator installed: npm install -g @asyncapi/generator.
Modify the template or its helper functions.
NOTE: If you have to modify the
dummy.ymlfile to develop your features, open a PR with the changes in the asyncapi/generator repository.
Generate output with watcher enabled: npm run develop.
NOTE: If your changes are not visible, this is maybe because the
aguse the already installedhtml-templateso you should use the--installoption
- run
npm run develop:install- if command failed, delete the cached
html-templatemodule in your system and re-rerun the command
Open HTML in your browser: open ./test/output/index.html.
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
FAQs
HTML template for the AsyncAPI generator.
The npm package @btodell/asyncapi-html-template receives a total of 2 weekly downloads. As such, @btodell/asyncapi-html-template popularity was classified as not popular.
We found that @btodell/asyncapi-html-template demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.