{"repo":"kriasoft/universal-router","free":true,"listed":false,"github":"https://github.com/kriasoft/universal-router","clone":"git clone https://github.com/kriasoft/universal-router.git","description":"A simple middleware-style router for isomorphic JavaScript web apps","language":"TypeScript","stars":1784,"topics":["react","reactjs","routing","router","routes","spa","single-page-app","ssr","server-side-rendering","vuejs"],"license":"MIT","category":"ui-components","readme_excerpt":"Universal Router A simple middleware-style router that can be used in both client-side and server-side applications. Visit Quickstart Guide (slides) &nbsp; &nbsp; Join #universal-router on Gitter to stay up to date Features - It has simple code with only single path-to-regexp dependency. - It can be used with any JavaScript framework such as React, Vue, Hyperapp etc. - It uses the same middleware approach used in Express and Koa, making it easy to learn. - It supports both imperative and declarative routing style. - Routes are plain JavaScript objects with which you can interact as you like. What users say about Universal Router Just switched a project over to universal-router. Love that the whole thing is a few hundred lines of flexible, easy-to-read code. -- Tweet by Greg Hurrell from Facebook It does a great job at trying to be universal — it's not tied to any framework, it can be run on both server and client, and it's not even tied to history. It's a great library which does one thing: routing. -- Comment on Reddit by @everdimension Installation Using npm: How does it look like? Play with an example on JSFiddle, CodePen, JS Bin in your browser or try RunKit node.js playground. Documentation - Getting Started - Universal Router API Books and Tutorials - 🎓 ES6 Training Course by Wes Bos - 📗 You Don't Know JS: ES6 & Beyond by Kyle Simpson (Dec, 2015) - 📄 You might not need React Router by Konstantin Tarkus - 📄 An Introduction to the Redux-First Routing Model by Michael ","default_branch":null,"files":null,"tree":[],"storefront":"/r/kriasoft","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kriasoft/universal-router/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}