Tauri Nextjs Template screenshot

Tauri Nextjs Template

Author Avatar Theme by Kvnxiao
Updated: 17 Jan 2026
649 Stars

A Tauri 2.0 + Next.js (SSG) template, with TailwindCSS, opinionated linting, and GitHub Actions preconfigured

Categories

Overview

The Tauri + Next.js Template is a project template that combines Next.js and Tauri to create a TypeScript frontend using Next.js and a Tauri Rust application. It provides a seamless integration between the two technologies, allowing developers to build performant and accessible UI components using the Next.js framework and Tauri webview windows. The template also includes tools for formatting, linting, and building the application for release.

Features

  • TypeScript frontend using Next.js React framework
  • TailwindCSS as a utility-first atomic CSS framework
  • Integration with Radix UI Primitives and HeadlessUI components for unstyled and accessible UI components
  • Opinionated formatting and linting setup with ESLint, Prettier, clippy, and rustfmt
  • GitHub Actions for code formatting and linting checks
  • Tauri webview window for running the frontend in development
  • Exporting the frontend via Static Site Generation (SSG) and building the Tauri application for release

Installation

To set up the template, follow these steps:

  1. Clone the repository
  2. Set up git pre-commit hooks
  3. Install the dependencies using pnpm
  4. Configure the bundle identifier in the tauri.conf.json file
  5. Run the development server and use Tauri window
  6. Build the frontend for release with SSG and build the Tauri application

For a more detailed guide, consult the documentation.

Summary

The Tauri + Next.js Template provides a seamless integration between Next.js and Tauri, allowing developers to build performant and accessible UI components. With features like TypeScript support, TailwindCSS integration, and code formatting/linting tools, this template sets a solid foundation for building cross-platform desktop applications. The template also offers guidance on using SSG and optimizing images for deployment. Overall, this template is a valuable resource for developers looking to leverage the power of Next.js and Tauri in their projects.