Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Next.js + Tauri template with minimal best practice setup and weekly updates for cross-platform desktop apps.

A full-stack Next.js TypeScript template focused on functionality over UI, featuring Zustand, TanStack Query, and ESLint 9 support.
Nextauri is a GitHub boilerplate template that couples Next.js with the Tauri framework to build cross-platform desktop applications for Windows, Linux, and macOS from a single React and Rust codebase. The template ships with minimal best-practice configuration — ESLint for Next.js, Clippy for Rust, GitHub Actions for CI/CD, and automated weekly dependency updates — so you can start a Tauri project without wiring up tooling yourself.
Nextauri is a starter template maintained by developer leon3s on GitHub. It takes a Next.js frontend (located in src-next/) and a Tauri Rust backend (located in src-tauri/) and produces desktop binaries for Windows, Linux, and macOS. The project uses Next.js Static Site Generation (getStaticProps) to pre-render React into static HTML and JavaScript that get embedded into the final Tauri binary, which Tauri loads inside its webview.
npm run dev starts both the Next.js dev server and Tauri in development mode; Tauri waits for the HTTP server on localhost:3000 by default, and the port is configurable in src-tauri/tauri.conf.json.npm run tauri build exports the Next.js app and builds the Tauri application for the current environment.src-next/ holds all Next.js files and src-tauri/ holds Tauri source files, keeping the two worlds separated.After installing Node.js and Rust and meeting Tauri prerequisites, you clone or fork the repository, run npm install, and start development with npm run dev. In development, Next.js runs a Node.js server for Hot Module Replacement and Server-Side Rendering, while Tauri connects to that server. For production, npm run tauri build exports Next.js as static files via SSG and compiles the Tauri app for your current platform.
No. Because production builds rely on Next.js Static Site Generation, the page explicitly notes that getServerSideProps and request-time data fetching are not available. Pages should use getStaticProps to generate data at build time.
The error happens when code that uses browser APIs like @tauri-apps/api runs during Next.js server-side rendering. The template offers two workarounds: import the component with next/dynamic and ssr: false, or guard code with a typeof window !== 'undefined' check.
Not yet. The page states Tauri plans mobile compatibility in the future, but the current template builds desktop applications for Windows, Linux, and macOS only.
Edit src-tauri/tauri.conf.json by updating beforeDevCommand to pass the new port (for example, npm run next dev -- -p 8080) and set devPath to the matching URL.
The template does not ship a test runner. It recommends Cypress with Tauri's mocking technique, and points to Tauri's pre-alpha WebDriver Testing as another option.