npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@octanejs/remix-router

v0.1.48

Published

react-router for the octane renderer — the framework-agnostic router core vendored byte-close from react-router v8, with the React layer (RouterProvider, hooks, Link, boundaries) transcribed onto octane.

Readme

@octanejs/remix-router

react-router for the octane UI framework.

Installation

npm install @octanejs/remix-router
pnpm add @octanejs/remix-router

react-router v8 ships as a single package, so this port vendors the framework-agnostic router core byte-close (loaders, actions, redirects, matching, history — validated by 161 ported upstream router tests plus four focused v8.2 regression pins) and transcribes the React layer onto octane's hooks. The shipped runtime surface matches react-router 1:1 — existing code works by changing the import.

The port is complete — full export parity. Data mode, declarative mode (MemoryRouter, <Routes>/<Route>, <Navigate>), the DOM entry points (BrowserRouter/HashRouter, createBrowserRouter/createHashRouter, NavLink, useSearchParams), mutations (Form, useSubmit, useFetcher/useFetchers), guards + scroll (useBlocker, unstable_usePrompt, ScrollRestoration, useBeforeUnload, useViewTransitionState), static SSR (StaticRouter, StaticRouterProvider, createStaticHandler/createStaticRouter on octane/server), and the cookie/session server runtime (createCookie, createSession, createCookieSessionStorage, …). Framework mode (Meta/Links/Scripts, createRequestHandler) and RSC are permanently out of scope — those names exist as throwing stubs so tests/conformance/parity.test.ts pins the surface at exact parity (docs/remix-router-port-plan.md has the scope policy).

// before
import { createBrowserRouter, RouterProvider, Link, useLoaderData } from 'react-router';
// after
import { createBrowserRouter, RouterProvider, Link, useLoaderData } from '@octanejs/remix-router';

const router = createBrowserRouter([
  {
    path: '/',
    Component: Layout,
    children: [
      { index: true, Component: Home },
      { path: 'users/:id', loader: fetchUser, Component: User, errorElement: <Oops /> },
    ],
  },
]);

function App() @{
  <RouterProvider router={router} />
}

function User() @{
  const user = useLoaderData();
  <h1>{user.name as string}</h1>
}

Entry points

| import | what you get | notes | | --- | --- | --- | | @octanejs/remix-router | the vendored core surface (matchPath, redirect, data, …) + createMemoryRouter, RouterProvider, Outlet, Await, Link, useLinkClickHandler, the full read-hook family (useLoaderData, useNavigate, useNavigation, useRouteError, …), declarative mode (MemoryRouter, Routes/Route, Navigate, createRoutesFromChildren/Elements), the DOM layer (createBrowserRouter/createHashRouter, BrowserRouter/HashRouter/unstable_HistoryRouter, NavLink, useSearchParams), mutations (Form, useSubmit, useFormAction, useFetcher/useFetchers), guards/scroll (useBlocker, ScrollRestoration, …), static SSR (StaticRouter/StaticRouterProvider/createStaticHandler/createStaticRouter), and cookies/sessions (createCookie, createCookieSessionStorage, …) | full parity | | @octanejs/remix-router/dom | RouterProvider with octane's flushSync wired in | mirror of react-router/dom |

React Router 8 migration

  • React Router 8 no longer publishes a react-router-dom package. Import everything from @octanejs/remix-router, except the flushSync-enabled RouterProvider, which comes from @octanejs/remix-router/dom.
  • Middleware is always enabled. Loader, action, and middleware context is a RouterContextProvider; the future.v8_middleware, future.v8_passThroughRequests, and future.v8_trailingSlashAwareDataRequests flags are gone.
  • The internal hasErrorBoundary route property is gone. Use ErrorBoundary or errorElement.
  • The package follows Octane's repository-wide Node.js 22.22.2 or newer runtime contract.

How it works

  • The router core under src/lib/router/ is vendored verbatim from react-router 8.2.0 (scripts/vendor-remix-router.mjs; two documented Octane integration deviations; hand-edits prohibited).
  • RouterProvider preserves upstream's exact commit paths — startTransition wrapping, the flushSync option, and the ViewTransition dance (dormant until Phase E) — on octane's useState/useLayoutEffect/useOptimistic/ startTransition/flushSync.
  • errorElement/useRouteError run on octane's @try/@catch (octane has no class components); <Await> suspends through octane's use() with upstream's TrackedPromise decoration kept verbatim, so useAsyncValue/ useAsyncError are unchanged. Render-prop children work via octane's isChildrenBlock guard.
  • <Routes> accepts BOTH children forms: descriptor children (createRoutesFromElements, {expr} arrays) are walked upstream-style, while the natural .tsrx block-children authoring goes through a registration collector — each <Route> registers its config in a pre-paint layout effect, so the first paint already shows the matched route. Registration order is mount order, which differs from upstream's source order only for matchRoutes score ties (pinned + documented).
  • Refs are props (no forwardRef); hooks are keyed by octane's compiler-injected per-call-site slots, forwarded through every custom hook.

Status

Current scope, known divergences, and verification status are tracked in the generated bindings status table, sourced from this package's status.json.