Skip to content
PluginStats

filesystem-routing weekly downloads statistics

By solidjs (3 listings) · npm · Vite plugins

Router-neutral file-system routing: scans a route directory into a neutral route manifest with pluggable conventions and delivery adapters

View on npm Fresh · Dec 6, 2026

filesystem-routing has 54,720 recorded weekly downloads on npm, an increase of 60.0% over the past 30 days, ranking #754 of 3,247 tracked listings.

Weekly downloads
54,720
Official API · Dec 5, 2026
7-day growth
+105%
+28K weekly downloads
30-day growth
+60.0%
+20.5K weekly downloads
90-day growth
+302%
+41.1K weekly downloads
Rank
#754
▲ 171 in 7 days

About filesystem-routing

filesystem-routing

Router-neutral file-system routing.

This package owns the machinery of file routing — scanning a directory, applying a filename convention and producing a neutral route manifest — while routers own the shapes: each router ships a small emission adapter that turns the manifest into its own route definitions, and each bundler ships a delivery adapter that materializes the manifest into code.

PieceOwner
Scanning, filename convention, neutral route manifestfilesystem-routing
Nesting + (group) strippingfilesystem-routing/tree
Vite delivery (virtual module, HMR, code splitting, build inputs)filesystem-routing/vite
Request dispatch for GET/POST routes, as fetch middlewarefilesystem-routing/api
RouteDefinition emission for Solid Router (code splitting, typed paths)@solidjs/router/fs

Nothing here is Solid-specific: the core is bundler-agnostic — it never imports Vite — the Vite adapter is router-agnostic, and the conventions are the ones proven by SolidStart. The manifest is served from virtual:file-routes, or from whatever id you pass as fileRoutes({ moduleId }).

Usage with Solid Router and Vite

// vite.config.ts
import { fileRoutes } from "filesystem-routing/vite";
import { defineConfig } from "vite";
import solid from "vite-plugin-solid";

export default defineConfig({
  // `extensions` makes vite-plugin-solid also compile the `?pick=` route
  // modules this plugin emits (their ids end in a query string)
  plugins: [solid({ extensions: [".jsx", ".tsx"] }), fileRoutes()]
});
// src/app.tsx
import { pageRoutes } from "virtual:file-routes";
import { createRouter } from "@solidjs/router";
import { fileRoutes } from "@solidjs/router/fs";

const Router = createRouter({ routes: fileRoutes(pageRoutes) });

export const App = () => <Router>{props => <>{props.children}</>}</Router>;

The emission adapter ships with the router — @solidjs/router/fs for Solid Router; other routers mirror the same shape in their own packages. It never imports a virtual module itself — the app does, so the adapter resolves without the plugin, custom moduleIds work, and nothing needs excluding from dependency prebundling.

Route modules live in src/routes (configurable via fileRoutes({ dir })). A module is a page when it has a default export, and may export a route config object:

// src/routes/blog/[id].tsx
import type { RouteDefinition } from "@solidjs/router";

export const route = {
  preload: ({ params }) => loadPost(params.id)
} satisfies RouteDefinition;

export default function Post() {
  return <h1>Post</h1>;
}

Filename conventions

Two conventions ship in the box. Both produce the same neutral manifest and share the same module convention (default export is a page, route config export, httpMethods handlers), so they are equally capable — only the filenames differ.

Nested (PageFileSystemRouter, the default)

The convention proven by SolidStart:

FilePath
index.tsx/
about.tsx/about
blog/[id].tsx/blog/:id
blog/[[page]].tsx/blog/:page?
docs/[...path].tsx/docs/*path
(marketing)/about.tsx/about, nested in the (marketing) group

Nested layouts come from pairing a file with a directory: blog.tsx is the layout for everything in blog/.

Flat (FlatFileSystemRouter)

The convention proven by Remix v2 and carried forward by React Router's @react-router/fs-routes — . delimiters instead of directories:

FilePath
_index.tsx/
about.tsx/about
concerts.trending.tsx/concerts/trending
concerts.$city.tsx/concerts/:city
concerts.($page).tsx/concerts/:page?
files.$.tsx/files/*splat
_auth.login.tsx/login, nested in the _auth.tsx pathless layout
concerts_.mine.tsx/concerts/mine, escaping the concerts.tsx layout
[sitemap.xml].tsx/sitemap.xml — brackets escape special characters

concerts.tsx is the layout for every concerts.* file; a top-level folder routes through its route.tsx module and co-locates everything else in the folder without routing it. Pass the router to the plugin:

import { FlatFileSystemRouter } from "filesystem-routing";
import { fileRoutes } from "filesystem-routing/vite";
import { resolve } from "node:path";

fileRoutes({
  router: new FlatFileSystemRouter({
    dir: resolve("src/routes"),
    extensions: ["js", "jsx", "ts", "tsx"]
  })
});

Two departures from Remix: the catch-all param is named (params.splat rather than params["*"]), and optional static segments ((en).about.tsx) are rejected — the neutral pattern language has no representation for them.

API routes

Route modules can answer requests as well as render. Turn on httpMethods (off by default — a client-only manifest has no use for handlers) and uppercase exports become request handlers:

// src/routes/api/posts/[id].ts
export function GET(event) {
  return Response.json(loadPost(event.params.id));
}

export function DELETE(event) {
  deletePost(event.params.id);
  return new Response(null, { status: 204 });
}

The scanner turns each handler export into a lazy ref on the entry — $GET: { src, pick: ["GET"] }, $DELETE: … — with the same code splitting pages get:…

Description from the npm listing.

  • file-system routing
  • file routes
  • router
  • vite
  • vite-plugin
  • solid

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

filesystem-routing weekly downloads on npm, last 90 days: 54,720 weekly downloads as of Dec 5, 2026, +302% over 90 days.filesystem-routingWeekly downloads on npm · Last 90 days54,720downloads / week+302% over 90 days010K20K30K40K50K60KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
filesystem-routing weekly downloads on npm, last 90 days: 54,720 weekly downloads as of Dec 5, 2026, +302% over 90 days.

7/30/90-day growth

filesystem-routing weekly downloads growth on npm: +105% over 7 days, +60.0% over 30 days, +302% over 90 days.filesystem-routingWeekly downloads growth on npm54,720downloads / week now7-day growth+27,990 weekly downloads+105%30-day growth+20,525 weekly downloads+60.0%90-day growth+41,099 weekly downloads+302%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
filesystem-routing weekly downloads growth on npm: +105% over 7 days, +60.0% over 30 days, +302% over 90 days.

Ranking history

filesystem-routing npm ranking history: currently #754 (by weekly downloads).filesystem-routingnpm ranking · by weekly downloads · Last 90 days#754current rank#200#400#600#800#1000#1200Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
filesystem-routing npm ranking history: currently #754 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 38, #14 (overall #754)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 7, #12 (overall #132)
Vite plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (591)
Recent weekly downloads observations for filesystem-routing
Date (UTC)Weekly downloadsChange vs. previous
54,720+2.4K
52,302+2.2K
50,118+4.4K
45,739+7K
38,728+7.1K
31,612+3.7K
27,885+1.2K
26,730+2.3K
24,445+2.3K
22,111+1.4K
20,699+298
20,401+807
19,594+671
18,923—

Similar npm Vite plugins plugins

All 20 filesystem-routing alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/filesystem-routing. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.