NoCrypt's Tauri Template

Template for making tauri app feels like native.

Features:

  • Svelte 5 + Typescript
  • TailwindCSS 3 + shadcn-svelte ready
  • Window Controls that feels native (windows only)
  • Delay startup to avoid white flashes
  • Optimized app size bundle by adjusting Cargo profile
  • Disable most of browser features (tauri-plugin-prevent-default)
  • Disable all context-menu except for inputs and editable elements (for easier copy and paste)
  • Disable tap highlight color

How to use?

  1. Use degit to clone the repo
    bun x degit https://github.com/NoCrypt/ncpt-template my-project
    cd my-project
    
  2. Rename the project name in package.json, Cargo.toml, tauri.conf.json, and main.rs
  3. Run bun install and bun tauri dev

Why did I make this?

Sometimes I just want to create a Tauri App rapidly, but the default template from create-tauri-app feels half-baked and gives too much indication that it is a "browser-based" app. This template essentially hides that, along with a few optimizations, and a touch of shadcn theme to make it ready for developing the app logic out of the box.

Top categories

Loading Svelte Themes