# @head/edge

> @head/edge

Latest version **0.4.1** (published 2026-02-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @head/edge
pnpm add @head/edge
yarn add @head/edge
bun add @head/edge
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.4.1 |
| Published | 2026-02-25 |
| First published | 2022-04-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 207 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | hbrls |

## Links

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

## Dependencies (1)

- [delegates](https://npm.io/package/delegates.md) 1.0.0

## Recent versions

- 0.4.1 (latest) — 2026-02-25
- 0.4.0 — 2026-01-04
- 0.3.0 — 2024-05-30
- 0.2.1 — 2024-01-10
- 0.2.0 — 2024-01-10
- 0.1.1 — 2022-04-23

## README

@head/edge
==

```javascript
// service.js
import Application from '@head/edge';
import $rpc from '/path/to/user-rpc';

const { router, client } = new Application();

router.verb('GET', '/api/users', async (ctx, next) => {
  const data = await $rpc.doPost('/path-to/userService');
  ctx.body = data;
  next();
});

export default client;

// store.js
import $client from './service';

async function init() {
  const data = await $client.get('/api/users');
  state.users = data;
}
```

[delegates @1.0.0 / 2015-12-14](https://github.com/tj/node-delegates)
--

[path-to-regexp @8.2.0 / 2024-09-26](https://github.com/pillarjs/path-to-regexp)
--

[Koa @2.16.3 / 2025-10-18](https://github.com/koajs/koa)
--

[Koa Compose @4.2.0 / 2020-09-11](https://github.com/koajs/compose)
--

[Koa Router @14.0.0 / 2025-08-03](https://github.com/koajs/router)
--

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