SolidJSVite启动器

tauri-start-solid — SolidJS 启动器模板

作者 riipandi

基于 Tauri 与 SolidJS 的跨平台桌面应用启动模板,内置托盘菜单、自定义标题栏、应用菜单与更新器等桌面端常用能力。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

1 个预览视图
作者提供的预览
作者提供的预览首屏预览

来自项目 README 的原始预览。

目前有 1 张原始预览,可打开完整图片查看设计细节。

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-07查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

Tauri 侧预置 dialog、http、log、notification、opener、os、positioner、process、shell 等插件

02

包含自定义标题栏、自定义应用菜单与应用托盘菜单

03

内置应用更新器、深色/浅色主题切换与多主题支持

04

前端使用 SolidJS、TanStack Router、Nano Stores、Tailwind CSS 与 Vite

05

提供 Storybook 界面开发环境,以及 Oxlint、Oxfmt 与 Lefthook 工具链

06

附带 GitHub Actions 用于 CI 测试与构建

模板详细介绍

tauri-start-solid 是一个用于开发多平台桌面应用的启动模板,前端采用 SolidJS、TypeScript、Tailwind CSS 与 Vite,路由使用 TanStack Router,状态管理使用 Nano Stores,桌面外壳由 Tauri 提供。模板在 Tauri 侧预置了 dialog、http、log、notification、opener、os、positioner、process、shell 等插件,并包含自定义标题栏、自定义应用菜单、应用托盘菜单、应用更新器、主题切换(深色/浅色)、UI 与编辑器自定义字体、多主题支持,以及独立窗口的应用设置界面。开发侧还提供 Storybook 用于界面开发,使用 Oxlint 与 Oxfmt 做检查与格式化,通过 Lefthook 配置 Git 钩子,并提供 GitHub Actions 用于 CI 测试与构建。

使用方式上,模板通过 tiged 拉取到本地目录,需要先安装 Rust、Node.js、PNPM 与 Lefthook 工具链,然后手动替换 package.json、src-tauri/Cargo.toml 与 src-tauri/tauri.conf.json 中的项目名称,并查找替换 tauri-start-solid、tauri_start_solid 与 Tauri App 等字符串,再在 tauri.conf.json 中设置应用标识符与元数据,最后执行 pnpm install 与 pnpm dev 开始开发;构建使用 pnpm build,调试构建使用 pnpm build:debug 以启用开发者工具。

限制方面,模板本身不包含签名与公证流程,README 说明 macOS 上未签名构建会触发“已损坏,无法打开”的警告,需要通过 xattr 命令移除隔离属性。代码以 Apache-2.0 或 MIT 双许可发布,但演示图片、字体、图标等第三方素材需单独核对许可。

SolidJSVite启动器

适合你的项目吗?

适用场景

  • 需要托盘菜单与自定义标题栏的跨平台桌面应用起步
  • 以 SolidJS 作为前端、Tauri 作为桌面外壳的项目初始化
  • 需要应用更新器、主题切换与独立设置窗口的桌面工具开发
  • 希望用 Storybook 单独开发与调试界面组件的桌面项目

适合人群

  • 熟悉 SolidJS 与 TypeScript 的前端开发者
  • 需要 Rust 与 Tauri 桌面开发基础的个人或团队
  • 计划构建带托盘菜单的多平台桌面应用的项目

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    需先安装 Rust、Node.js、PNPM 与 Lefthook 工具链

  2. 2

    通过 pnpm dlx tiged riipandi/tauri-start-solid my-app 拉取模板

  3. 3

    需替换 package.json、src-tauri/Cargo.toml 与 src-tauri/tauri.conf.json 中的项目名称,并查找替换 tauri-start-solid、tauri_start_solid 与 Tauri App 字符串

  4. 4

    在 tauri.conf.json 中设置应用标识符与其他元数据,然后执行 pnpm install 与 pnpm dev

  5. 5

    macOS 上未签名构建可能提示应用已损坏,需用 xattr 命令移除 com.apple.quarantine 属性

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 Apache-2.0 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发;分发时需随附 Apache-2.0 许可证。
  • 修改过的文件需显著标明改动,并保留相关版权、专利、商标及归属声明。
  • 若原项目附有 NOTICE 文件,分发衍生作品时需保留其中适用的归属声明。
  • 许可包含适用的贡献者专利授权;发起许可所述专利诉讼会终止该专利授权,且不授予商标使用权。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 Apache-2.0 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
  • 使用前必须自行安装 Rust、Node.js、PNPM 与 Lefthook 工具链,缺少这些外部工具无法运行或构建模板。
  • 需手动替换 package.json、Cargo.toml 与 tauri.conf.json 中的项目名称,模板不会自动完成改名。
  • 必须手动查找并替换源码中的 tauri-start-solid、tauri_start_solid 与 Tauri App 字符串,否则会残留模板标识。
  • 需自行在 tauri.conf.json 中设置应用标识符及其他元数据,模板不提供默认的正式应用标识。
  • 模板不包含签名与公证流程,macOS 上未签名构建会触发警告,需手动执行 xattr 命令移除隔离属性。
查看原文依据

no-charge, royalty-free, irrevocable copyright license

许可证原文

1. Install required toolchains: [Rust][rust], [Node.js][nodejs], [PNPM][pnpm], and [Lefthook][lefthook].

README 原文

2. Replace the project name in the [`package.json`](./package.json), [`Cargo.toml`](./src-tauri/Cargo.toml), and [`tauri.conf.json`](./src-tauri/tauri.conf.json) files.

README 原文

3. Find and replace `tauri-start-solid`, `tauri_start_solid` and `Tauri App` strings in the source files.

README 原文

4. Set application identifier and other application metadata in [`tauri.conf.json`](./src-tauri/tauri.conf.json) file.

README 原文

This warning is shown because the build is not signed. Run the following command to suppress this warning:

README 原文
https://github.com/riipandi/tauri-start-solid/blob/main/LICENSE-APACHEhttps://github.com/riipandi/tauri-start-solid/blob/main/README.md

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-07。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 84 / 100
技术栈
SolidJS · Vite
网站类型
启动器
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2026-03-20
截图检查日期
2026-10-07

目前没有记录演示链接。请依据仓库说明在本地评估;仅凭截图无法确认交互行为。

目录记录的主要技术栈是 SolidJS。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

审核声明: [email protected] · 2026-10-08

查看当时使用的来源资料

SHA-256: a515bcfadb394d06f955d51e33fa3738dd975850b8a559db764f1b7dc0d86527

2026-10-07T19:03:59.233Z

来源文件 / 仓库
# ⚡️ Tauri Start Solid

[![Rust version](https://img.shields.io/badge/rust-v1.90-FF5500.svg?logo=rust)](https://www.rust-lang.org)
[![Tauri version](https://img.shields.io/badge/Tauri-v2-00aaff.svg?logo=tauri)](https://tauri.app)
![Repo Size](https://img.shields.io/github/repo-size/riipandi/tauri-start-solid)
[![Contribution welcome](https://img.shields.io/badge/Contributions-welcome-gray.svg)](https://github.com/riipandi/tauri-start-solid/pulse)
<!-- [![CI Test](https://github.com/riipandi/tauri-start-solid/actions/workflows/test.yml/badge.svg)](https://github.com/riipandi/tauri-start-solid/actions/workflows/test.yml) -->

---

This project template should help get you started developing a multi-platform desktop application using
Tauri, SolidJS, TanStack Router, Nano Stores, Typescript, Tailwind CSS, and Vite.

## Quick Start

```sh
pnpm dlx tiged riipandi/tauri-start-solid my-app
```

1. Install required toolchains: [Rust][rust], [Node.js][nodejs], [PNPM][pnpm], and [Lefthook][lefthook].
2. Replace the project name in the [`package.json`](./package.json), [`Cargo.toml`](./src-tauri/Cargo.toml),
   and [`tauri.conf.json`](./src-tauri/tauri.conf.json) files.
3. Find and replace `tauri-start-solid`, `tauri_start_solid` and `Tauri App` strings in the source files.
4. Set application identifier and other application metadata in [`tauri.conf.json`](./src-tauri/tauri.conf.json) file.
5. Install frontend dependencies by running `pnpm install`.
6. Run `pnpm dev` to start developing.

To build the application, run `pnpm build`. You can also run `pnpm build:debug`
to build the application in debug mode, this will enable developer tools.

## What's Inside?

- [x] Tauri v2 + essential plugins:
    - [x] `tauri-plugin-dialog`
    - [x] `tauri-plugin-http`
    - [x] `tauri-plugin-log`
    - [x] `tauri-plugin-notification`
    - [x] `tauri-plugin-opener`
    - [x] `tauri-plugin-os`
    - [x] `tauri-plugin-positioner`
    - [x] `tauri-plugin-process`
    - [x] `tauri-plugin-shell`
- [x] Custom titlebar (desktop)
- [x] Custom application menu
- [x] Application tray menu
- [x] Application updater
- [x] Read values from `.env` file
- [x] Theme switcher (dark & light mode)
- [x] Custom font support for UI and editor
- [x] Multiple theme support with Tailwind CSS
- [x] Application settings with separated window
- [x] Frontend app with [SolidJS][solidjs] + [Tailwind CSS][tailwindcss]
- [x] Routing with [TanStack Router][tanstack-router]
- [x] [Storybook][storybook] for developing user interface
- [x] State management with [Nano Stores][nanostores]
- [x] Linter and formatter with [Oxlint][oxlint] and [Oxfmt][oxfmt]
- [x] Git hooks tasks with [Lefthook][lefthook]
- [x] GitHub actions for CI testing and build

## Recommended IDE Setup

[Visual Studio Code](https://code.visualstudio.com/) + [Recomended extensions](./.vscode/extensions.json)

### Fix Unsigned Warning (macOS)

> Warning: "Tauri App" is damaged and can't be opened.

This warning is shown because the build is not signed. Run the following command
 to suppress this warning:

```sh
xattr -r -d com.apple.quarantine "/Applications/Tauri App.app"
```

## Screenshots

![Screenshot](./assets/images/screenshot-light.jpeg)
![Screenshot](./assets/images/screenshot-dark.jpeg)

# Learn More

You can learn more about all of the offerings from TanStack in the [TanStack documentation](https://tanstack.com).

Type assertion is necessary for Kobalte polymorphic components. See: https://kobalte.dev/docs/core/overview/polymorphism

## Acknowledgements

- [Tauri Examples Repo](https://github.com/tauri-apps/tauri/tree/dev/examples)
- [tauri-start-solid-example](https://github.com/dheater/tauri-start-solid-example)
- [tauri-tray-icon-animation](https://github.com/rming/tauri-tray-icon-animation)
- [tauri-tray-menu](https://github.com/rming/tauri-tray-menu)
- [tauri-window-controls](https://github.com/agmmnn/tauri-controls)
- [tauri-plugin-theme](https://github.com/wyhaya/tauri-plugin-theme)
- [hamza72x/web2app](https://github.com/hamza72x/web2app)
- [Create a Menu Bar App With Tauri](https://betterprogramming.pub/create-menubar-app-with-tauri-510ab7f7c43d)
- [Publishing Tauri to Apple's App Store](https://thinkgo.io/post/2023/02/publish_tauri_to_apples_app_store)
- [GTK Installation Docs](https://www.gtk.org/docs/installations/macos)
- [Tips For Faster Rust Compile Times](https://corrode.dev/blog/tips-for-faster-rust-compile-times)
- [Tauri State Management](https://tauri.by.simon.hyll.nu/concepts/tauri/state_management)

## License

Licensed under either of [Apache License 2.0][license-apache] or [MIT license][license-mit] at your option.

> Unless you explicitly state otherwise, any contribution intentionally submitted
> for inclusion in this project by you, as defined in the Apache-2.0 license, shall
> be dual licensed as above, without any additional terms or conditions.

Copyrights in this project are retained by their contributors.

See the [LICENSE-APACHE](./LICENSE-APACHE) and [LICENSE-MIT](./LICENSE-MIT) files for more information.

[lefthook]: https://github.com/evilmartians/lefthook
[license-apache]: https://choosealicense.com/licenses/apache-2.0/
[license-mit]: https://choosealicense.com/licenses/mit/
[nanostores]: https://github.com/nanostores/nanostores
[nodejs]: https://nodejs.org/en/download
[oxfmt]: https://oxc.rs/docs/guide/usage/formatter
[oxlint]: https://oxc.rs/docs/guide/usage/linter
[pnpm]: https://pnpm.io/installation
[riipandi-twitter]: https://twitter.com/intent/follow?screen_name=riipandi
[rust]: https://www.rust-lang.org/tools/install
[solidjs]: https://www.solidjs.com
[storybook]: https://www.npmjs.com/package/storybook-solidjs-vite
[tanstack-router]: https://tanstack.com/router
[tailwindcss]: https://tailwindcss.com

---

<sub>🤫 Psst! If you like my work you can support me via [GitHub sponsors](https://github.com/sponsors/riipandi).</sub>

[![Made by](https://badgen.net/badge/icon/Made%20by%20Aris%20Ripandi?icon=bitcoin-lightning&label&color=black&labelColor=black)][riipandi-twitter]
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。