
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@generouted/tanstack-react-router
Advanced tools
Generated file-based routes for TanStack React Router and Vite
This integration is based on a Vite plugin to generate routes config for TanStack React Router with generouted conventions. The output is saved at src/routes.gen.tsx and gets updated by the add/change/delete at src/pages/*.
In case you don't have a Vite project with React and TypeScript, check Vite documentation to start a new project.
pnpm add @generouted/tanstack-react-router @tanstack/router@beta
Optional additional packages for actions and/or loaders:
pnpm add @tanstack/react-actions@beta @tanstack/react-loaders@beta
Optionally install prettier as a dev dependency so generouted formats the generated src/routes.gen.tsx file automatically:
pnpm add --save-dev prettier
// vite.config.ts
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import generouted from '@generouted/tanstack-react-router'
export default defineConfig({ plugins: [react(), generouted()] })
// src/main.tsx
import { createRoot } from 'react-dom/client'
import { Routes } from './routes.gen'
createRoot(document.getElementById('root')!).render(<Routes />)
Add the home page by creating a new file src/pages/index.tsx → /, then export a default component:
// src/pages/index.tsx
export default function Home() {
return <h1>Home</h1>
}
pages/_app.tsx// src/pages/_app.tsx
import { Outlet } from '@tanstack/router'
export default function App() {
return (
<section>
<header>
<nav>...</nav>
</header>
<main>
<Outlet />
</main>
</section>
)
}
MIT
FAQs
Generated file-based routes for TanStack React Router and Vite
The npm package @generouted/tanstack-react-router receives a total of 362 weekly downloads. As such, @generouted/tanstack-react-router popularity was classified as not popular.
We found that @generouted/tanstack-react-router 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
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.