Skip to content

startkit-dev/startkit

Repository files navigation

StartKit: Tanstack Start

A sane way to start your next Tanstack Start app

Features

Getting Started

To get started, simply clone the repository and run bun install:

  1. Clone the project or use the template
npx gitpick startkit-dev/startkit my-app
cd my-app
  1. Run the setup script
bun run setup

This script (located in ./bin/setup) will install the dependencies, set up your local .env file, and migrate the database.

Development

Start the development server:

bun dev

Code Quality

Run all quality checks (formatting, linting, and type checking):

bun run check

Auto-fix formatting and linting issues:

bun run fix

Individual commands:

bun run format          # Format code with Prettier
bun run format:check    # Check formatting without fixing
bun run lint            # Lint code with ESLint
bun run lint:fix        # Auto-fix linting issues
bun run typecheck       # Run TypeScript type checking
bun test                # Run the test suite

Database

This project uses Drizzle ORM with libSQL, configured for SQLite in development and Turso in production.

Database commands:

bun run db:generate     # Generate database schema migrations
bun run db:migrate      # Apply database migrations
bun run db:reset        # Reset database (clean + migrate)
bun run db:studio       # Open Drizzle Studio GUI

Authentication

Authentication is handled by Better-Auth with:

  • GitHub OAuth provider pre-configured
  • User, session, account, and verification tables
  • Drizzle adapter integration
  • Type-safe environment configuration

Build

Build for production:

bun run build

Utilities

bun run clean           # Clean cache directories
bun run nuke            # Clean everything including node_modules
bun run outdated        # Check for package updates interactively

About

A supercharged way to start your next Tanstack Start app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published