🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More
Socket
Book a DemoInstallSign in
Socket

@tanstack/create-start

Package Overview
Dependencies
Maintainers
2
Versions
250
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tanstack/create-start

Modern and scalable routing for React applications

Source
npmnpm
Version
1.97.12
Version published
Weekly downloads
7.9K
5.23%
Maintainers
2
Weekly downloads
 
Created
Source

@tanstack/create-start

CLI tool for creating and modifying TanStack Start projects.

pnpm create @tanstack/start

Run

pnpm create @tanstack/start --help

to see all options.

Until peer dependency issues are worked out, npm create @tanstack/start doesn't work.

Use pnpm or maybe a bundled version could be published instead.

Contributing

Modules

Modules represent templates and functionality that can be added later to a TanStack Start project. A module is created using a chain of methods specifying callbacks which receives arguments from the previous step.

  • createModule(schema): Set the schema of values that will be passed in from command line options.

  • .init((configFromSchema) => { ... }): Crawl the filesystem to infer configuration, for example detecting the current package manager

  • .prompt((configFromInit) => { ... }): Prompt the user for configuration, skipping config that has already been specified.

  • .validateAndApply({ validate, apply })

    • validate({ cfg, targetPath }): check if preconditions met (is there a package.json? is a library already installed?) and return an array of strings that are issues to address

    • apply({ cfg, targetPath }): modify the filesystem: install libraries, modify files

FAQs

Package last updated on 22 Jan 2025

Did you know?

Socket

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.

Install

Related posts