https://github.com/js2me/mobx-route
🚀 Simple and lightweight typed MobX router 🚀
https://github.com/js2me/mobx-route
Last synced: 4 months ago
JSON representation
🚀 Simple and lightweight typed MobX router 🚀
- Host: GitHub
- URL: https://github.com/js2me/mobx-route
- Owner: js2me
- License: mit
- Created: 2025-04-15T12:48:34.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2026-01-11T18:34:13.000Z (5 months ago)
- Last Synced: 2026-01-11T21:28:32.135Z (5 months ago)
- Language: TypeScript
- Homepage: https://js2me.github.io/mobx-route/
- Size: 4.72 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README

# mobx-route
[![NPM version][npm-image]][npm-url] [![build status][github-build-actions-image]][github-actions-url] [![npm download][download-image]][download-url] [![bundle size][bundlephobia-image]][bundlephobia-url]
[npm-image]: http://img.shields.io/npm/v/mobx-route.svg
[npm-url]: http://npmjs.org/package/mobx-route
[github-build-actions-image]: https://github.com/js2me/mobx-route/workflows/Builds,%20tests%20&%20co/badge.svg
[github-actions-url]: https://github.com/js2me/mobx-route/actions
[download-image]: https://img.shields.io/npm/dm/mobx-route.svg
[download-url]: https://npmjs.org/package/mobx-route
[bundlephobia-url]: https://bundlephobia.com/result?p=mobx-route
[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/mobx-route
🚀 Simple and lightweight typed MobX router 🚀
_Uses [`path-to-regexp` power](https://www.npmjs.com/package/path-to-regexp)_
### [Read the docs →](https://js2me.github.io/mobx-route/)
```ts
import { createRoute } from "mobx-route";
const userDetails = createRoute("/users/:id");
await userDetails.open({ id: 1 }); // path params are required
userDetails.isOpened; // true;
```
## Contribution Guide
Want to contribute ? [Follow this guide](https://github.com/js2me/mobx-route/blob/master/CONTRIBUTING.md)