
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
@undermuz/tanstack-router-generator
Advanced tools
CLI tool that sets up TanStack Router in React or Nx projects.
A lightweight CLI tool that automatically sets up TanStack Router in any React or Nx-based project. It installs required dependencies, generates routing structure, and configures a ready-to-use router setup.
<RouterProvider />package.json with required dependenciesRun the generator inside your React project:
# Simple react project
npx @undermuz/tanstack-router-generator@latest init
# NX-like project
npx @undermuz/tanstack-router-generator@latest init --project=./apps/web-app/src/app
By default, it installs routing files into:
<cwd>/src/app
<cwd>/package.json
To specify a custom path:
npx @undermuz/tanstack-router-generator init --project=apps/web-app/src/app
<cwd>/apps/web-app/src/app
<cwd>/package.json
After initialization, you can add new routes using:
npx @undermuz/tanstack-router-generator add-route <name>
<cwd>/src/app/routes/<name>
Examples:
# Add a "settings" route (uses default src/app)
npx @undermuz/tanstack-router-generator add-route settings
# Add a "user-profile" route
npx @undermuz/tanstack-router-generator add-route user-profile
# Specify custom app path (routes directory will be created inside)
npx @undermuz/tanstack-router-generator add-route dashboard --project=apps/web-app/src/app
The command will:
routes/ directorypage.tsx componentroutes.tsx with route configurationindex.tsx to include the new routeroutes/
provider.tsx
layout.tsx
page.tsx
index.tsx
nested-page/
routes.tsx
page.tsx
When you add a new route using add-route, the following files are created:
routes/
my-new-route/
page.tsx # Route component
routes.tsx # Route configuration
index.tsx # (automatically updated)
Clone the repository and link it globally:
npm install
npm link
Now the CLI is available system-wide:
tanstack-router-generator
npm test
Runs unit tests with Vitest. Tests cover:
package.jsonindex.tsx updates, and error validationWatch mode (re-run on file changes):
npm run test:watch
Coverage report:
npm run test:coverage
MIT
FAQs
CLI tool that sets up TanStack Router in React or Nx projects.
We found that @undermuz/tanstack-router-generator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.