# Build an HTTP server using StricJS and Bun (/docs/guides/ecosystem/stric)

<!-- agent-signals: reading_time_min: 1 · est_tokens: 312 · updated: 2026-07-28 -->
Related: [Build an app with Astro and Bun](/docs/guides/ecosystem/astro.md), [Create a Discord bot](/docs/guides/ecosystem/discordjs.md), [Containerize a Bun application with Docker](/docs/guides/ecosystem/docker.md), [Use Drizzle ORM with Bun](/docs/guides/ecosystem/drizzle.md), [Use Gel with Bun](/docs/guides/ecosystem/gel.md), [Build an HTTP server using Elysia and Bun](/docs/guides/ecosystem/elysia.md)

[StricJS](https://github.com/bunsvr) is a Bun framework for building high-performance web applications and APIs.

* **Fast** — Stric is one of the fastest Bun frameworks. See the [benchmark](https://github.com/bunsvr/benchmark).
* **Minimal** — Core components like `@stricjs/router` and `@stricjs/utils` are under 50kB and require no external dependencies.
* **Extensible** — Stric includes a plugin system, dependency injection, and optional optimizations for handling requests.

***

Use `bun init` to create an empty project.

```bash terminal icon="terminal"
mkdir myapp
cd myapp
bun init
bun add @stricjs/router @stricjs/utils
```

***

To implement an HTTP server with StricJS:

```ts index.ts icon="file-code"
import { Router } from "@stricjs/router";

export default new Router().get("/", () => new Response("Hi"));
```

***

To serve static files from `/public`:

```ts index.ts icon="file-code"
import { dir } from "@stricjs/utils";

export default new Router().get("/", () => new Response("Hi")).get("/*", dir("./public"));
```

***

Run the file in watch mode to start the development server.

```bash terminal icon="terminal"
bun --watch run index.ts
```

***

For more info, see Stric's [documentation](https://stricjs.netlify.app).
