tauri-scaffold
1
总安装量
1
周安装量
#53785
全站排名
安装命令
npx skills add https://github.com/0xraduan/raduan-plugins --skill tauri-scaffold
Agent 安装分布
codex
1
Skill 文档
Scaffold a Tauri + React App
Generate a production-ready Tauri + React desktop application with best practices baked in.
What Gets Created
my-app/
âââ src/ # React frontend
â âââ ui/
â â âââ components/ # React components
â â âââ hooks/ # Custom hooks
â â âââ providers/ # Context providers
â âââ core/ # Business logic
â â âââ api/ # TanStack Query queries/mutations
â â âââ db/ # Database access layer
â âââ App.tsx
â âââ main.tsx
âââ src-tauri/ # Rust backend
â âââ src/
â âââ lib.rs # Tauri setup
â âââ commands.rs # Tauri commands
â âââ migrations.rs # SQLite migrations
âââ package.json
âââ tsconfig.json
âââ tailwind.config.js
âââ vite.config.ts
Stack Included
- Tauri 2.x – Native desktop shell
- React 18 – UI framework
- TypeScript – Strict mode enabled
- TanStack Query – Server state management
- SQLite – Local database (via tauri-plugin-sql)
- Tailwind CSS – Styling
- Radix UI – Accessible components
- Vite – Build tool
Instructions
Step 1: Get App Details
Ask the user for:
- App name (kebab-case, e.g.,
my-cool-app) - App display name (e.g., “My Cool App”)
- Bundle identifier (e.g.,
com.yourname.mycoolapp) - Whether to include AI provider patterns (optional)
Step 2: Create the Project
Run the scaffold script:
uv run /path/to/plugin/scripts/scaffold.py \
--name "app-name" \
--display-name "App Display Name" \
--bundle-id "com.example.appname" \
--output-dir "./app-name"
If --with-ai flag was provided, add:
--with-ai
Step 3: Initialize the Project
After scaffolding:
cd app-name
pnpm install
Step 4: Run Development Server
pnpm tauri dev
Step 5: Guide Next Steps
Tell the user:
- Database: Add tables in
src-tauri/src/migrations.rs - API Layer: Create queries in
src/core/api/ - Components: Build UI in
src/ui/components/ - Tauri Commands: Add Rust commands in
src-tauri/src/commands.rs
Point them to /tauri-react-starter:guide for architecture deep-dive.
Example
User: Create a new Tauri app for a note-taking application