FicusJS router can be installed in a number of ways.


We recommend using native ES modules in the browser.

<script type="module">
import { createRouter, getRouter } from ''

FicusJS router is available on Skypack.


FicusJS router works nicely with build tools such as Webpack or Rollup. If you are using a NodeJS tool, you can install the NPM package.

npm install @ficusjs/router

Available builds

FicusJS router is only available as an ES module. For legacy browsers or alternative modules such as CommonJS, it is recommended to use a build tool to transpile the code.

The following builds are available.

  • dist/router.mjs