t4-stack
БесплатноБез исполняемых скриптовНе проверенT4 Stack - Full-stack TypeScript starter for React Native + Web with Tamagui, tRPC, Cloudflare edge deployment, and universal code sharing across iOS…
Об этом скилле
T4 Stack Skill
The T4 Stack is a full-stack, type-safe starter kit for building universal applications across iOS, Android, Web, and Desktop from a single TypeScript codebase. Created by Tim Miller, it emphasizes developer experience, rapid deployment, and edge-first architecture with Cloudflare.
Key Value Proposition: Build once, deploy everywhere - iOS, Android, Web (PWA), macOS, Windows, and Linux with 6-second installs, 30-second backend deployments, and end-to-end type safety.
When to Use This Skill
- Building cross-platform apps with shared codebase (React Native + Web)
- Creating full-stack TypeScript applications with tRPC
- Deploying to Cloudflare Workers and D1 edge database
- Setting up Expo + Next.js monorepo projects
- Implementing Tamagui UI components across platforms
- Configuring Supabase authentication for mobile + web
- Working with Drizzle ORM and SQLite at the edge
- Building Progressive Web Apps with native-like experience
When NOT to Use This Skill
- For backend-only Node.js projects (use standard Node.js patterns)
- For React-only web apps without mobile (use Next.js directly)
- For React Native-only apps without web (use Expo directly)
- For non-TypeScript projects (T4 is TypeScript-first)
- For AWS/GCP deployment (T4 is Cloudflare-focused)
Core Concepts
Technology Stack Overview
┌─────────────────────────────────────────────────────────────────┐
│ T4 Stack │
└─────────────────────────────────────────────────────────────────┘
┌──────────────────────┐
│ Shared Codebase │
│ /packages/app │
│ /packages/ui │
└──────────┬───────────┘
│
┌──────────────────────┼──────────────────────┐
│ │ │
┌───────▼───────┐ ┌────────▼────────┐ ┌───────▼───────┐
│ Next.js │ │ Expo │ │ Tauri │
│ (Web/PWA) │ │ (iOS/Android) │ │ (Desktop) │
└───────────────┘ └─────────────────┘ └───────────────┘
│ │ │
└──────────────────────┼──────────────────────┘
│
┌──────────▼───────────┐
│ Cloudflare Edge │
│ - Workers (API) │
│ - D1 (SQLite DB) │
│ - Pages (Frontend) │
└──────────────────────┘
Stack Components
| Layer | Technology | Purpose |
|---|---|---|
| UI Framework | Tamagui | Cross-platform components with design system |
| Web | Next.js | React framework for web + PWA |
| Mobile | Expo + Expo Router | React Native for iOS/Android |
| Desktop | Tauri (optional) | Native desktop apps |
| Navigation | Solito | Unified navigation across platforms |
| API | tRPC + Hono | Type-safe API with edge-compatible server |
| Data Fetching | TanStack Query | Server state management |
| State | Jotai | Lightweight global state |
| Database | Cloudflare D1 + Drizzle | SQLite at the edge with ORM |
| Validation | Valibot | Lightweight runtime type checking |
| Auth | Supabase Auth | Authentication across platforms |
| Performance | Million.js, PattyCake | React optimization, pattern matching |
| Code Quality | Biome | Fast linting and formatting |
Installation
Prerequisites
- Bun v1.0+ (required)
- Node.js 20+ (for some tooling)
- Cloudflare account (for deployment)
- Supabase account (for authentication)
Quick Start
# Create new T4 project (interactive)
bun create t4-app
# Create with specific project name
bun create t4-app my-app
# Create with Tauri desktop support (experimental)
bun create t4-app --tauri
# Create with Lucia Auth instead of Supabase
bun create t4-app --lucia
Post-Installation
cd my-app
# Install dependencies
bun install
# Start development servers
bun dev
# Start web only
bun dev:web
# Start mobile (Expo)
bun dev:native
Project Structure
my-app/
├── apps/
│ ├── next/ # Next.js web application
│ │ ├── app/ # App Router pages
│ │ ├── public/ # Static assets
│ │ └── next.config.mjs # Next.js configuration
│ │
│ ├── expo/ # Expo mobile application
│ │ ├── app/ # Expo Router screens
│ │ ├── assets/ # Mobile assets
│ │ └── app.config.ts # Expo configuration
│ │
│ └── tauri/ # Desktop app (if --tauri flag used)
│
├── packages/
│ ├── app/ # Shared application code
│ │ ├── features/ # Feature modules (screens)
│ │ │ ├── home/
│ │ │ │ └── screen.tsx
│ │ │ └── settings/
│ │ │ ├── screen.tsx
│ │
Установить t4-stack в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл t4-stack?
T4 Stack - Full-stack TypeScript starter for React Native + Web with Tamagui, tRPC, Cloudflare edge deployment, and universal code sharing across iOS, Android, and PWA
Как установить скилл t4-stack?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл t4-stack запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic