This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a React + Tauri desktop application starter built with:
- Frontend: Next.js 16 with React 19, TypeScript, and Tailwind CSS v4
- Desktop Framework: Tauri 2.9 for cross-platform desktop app capabilities
- UI Components: shadcn/ui with Radix UI primitives and Lucide icons
- State Management: Zustand for client-side state
- Styling: Tailwind CSS with CSS variables and dark mode support
# Start Next.js development server
pnpm dev
# or
npm run dev
# Build for production
pnpm build
# or
npm run build
# Start production server
pnpm start
# or
npm run start
# Lint code
pnpm lint
# or
npm run lint# Run Tauri development mode (starts both frontend dev server and Tauri app)
pnpm tauri dev
# Build Tauri desktop application
pnpm tauri build
# More Tauri commands
pnpm tauri --helpapp/- Next.js App Router pages and layoutlayout.tsx- Root layout with Geist fonts and global stylespage.tsx- Main landing pageglobals.css- Global Tailwind styles and CSS variables
components/- Reusable React componentsui/- shadcn/ui components (Button, etc.)
lib/- Utility functions and configurationsutils.ts- Tailwind utility function (cn) for class merging
components.json- shadcn/ui configuration with path aliases
src-tauri/- Rust backend for desktop functionalitytauri.conf.json- Tauri configuration (window settings, build commands)src/main.rs- Main Rust application entry pointsrc/lib.rs- Rust library codeCargo.toml- Rust dependencies
- Build Configuration: Tauri builds the Next.js app to
out/directory and bundles it - Development: Tauri runs
pnpm devfor frontend and serves athttp://localhost:3000
- Next.js 16 with App Router for React 19 applications
- Tailwind CSS v4 with PostCSS for styling
- shadcn/ui component library built on Radix UI primitives
- Zustand for lightweight state management
- Tauri 2.9 for building cross-platform desktop apps
- TypeScript throughout the stack
@/components→components/@/lib→lib/@/utils→lib/utils.ts@/ui→components/ui@/hooks→hooks/
- The app uses pnpm as the preferred package manager (see pnpm-lock.yaml)
- Tauri configuration is set to build the frontend to
out/directory (not.next) - The project supports both web and desktop deployment from the same codebase
- shadcn/ui is configured with "new-york" style and CSS variables for theming