桌面软件 活跃维护

tauri-ui

agmmnn/tauri-ui

🦀 Tauri shadcn/ui 应用脚手架,带有桌面就绪的默认设置和可选功能包。支持:Vite、Next.js、Astro、TanStack Start。

2298
Stars 标星
133
Forks 分支
18
Watchers 关注
2
Open Issues
TypeScript
主要语言
MIT
开源协议
5.2 MB
仓库大小
2 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:agmmnn/tauri-ui
git clone https://github.com/agmmnn/tauri-ui.git
git clone git@github.com:agmmnn/tauri-ui.git
README.md master

英文原文正文为项目原始 README(英文),本站后续会翻译为中文,当前仅剔除图片与无关章节并统一排版。

tauri-ui

⚡ Scaffold Tauri desktop apps with shadcn/ui and desktop-ready defaults.

Choose Vite, Next.js, React Router, Astro, or TanStack Start. Upstream CLIs build the foundation; tauri-ui adds the native shell and optional batteries.

开始使用

bunx create-tauri-ui@latest

Each release includes a demo build showing the expected output — available in Releases.

搭建后

cd my-app
bun run tauri dev
  • swap icons: bunx tauri icon ./app-icon.png
  • add shadcn components: bunx shadcn@latest add dialog sonner
  • add tauri plugins: bun run tauri add store (plugin list)
  • batteries live in src/components/ (debug-panel, external-link-guard, theme-provider)
  • tweak window defaults in src-tauri/tauri.conf.json
  • CLI flags + opt-outs → packages/create-tauri-ui

🔋 包含电池

👩‍💻 Desktop defaults

  • no startup flash (hidden until first paint)
  • external links open in system browser
  • no overscroll / rubber-band scrolling
  • desktop-style selection behavior
  • sensible default window size and position

➕ Extras (optional)

  • starter dashboard (dashboard-01)
  • Rust invoke example
  • smaller binary output (~65% smaller binary in our test)
  • GitHub Actions release workflow

🛠 Debug Panel  ·  Cmd / Ctrl + D

  • inspects app state, route, window, tracked invokes, runtime events, plugin logs, and system paths
  • live host diagnostics: theme & a11y, locale, display, input, network
  • hover any field for the source snippet with a web / tauri origin chip — click to copy
  • dev-only, zero production impact — dockable and remembers its layout

🧱 Upstream UI

  • shadcn frontend generated via official CLI
  • no forks, always up to date
  • adapters for vite, next, react-router, astro, start

为什么选择 tauri-ui

A fresh Tauri app feels like a wrapped website. Window state, startup flash, link routing, overscroll, native selection: chores you hit on every project.

tauri-ui handles them by default and stays close to upstream shadcn and create-tauri-app. Nothing forks, nothing drifts from the docs.

🦾 Better with AI coding agents: familiar shadcn + Tauri structure, built on upstream APIs without custom wrappers or forks.

它是如何工作的

cli prompts
  → official shadcn/ui init
  → official create-tauri-app setup
  → combine frontend + native shell
  → apply desktop-ready defaults
  → add optional batteries

No full local templates. Just a small asset and patch surface on top of the upstream CLIs.

搭建后管理电池

Run inside an existing tauri-ui project to add, update, or remove batteries without re-scaffolding:

Template auto-detected (no manifest file written to your repo), updates are idempotent; commit first and review the diff.

bunx create-tauri-ui@latest list                  # show install status
bunx create-tauri-ui@latest update debug-panel    # pull the latest template
bunx create-tauri-ui@latest add workflow          # add the release workflow later
bunx create-tauri-ui@latest remove workflow

🧑‍🍳 使用 tauri-ui 构建

  • speedbox — internet and DNS speed test desktop app.

Built something with tauri-ui? Open a PR adding it to this list — one line with a link and a short description.


📖 CLI reference and full options → packages/create-tauri-ui

许可证

MIT

本站来源与版权声明
  • 本文标题:tauri-ui - 🦀 Tauri shadcn/ui 应用脚手架
  • 本文链接:https://www.cn121.com/desktop/agmmnn-tauri-ui.html
  • 原项目:agmmnn/tauri-ui 版权归原作者 agmmnn 及贡献者所有
  • 收录信息:本站于 2026-10-07 收录本项目,本页所列协议与仓库指标均为收录当时的状态;该日期之后原项目的版本更新与协议变更,本页不作同步。
  • 开源协议:收录时本项目采用 MIT(查看 LICENSE 原文),本站转载其原始文档(未改动文字,仅剔除图片与无关章节);使用、修改、分发请以该仓库 LICENSE 原文为准。
  • 站点出处:本文首发于 OneTwoOne,收录自 GitHub 开源项目 agmmnn/tauri-ui。
  • 内容说明:本页正文为原项目 README 原文(英文),本站后续会翻译为中文(当前尚未译出,仅将二级标题译为中文,便于按栏目定位;标题原文可在下方原仓库中查看),仅剔除了图片与赞助等无关章节、并把相对链接改为绝对地址;页首简介为机器翻译自仓库描述。
  • 引用声明:商业转载、第三方聚合或 AI 检索训练引用时,请务必保留以上来源出处、本文永久链接,以及原项目的版权声明与许可信息。
  • 下架通道:若原项目此后变更或收紧了许可协议、或作者/权利人认为本站的收录方式(译文、排版适配、简介翻译等)超出其授权范围,请通过 xyd3302001@163.com 发送下架通知,并附上项目地址与本页链接。本站核实后将第一时间删除本页内容,或改为不复制原文的目录性收录;署名更正等其他要求可一并提出。