# @ostro/router

> Router module for OstroJS

Latest version **2.0.0-alpha.2** (published 2026-10-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ostro/router
pnpm add @ostro/router
yarn add @ostro/router
bun add @ostro/router
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.0.0-alpha.2 |
| Published | 2026-10-22 |
| First published | 2021-11-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18.0.0 |
| Dependencies | 8 |
| Unpacked size | 150.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 5 |
| Author | amar |
| Maintainers | ostrojs, developeramarkumar |
| Keywords | router, routing |

## Links

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

## Dependencies (8)

- [@ostro/http](https://npm.io/package/@ostro/http.md) ^2.0.0-alpha.2
- [@ostro/cache](https://npm.io/package/@ostro/cache.md) ^2.0.0-alpha.2
- [array-flatten](https://npm.io/package/array-flatten.md) ^3.0.0
- [@ostro/console](https://npm.io/package/@ostro/console.md) ^2.0.0-alpha.2
- [@ostro/support](https://npm.io/package/@ostro/support.md) ^2.0.0-alpha.2
- [path-to-regexp](https://npm.io/package/path-to-regexp.md) ^6.2.0
- [@ostro/contracts](https://npm.io/package/@ostro/contracts.md) ^2.0.0-alpha.2
- [lodash.difference](https://npm.io/package/lodash.difference.md) ^4.5.0

## 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.0.0-alpha.2 (latest) — 2026-10-22
- 2.0.0-alpha.1 — 2026-10-22
- 1.0.5 — 2023-12-26
- 1.0.4 — 2023-12-25
- 1.0.3 — 2023-12-04
- 1.0.2 — 2022-07-30
- 0.0.0-alpha.1 — 2021-12-26
- 0.0.0-alpha.0 — 2021-11-11

## README

<div align="center">
  <h1>OstroJS Framework</h1>
  
</div>
<br />

<div align="center">
  <h3>OstroJS Router</h3>
  <p>Router Module for OstroJS</p>
</div>

<br />

<div align="center">

![][javascript-image] [![license-image]][license-url] [![nodejs-image]][npm-url]

</div>

<div align="center">
  <h3>
    <a href="https://ostrojs.com">
      Website
    </a>
   
  </h3>
</div>

 
[javascript-image]: https://img.shields.io/badge/JS-javascript-green
[javascript-url]:  "javascript"

[nodejs-image]: https://img.shields.io/badge/node-%3E%3D%2012.0.0-green
[npm-url]: https://npmjs.org/package/@ostro/router "npm"

[license-image]: https://img.shields.io/github/license/ostrojs/router
[license-url]: LICENSE.md "license"

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