Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
create-tanstack-app
Advanced tools
This CLI tool helps you quickly set up a new TanStack app by downloading and initializing the template from GitHub. It's perfect for building full-stack applications using TanStack's powerful router and full-stack capabilities.
You can use the CLI to set up a new TanStack app directly from GitHub with:
npx create-tanstack-app@latest
This will:
Your new project will include:
Once the setup is complete, your project will have a structure similar to this:
my-app/
├── app/
│ ├── routes/
│ │ └── __root.tsx
│ ├── client.tsx
│ ├── router.tsx
│ ├── routeTree.gen.ts
│ └── ssr.tsx
├── .gitignore
├── app.config.ts
├── package.json
└── tsconfig.json
Once the setup is complete, run the following command to start the app:
npm run dev
This will start the development server, and you can start building your app with TanStack's full-stack routing and SSR features.
For more details on how to configure your app, refer to the official TanStack Start Docs.
Make sure that your index.js
for this npm package initializes the necessary steps to clone the repo from GitHub and set it up locally. You can use Node's child_process
module to clone the repository and run the initial npm setup commands for users. For example:
const { execSync } = require('child_process');
const fs = require('fs');
const path = require('path');
const repoUrl = 'https://github.com/SH20RAJ/tanstack-start.git';
const targetDir = path.join(process.cwd(), 'tanstack-app');
try {
if (!fs.existsSync(targetDir)) {
console.log('Cloning TanStack app template...');
execSync(`git clone ${repoUrl} ${targetDir}`, { stdio: 'inherit' });
console.log('Installing dependencies...');
execSync('npm install', { cwd: targetDir, stdio: 'inherit' });
console.log('Setup complete! You can now run "npm run dev" in the project directory.');
} else {
console.log('Directory already exists.');
}
} catch (error) {
console.error('Error setting up TanStack app:', error);
}
FAQs
A CLI tool to create a Tanstack app
We found that create-tanstack-app demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.