Skip to content
Library
Routing

ufbr

npmufbr

Client-side file-based router for Vite, with a first-party Preact adapter.

Native PreactActive
Verdict

Native Preact

Built for Preact and does not require a React compatibility layer.

When to use it

Evidence level: documented. Latest npm version checked: 1.2.0. The maintainer claimed native compatibility on Preact 10.27.x. The repository Preact demo declares preact ^10.27.2 but still depends on ufbr ^0.2.1, so it does not exercise release 1.2.0. Source review shows ufbr/preact imports render and createElement from preact. No runtime test was executed for this entry.

Overview

`ufbr` builds client-side routes from a `pages/` directory. The Preact entry point is `ufbr/preact`, which mounts the matched page with Preact's `render` and `createElement`. Path matching comes from the Ziko.js router.