---
title: "Hono Swagger UI | Cosmonic"
description: "Interactive API documentation built on the Hono HTTP framework and Swagger UI middleware, deployed as a Wasm component."
canonical: "https://cosmonic.com/docs/template-catalog/hono-swagger-ui/"
---

# Hono Swagger UI

A tool for documenting and testing RESTful APIs, built on the [Hono HTTP framework](https://hono.dev/docs/) and the [Swagger UI](https://swagger.io/docs/open-source-tools/swagger-ui/usage/installation/) middleware.

The component provides an interactive documentation interface based on a given OpenAPI specification.

## Deploy with Helm

```shell
helm install hono-swagger-ui --version 0.2.0 oci://ghcr.io/cosmonic-labs/charts/http-trigger -f https://raw.githubusercontent.com/cosmonic-labs/control-demos/refs/heads/main/hono-swagger-ui/values.http-trigger.yaml
```

**Repository**: [`cosmonic-labs/control-demos/hono-swagger-ui`](https://github.com/cosmonic-labs/control-demos/tree/main/hono-swagger-ui)  
**Languages**: TypeScript  
**Interfaces**: `wasi/http`

## Running on Kubernetes

You will need a local Kubernetes environment with Cosmonic Control installed according to the [Get Started](https://cosmonic.com/docs/install-cosmonic-control/) guide.

Open browser to [http://hono-swagger-ui.localhost.cosmonic.sh/ui](http://hono-swagger-ui.localhost.cosmonic.sh/ui) to see the example.

![screenshot](https://cosmonic.com/docs/assets/images/hono-swagger-ui-screenshot-a022be9aba25c3e420bbbff6421c789d.webp)

## Development

Development requirements:

- [`node` - NodeJS runtime](https://nodejs.org) (see `.nvmrc` for version)
- [`npm` - Node Package Manager (NPM)](https://github.com/npm/cli) manages packages for the NodeJS ecosystem
- [`wash` - Wasm Shell](https://github.com/wasmCloud/wasmcloud) **v2.0.4** for developing and building Wasm components

Clone the [`cosmonic-labs/control-demos`](https://github.com/cosmonic-labs/control-demos) repository:

```shell
git clone https://github.com/cosmonic-labs/control-demos.git
```

```shell
cd control-demos/hono-swagger-ui
```

Start the development loop:

```shell
wash dev
```

or

```shell
npm run start
```

When using `wash dev`, the application is accessible at localhost:8000. View the code and make changes in `src/index.ts`.

You can cancel the `wash dev` process with `Ctrl-C`.

### Build the Wasm Binary

Compile the component:

```shell
wash build
```

The `.wasm` binary will output to `./dist`.

## Learn More

- See the wasmCloud Developer Guide for instructions on [pushing your Wasm component to an OCI registry](https://wasmcloud.com/docs/wash/developer-guide/).

- To learn how to extend this example with additional capabilities, see the [Adding Capabilities](https://wasmcloud.com/docs/tour/adding-capabilities?lang=rust) section of the wasmCloud documentation.
- For more on building components in Go, see the [Component Developer Guide](https://wasmcloud.com/docs/developer/languages/go/components/) in the wasmCloud documentation.

Last updated on **Nov 10, 2026** by **Liam Randall**
