---
title: "Router Plugin (@tanstack/router-plugin) - Air Market"
description: "Your app's routes need to be generated as part of the build, and you would rather not ship one big bundle. This covers the TanStack Router build plugin: how to add it to the bundler you already use a…"
canonical: "https://airmarket.ai/app/router-plugin"
---

[Air Market](/) / [Developer Tools](/category/devtools) / Router Plugin (@tanstack/router-plugin)

Skill by [TanStack](/@tanstack)

# Router Plugin (@tanstack/router-plugin)

Generate routes and split your bundle at build time

## What this does

Your app's routes need to be generated as part of the build, and you would rather not ship one big bundle. This covers the TanStack Router build plugin: how to add it to the bundler you already use and which settings control route generation and splitting. Reach for it while setting up or tuning the build.

### Top 3 things it does for you

- Wire route generation into your bundler
- Turn on automatic code splitting
- Point the plugin at your routes directory

## Information

**Router Plugin (@tanstack/router-plugin) at a glance**

|  |  |
| --- | --- |
| Kind | Skill |
| Publisher | [TanStack](/@tanstack) |
| Category | [Developer Tools](/category/devtools) |
| Works with | Agent Skills - an open standard supported by 40+ agents |
| Size | 9 KB |
| Licence | MIT |
| Repository | [TanStack/router](https://github.com/TanStack/router/tree/179d9b9b5eec50dc7833b4e2ef91b735d34bbc07/packages/router-plugin/skills/router-plugin) |
| GitHub stars | 14,984 (as of Nov 2026) |

## Security report

**Verified.** AIR scanned this exact version of Router Plugin (@tanstack/router-plugin) and flagged nothing. AIR's verdict: **safe**.

**What Router Plugin (@tanstack/router-plugin)'s check was run against**

|  |  |
| --- | --- |
| Commit | 179d9b9b5eec50dc7833b4e2ef91b735d34bbc07 |
| Content hash | 5b527e576bd90eda4cd662520a1ecf3644f4b267f7b3fb84a3863da59760529a |
| Files read | [Browse the files at this exact commit](https://github.com/TanStack/router/blob/179d9b9b5eec50dc7833b4e2ef91b735d34bbc07/packages/router-plugin/skills/router-plugin/SKILL.md) |

A scan is named by the exact content it read, not by a version number. A different version is a different artifact, and nothing here applies to a version AIR has not scanned.

[Read the full security report for Router Plugin (@tanstack/router-plugin)](/security/router-plugin)

## About Router Plugin (@tanstack/router-plugin)

This covers the TanStack Router bundler plugin, which handles route generation and automatic code splitting.

It works with Vite, Webpack, Rspack, and esbuild, and it walks through the configuration you will touch: autoCodeSplitting, routesDirectory, the target framework, and how code split groupings are defined.

## What's inside

- SKILL.md - instructions

## Questions

### Is Router Plugin (@tanstack/router-plugin) safe to install?

AIR scanned this exact version of Router Plugin (@tanstack/router-plugin) and flagged nothing. AIR's verdict: safe. The verdict is named by the content that was read, at commit 179d9b9b5eec, so it cannot drift onto a version nobody scanned. The full report is at https://airmarket.ai/security/router-plugin.

### How do I install Router Plugin (@tanstack/router-plugin)?

Open https://airmarket.ai/app/router-plugin on Air Market and use the install action: Air Market hands Claude a prompt naming this exact skill, and Claude sets it up. Source, pinned to the exact commit this listing describes: https://github.com/TanStack/router/tree/179d9b9b5eec50dc7833b4e2ef91b735d34bbc07/packages/router-plugin/skills/router-plugin. Install from that link, not the branch.

## Related on Air Market

- [More Developer Tools listings](/category/devtools)
- [Everything by TanStack](/@tanstack)

---

Canonical URL: <https://airmarket.ai/app/router-plugin>
