3 unstable releases

0.5.1 Apr 13, 2026
0.5.0 Apr 10, 2026
0.4.0 Apr 5, 2026

#1007 in Rust patterns


Used in blinc_app

Apache-2.0

4MB
83K SLoC

Cross-platform routing for Blinc

Declarative routing with path matching, navigation history, and guards. Routers are scoped — not global singletons.

Example

use blinc_router::{RouterBuilder, Route};

// Build the router (returns a clonable handle)
let router = RouterBuilder::new()
    .route(Route::new("/").name("home").view(home_page))
    .route(Route::new("/users/:id").view(user_detail))
    .not_found(not_found_page)
    .build();

// Navigate
router.push("/users/42");
router.back();

// Build current route's view
let page = router.outlet(); // returns Div

Dependencies

~11–53MB
~740K SLoC