A routing library for Cycle.js applications, wrapping the main function to provide route matching and navigation. Current stable version is 6.0.0, released sporadically with a focus on incremental improvements. Unlike older versions (V4 and below) that acted as drivers, V5+ uses a `routerify` wrapper that works with `@cycle/history` and supports route parameters, basename configuration, and raw history access. Differentiators include integration with switch-path matcher and explicit route-to-component mapping via `routedComponent()`. Requires peer dependencies `@cycle/history` and `history`.
npm install cyclic-routerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal Cycle.js app using routerify to route between Home and Other components.
Upgrade to V5+ and wrap your main function with routerify, passing sources.router instead of sources.history.
Upgrade to cyclic-router V5+.
Always pass sources (the full sources object) to routedComponent's returned function.
Use 'router' for navigation; set omitHistory: false if you need raw history access.
npm install @cycle/history
Ensure you wrap main: const mainWithRouting = routerify(main, switchPath); and use sources.router in main.
Update to cyclic-router V5+ and use import { routerify } from 'cyclic-router'.