MCPcopy Create free account
hub / github.com/solidjs/solid-router

github.com/solidjs/solid-router @0.0.x

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.0.x ↗ · + Follow

A universal router for Solid inspired by Ember and React Router

63 symbols 95 edges 4 files 0 documented · 0% 4 cross-repo links ● updated 15d agolatest release v2.0.1 · 2026-11-20★ 1,33329 open issues

Browse by type

⨍ Functions 42◇ Types & classes 21
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Solid App Router

Solid 1.0 use 0.0.50 or greater Solid 0.x use 0.0.46

Small, config-driven router inspired by Ember Router. While less dynamic than the common React Router approach which I would recommend for most SPAs, this approach is good for file system based routing. For things like you'd find in isomorphic metaframeworks.

So far this is just the basic isomorphic shell. Lots more to do.

import { lazy } from "solid-js";
import { render } from "solid-js/web";
import { Router, Route, Link } from "solid-app-router";

const routes = [
  {
    path: "/users",
    component: lazy(() => import("/pages/users.js"))
  },
  {
    path: "/users/:id",
    component: lazy(() => import("/pages/users/[id].js")),
    children: [
      { path: "/", component: lazy(() => import("/pages/users/[id]/index.js")) },
      { path: "/settings", component: lazy(() => import("/pages/users/[id]/settings.js")) },
      { path: "*all", component: lazy(() => import("/pages/users/[id]/[...all].js")) }
    ]
  },
  {
    path: "/",
    component: lazy(() => import("/pages/index.js"))
  },
  {
    path: "*all",
    component: lazy(() => import("/pages/[...all].js"))
  }
];

function App() {
  return (
    <>
      <h1>Awesome Site</h1>
      <Link class="nav" href="https://github.com/solidjs/solid-router/raw/0.0.x/">
        Home
      </Link>
      <Link class="nav" href="https://github.com/solidjs/solid-router/raw/0.0.x/users">
        Users
      </Link>
      {/* route will be inserted here */}
      <Route />
    </>
  );
}

render(
  () => (
    <Router routes={routes}>
      <App />
    </Router>
  ),
  document.getElementById("app")
);

TODO: Docs

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 32
Interface 14
Method 10
Class 4
Enum 3

Languages

TypeScript100%

Modules by API surface

src/recognizer/index.ts36 symbols
src/index.tsx25 symbols
src/recognizer/normalizer.ts2 symbols

For agents

$ claude mcp add --transport http codehub https://codehub.bot/mcp

One hosted endpoint, no key: your agent can search, read and trace solidjs/solid-router and every other graph here. Cursor, Windsurf and other clients →

⬇ download graph artifact

Ask about this repo answers extend the page