virtual-file-routes

Official

Programmatic route trees for flexible routing.

AuthorTanStack
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Build route trees programmatically instead of relying on filesystem conventions, giving explicit control over routing structures.

Core Features & Use Cases

  • Exposes APIs like rootRoute, index, route, layout, physical, and defineVirtualSubtreeConfig to compose complex route trees.
  • Enables mixing virtual and file-based routes and subtree configurations inside routing directories.
  • Integrates with TanStack Router via the plugin's virtualRouteConfig option for seamless loading.

Quick Start

Define the routes using rootRoute and the composition helpers, then connect the config to the TanStack Router plugin.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: virtual-file-routes
Download link: https://github.com/TanStack/router/archive/main.zip#virtual-file-routes

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.