---
title: "TypeScript HTTP Hello World | wasmCloud"
description: "This repository contains a Hello World HTTP WebAssembly component example, written in TypeScript."
canonical: "https://wasmcloud.com/docs/v1/examples/typescript/component/http-hello-world/"
---

This is documentation for wasmCloud **v1**, which is no longer actively maintained.

For up-to-date documentation, see the **[latest version](https://wasmcloud.com/docs/)** (v2).

Version: v1

# TypeScript HTTP Hello World

This repository contains a Hello World HTTP WebAssembly component example, written in [TypeScript](https://www.typescriptlang.org/).

This component:

- Uses [TypeScript](https://www.typescriptlang.org/) for its implementation
- Uses the [`wasi:http`](https://github.com/WebAssembly/wasi-http) standard WIT definitions
- Returns `"hello from TypeScript"` to all HTTP requests

# Dependencies

> !\[WARN\] When building this project, ensure you are using a stable NodeJS release.
>
> Use of node version management tools (ex. [`nvm`](https://github.com/nvm-sh/nvm) or more newer NVM compatible tools like [`fnm`](https://github.com/Schniz/fnm)) are recommended -- a `.nvmrc` file is included for easy use.

Building this project relies on the following software:

| Name | Description |
| --- | --- |
| `wash` | [Wasm Shell](https://github.com/wasmCloud/wash) helps build, develop, and publish WebAssembly components |
| `npm` | [Node Package Manager (NPM)](https://github.com/npm/cli) manages packages for the NodeJS ecosystem |
| `node` | \[NodeJS runtime\]\[nodejs\] (see `.nvmrc` for version) |

# Quickstart

To get started developing this repository quickly, clone the repo and run `wash dev`:

console

```console
wash dev
```

`wash dev` does many things for you:

- Builds this project (including necessary `npm` script targets)
- Runs the component locally, exposing the application at `localhost:8000`
- Watches your code for changes and re-deploys when necessary.

## Send a request to the running component

Once `wash dev` is serving your component, send a request to the running component:

console

```console
curl localhost:8000
```

## Adding Capabilities

To learn how to extend this example with additional capabilities, see the [Adding Capabilities](https://wasmcloud.com/docs/v1/tour/add-features/?lang=typescript) section of the wasmCloud documentation.

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