# @fastly/expressly

> Express-style router for Fastly Compute.

Latest version **2.5.0** (published 2026-10-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @fastly/expressly
pnpm add @fastly/expressly
yarn add @fastly/expressly
bun add @fastly/expressly
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 2.5.0 |
| Published | 2026-10-15 |
| First published | 2022-06-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=18 |
| Dependencies | 4 |
| Unpacked size | 33.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 26 |
| Author | oss@fastly.com |
| Keywords | fastly, compute, edge, router |

## Links

- npm: https://www.npmjs.com/package/@fastly/expressly
- Repository: https://github.com/fastly/expressly
- Homepage: https://github.com/fastly/expressly#readme
- Issues: https://github.com/fastly/expressly/issues
- npm.io page: https://npm.io/package/@fastly/expressly

## Dependencies (4)

- [mitt](https://npm.io/package/mitt.md) ^3.0.1
- [cookie](https://npm.io/package/cookie.md) ^1.1.1
- [core-js](https://npm.io/package/core-js.md) ^3.35.0
- [path-to-regexp](https://npm.io/package/path-to-regexp.md) ^6.2.1

## Alternatives

- [express-promise-router](https://npm.io/package/express-promise-router.md) — 736.1K weekly downloads
- [next-usequerystate](https://npm.io/package/next-usequerystate.md) — 29.8K weekly downloads
- [@bitkyc08/opencodex](https://npm.io/package/@bitkyc08/opencodex.md) — 4.6K weekly downloads
- [lynkr](https://npm.io/package/lynkr.md) — 575 weekly downloads
- [baremetal.js](https://npm.io/package/baremetal.js.md) — 42 weekly downloads

## Recent versions

- 2.5.0 (latest) — 2026-10-15
- 2.2.2--canary.52.7473191090.0 (canary) — 2024-01-10
- 1.4.0 (v1-latest) — 2023-04-11
- 2.4.0 — 2026-02-12
- 2.3.0 — 2024-01-10
- 2.2.2--canary.52.7464760000.0 — 2024-01-09
- 2.2.2--canary.52.7464747969.0 — 2024-01-09
- 2.2.2--canary.52.7397385838.0 — 2024-01-03
- 2.2.2--canary.52.7397375422.0 — 2024-01-03
- 2.2.2--canary.50.6640254340.0 — 2023-10-25
- 2.2.2--canary.50.6627915981.0 — 2023-10-24
- 2.2.2--canary.50.6627904674.0 — 2023-10-24
- 2.2.1 — 2023-10-24
- 2.2.0 — 2023-10-19
- 2.2.1--canary.47.6578278940.0 — 2023-10-19
- … 48 more at https://npm.io/package/@fastly/expressly/versions

## README

# expressly
Express-style router for Fastly Compute.

## Using expressly

[Check out the docs](https://expressly.edgecompute.app/).

---

First, head over to [developer.fastly.com](https://developer.fastly.com) to get started with JavaScript on Fastly Compute:

1. Learn about Fastly Compute: [developer.fastly.com/learning/compute/](https://developer.fastly.com/learning/compute/)
2. Create your first JavaScript app: [developer.fastly.com/learning/compute/javascript/](https://developer.fastly.com/learning/compute/javascript/)

### Install expressly

Install expressly from the [npm registry](https://www.npmjs.com/package/@fastly/expressly):

```shell
npm i @fastly/expressly
```

```shell
yarn add @fastly/expressly
```

### Your first expressly app

Replace the contents of your Compute app's `src/index.js` with the following:

```javascript
import { Router } from "@fastly/expressly";

const router = new Router();

router.get("/", async (req, res) => {
  return res.send("Hello world!");
});

router.listen();
```

### Try it out

Start your app locally:

```shell
fastly compute serve
```

This will start your service on [http://localhost:7676](http://localhost:7676).

## Examples

Check out the JavaScript code examples for Compute on Fastly's [Developer Hub](https://developer.fastly.com/solutions/examples/javascript/).

---
_Source: https://npm.io/package/@fastly/expressly · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
