A blazing-fast monorepo template combining Tauri, Next.js, and Turborepo for building modern cross-platform applications. Built with performance and developer experience in mind.
- 🏗️ Monorepo Setup powered by Turborepo
- ⚡ Tauri for native desktop applications
- 🎯 Next.js for web applications
- 🎨 Tailwind CSS for styling
- 🧩 shadcn/ui for beautiful, accessible components
- 📦 Shared UI component library
- 🔧 Consistent ESLint configuration
- 📝 Unified TypeScript configuration
- 🔄 Fast refresh and HMR
- 🛠️ Type-safe development
tnt-template/
├── apps/
│ ├── desktop/ # Tauri desktop application
│ └── web/ # Next.js web application
├── packages/
│ ├── eslint-config/ # Shared ESLint configurations
│ ├── typescript-config/ # Shared TypeScript configurations
│ └── ui/ # Shared UI component library
├── .gitignore
├── package.json
└── turbo.json
- Node.js 18 or later
- pnpm 8 or later
- Rust toolchain (for Tauri)
- Windows: Microsoft Visual Studio C++ Build Tools
- macOS: Xcode Command Line Tools
- Linux: build-essential package
-
Clone the repository: git clone https://github.com/imfunniee/tnt-template xyz cd xyz
-
Install dependencies: pnpm install
-
Start development:
pnpm web:dev # Start Next.js development server
pnpm desktop:dev # Start Tauri development
pnpm web:build # Build web application
pnpm desktop:build # Build desktop application
pnpm clean-compile # Clean all build outputs using Turbo
pnpm format # Format code with Prettier
pnpm sort:package # Sort package.json files
pnpm spellcheck # Run spellcheck on TypeScript files
- Framework: Next.js 14 (https://nextjs.org/)
- Desktop: Tauri 2.0 (https://tauri.app/)
- Monorepo: Turborepo (https://turbo.build/repo)
- Styling: Tailwind CSS (https://tailwindcss.com/)
- UI Components: shadcn/ui (https://ui.shadcn.com/)
- Language: TypeScript (https://www.typescriptlang.org/)
This project is licensed under the MIT License - see the LICENSE file for details.