Technology moves fast! ⚡ Don't get left behind.🚶 Subscribe to our mailing list to keep up with latest and greatest in open source projects! 🏆

Subscribe to our mailing list


Route matcher devised for shared rendering JavaScript applications

Subscribe to updates I use ruta3

Statistics on ruta3

Number of watchers on Github 41
Number of open issues 0
Main language JavaScript
Average time to merge a PR about 1 hour
Open pull requests 0+
Closed pull requests 0+
Last commit almost 3 years ago
Repo Created over 4 years ago
Repo Last Updated almost 2 years ago
Size 9 KB
Organization / Authorbevacqua
Page Updated
Do you use ruta3? Leave a review!
View ruta3 activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating ruta3 for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)


Route matcher devised for shared rendering JavaScript applications


npm install --save ruta3

Sample Usage

Get a router instance

var ruta3 = require('ruta3');
var router = ruta3();

Add some routes

router.addRoute('/articles', getArticles);
router.addRoute('/articles/:slug', getArticleBySlug);
router.addRoute('/articles/search/*', searchForArticles);

Find a match


You'll get null back if no route matches the provided URL. Otherwise, the route match will provide all the useful information you need inside an object.

Key Description
action The action passed to addRoute as a second argument. Using a function is recommended
next Fall through to the next route, or null if no other routes match
route The route passed to addRoute as the first argument
params An object containing the values for named parameters in the route
splats An object filled with the values for wildcard parameters



(originally derived from routes, which is no longer maintained)

ruta3 list of languages used
Other projects in JavaScript