---
title: "How to add WebAssembly components to IDPBuilder | Cosmonic"
description: "Deploy Cosmonic Control with IDPBuilder to run a local internal developer platform with WebAssembly components."
canonical: "https://cosmonic.com/docs/integrations/idpbuilder/"
---

# How to add WebAssembly components to IDPBuilder

[IDPBuilder](https://cnoe.io/docs/idpbuilder) is an open source tool that enables you to run a complete **internal developer platform (IDP)** on your local machine, using standard cloud-native technologies like Kubernetes and Argo CD—and requiring only Docker or a compatible container system as a dependency.

Cosmonic Control is easy to deploy with IDPBuilder, which can be helpful for platform teams working with WebAssembly (Wasm). A deployment of Cosmonic Control with IDPBuilder generally uses the following open source tools:

- [Gitea](https://gittea.dev/) - Self-hosted Git server that runs inside the Kubernetes cluster
- [Argo CD](https://argo-cd.readthedocs.io/en/stable/) - Continuous delivery system that enables GitOps workflows
- [Envoy](https://www.envoyproxy.io/) - Service proxy that provides cluster ingress

Users can push code to the local Git server to trigger Argo workflows and roll out WebAssembly workloads on Cosmonic Control.

## Why use IDPBuilder and Wasm?

For teams leveraging the [isolation, efficiency, and composability of Wasm](https://cosmonic.com/docs/platform-engineering-with-webassembly/), IDPBuilder provides...

- **Wasm helps platform teams Shift Down**: Application team tenants can use a lightweight abstraction that is more secure, portable, and easier to to maintain.
- **Accelerated application development**: Cosmonic Control features accelerative development experiences like [SandboxMCP.ai](https://sandboxmcp.ai/), enabling developers to generate MCP tools straight from OpenAPI specs and compile to Wasm artifacts.
- **Simplified IDP development**: Platform teams can quickly spin up a platform development environment that utilizes WebAssembly components, requiring only the open source [Wasm Shell](https://wasmcloud.com/docs/wash/developer-guide/) CLI to build and publish Wasm artifacts.
- **Integration testing for platforms**: Use an IDPBuilder environment for integration testing on applications and services that utilize Wasm.
- **Reference implementations**: Create a single binary which can demonstrate an IDP reference implementation.

## Walkthrough

The instructions below demonstrate how to launch an IDP environment that is pre-integrated with Cosmonic Control. After successful deployment, the following endpoints will be available:

- **Argo CD Console** ([https://argocd.localhost.cosmonic.sh:8443/](https://argocd.localhost.cosmonic.sh:8443/)) for GitOps workflow management.
- **Welcome Tour App** ([http://welcome-tour.localhost.cosmonic.sh/](http://welcome-tour.localhost.cosmonic.sh/)) as an example WebAssembly application.

### Requirements

- [Docker Engine](https://docs.docker.com/engine/install/) or compatible container system
- [`kubectl`](https://kubernetes.io/releases/download/)

### Install IDPBuilder

You can install the `idpbuilder` CLI tool via Homebrew or from the project's [GitHub releases page](https://github.com/cnoe-io/idpbuilder/releases).

Using Homebrew:

```shell
brew install cnoe-io/tap/idpbuilder
```

See the [IDPbuilder documentation](https://cnoe.io/docs/idpbuilder/installation) for more information.

### Deploy the IDP stack

Use the `idpbuilder` CLI tool to create a new IDP environment based on [the Cosmonic Labs example repository](https://github.com/cosmonic-labs/idp-stack):

```bash
idpbuilder create --host localhost.cosmonic.sh --extra-ports "80:80" -p https://github.com/cosmonic-labs/idp-stack//cosmonic-control
```

Once the IDP is successfully created, you can find the `admin` password for the cluster's Argo CD UI by running:

```shell
idpbuilder get secrets -p argocd
```

Log in with the username `admin` and the returned password to access the Argo CD UI.

![Argo CD UI](https://cosmonic.com/docs/assets/images/idpbuilder-argo-4f5d1e42257f7368273bf0f0271dd26a.webp)

Verify that all Cosmonic Control pods are running:

```shell
kubectl get pods -n cosmonic-system
```

### Deploy a Wasm component

You can use Helm to deploy another Wasm component from the [Cosmonic Template Catalog](https://cosmonic.com/docs/template-catalog/), such as the [Hono Swagger UI Example](https://cosmonic.com/docs/template-catalog/hono-swagger-ui/), directly to the cluster:

```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
```

Helm should return a result like:

```text
Pulled: ghcr.io/cosmonic-labs/charts/http-trigger:0.2.0
Digest: sha256:654fae0c312cdfc23b0a701e35466f6f15e6e052ffa22fbbb05d8defa701cf5c
NAME: hono-swagger-ui
LAST DEPLOYED: Mon Nov  3 07:21:45 2025
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
The hono-swagger-ui trigger has been deployed successfully.

The HTTP Server is serving on http://hono-swagger-ui.localhost.cosmonic.sh/ui
```

The [HTTP-trigger Chart](https://github.com/cosmonic-labs/control-demos/tree/main/charts/http-trigger) renders a [`WorkloadDeployment`](https://cosmonic.com/docs/custom-resources/#workloaddeployment) and an [`HTTPTrigger`](https://cosmonic.com/docs/custom-resources/#httptrigger) that routes to it (chart `0.2.0` and later, for Cosmonic Control v0.13.0 and later). It is customized with the [values](https://raw.githubusercontent.com/cosmonic-labs/control-demos/refs/heads/main/hono-swagger-ui/values.http-trigger.yaml) for the `hono-swagger-ui` example:

```yaml
# For the 'http-trigger' helm chart
components:
  - name: hono-swagger-ui
    image: ghcr.io/cosmonic-labs/control-demos/hono-swagger-ui:0.1.2

ingress:
  host: "hono-swagger-ui.localhost.cosmonic.sh"

hostInterfaces:
  - namespace: wasi
    package: config
    version: 0.2.0-draft
    interfaces:
      - runtime
  - namespace: wasi
    package: logging
    version: 0.1.0-draft
    interfaces:
      - logging

pathNote: "/ui"
```

Try other examples, such as the ["Blobby" blobstore fileserver example](https://cosmonic.com/docs/template-catalog/blobstore-fileserver-nats/)):

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

See the [Blobby documentation](https://cosmonic.com/docs/template-catalog/blobstore-fileserver-nats/) for instructions on usage.

### In review

In alignment with upstream standards for both WebAssembly and Kubernetes, we have deployed Cosmonic Control integrated with IDPBuilder.

We deployed Custom Resource Definitions (CRDs) for wasmCloud and Cosmonic Control:

```shell
kubectl get crd -A | grep -E "wasmcloud|cosmonic"
```

```text
artifacts.runtime.wasmcloud.dev             2025-11-02T16:11:48Z
hosts.runtime.wasmcloud.dev                 2025-11-02T16:11:48Z
httptriggers.control.cosmonic.io            2025-11-02T16:11:48Z
projectenvironments.control.cosmonic.io     2025-11-02T16:11:48Z
workloaddeployments.runtime.wasmcloud.dev   2025-11-02T16:11:48Z
workloadreplicasets.runtime.wasmcloud.dev   2025-11-02T16:11:48Z
workloads.runtime.wasmcloud.dev             2025-11-02T16:11:48Z
```

The Cosmonic operator was deployed to watch those CRDs:

```shell
kubectl get deploy -A | grep -i operator
```

```text
cosmonic-system      operator                           1/1     1            1           20h
```

We set up three HTTP workloads, each running in their own sandbox, in two different namespaces, on a single multi-tenant wasmCloud host:

```shell
kubectl get workloads -A
```

```text
NAMESPACE         NAME                                              HOSTID                                 READY
cosmonic-system   welcome-tour-94dbb874f-7dcb86c9c6-56c59c99f8      f752cb64-3861-4e4d-9a70-21ec4a7ef001   True
default           blobby-8488c98f44-6855b68dfc-6466cf6c6c           f752cb64-3861-4e4d-9a70-21ec4a7ef001   True
default           hono-swagger-ui-85d4547558-84d47ddc96-c9b8768b9   f752cb64-3861-4e4d-9a70-21ec4a7ef001   True
```

### Clean up

Delete the IDP:

```shell
idpbuilder delete
```

Make sure the `kind` cluster has been deleted:

```shell
kind delete cluster
```

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