登录 注册
开发者工具 cppdeclarative-uidesktopembedded-devicesguijavascript
24,570
Stars
1,065
Forks
117
Watchers
758
Open Issues
NOASSERTION
许可证
Rust
语言
2020-05-04
创建时间
2026-11-11
最近更新

项目能做什么

开源声明式 GUI 工具包,支持为 Rust、C++、JavaScript 或 Python 应用构建原生界面。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
![Slint](./logo/slint-logo-full-light.svg#gh-light-mode-only) ![Slint](./logo/slint-logo-full-dark.svg#gh-dark-mode-only)

[![Build Status](https://github.com/slint-ui/slint/actions/workflows/ci.yaml/badge.svg?branch=master)](https://github.com/slint-ui/slint/actions/workflows/ci.yaml)
[![REUSE status](https://api.reuse.software/badge/github.com/slint-ui/slint)](https://api.reuse.software/info/github.com/slint-ui/slint)
[![Discussions](https://img.shields.io/github/discussions/slint-ui/slint)](https://github.com/slint-ui/slint/discussions)

**Slint** is an open-source declarative GUI toolkit to build native user interfaces for any device.
Write your UI in `.slint`, a simple markup language, and connect it to business logic written in Rust, C++, JavaScript, or Python.
Slint scales from desktop apps to mobile apps on Android and iOS,
and down to embedded Linux and microcontrollers such as STM32, ESP32, and RP2040.

## Why Slint?

The name *Slint* is derived from our design goals:

- **Scalable**: Slint should support responsive UI design, allow cross-platform
    usage across operating systems and processor architectures and support
    multiple programming languages.
- **Lightweight**: Slint should require minimal resources, in terms of memory
    and processing power, and yet deliver a smooth, smartphone-like user
    experience on any device.
- **Intuitive**: Designers and developers should feel productive while enjoying
    the GUI design and development process. The design creation tools should be
    intuitive to use for the designers. Similarly for the developers, the APIs
    should be consistent and easy to use, no matter which programming language
    they choose.
- **Native**: GUI built with Slint should match the end users' expectations of a
    native application irrespective of the platform - desktop, mobile, web or
    embedded system. The UI design should be compiled to machine code and provide
    flexibility that only a native application can offer: Access full operating
    system APIs, utilize all CPU and GPU cores, connect to any peripheral.

Beyond the design goals, here’s what makes Slint stand out:

- **Independent UI Design**: Use a declarative language to separate your UI from business logic. Designers can work in parallel with developers.
- **Tooling**: Iterate quickly with our Live Preview & editor integrations. Integrate from Figma with the [Figma to Slint plugin](https://www.figma.com/community/plugin/1474418299182276871/figma-to-slint).
- **Stable APIs**: Slint follows a stable 1.x API. We evolve carefully without breaking your code.

See what others have built: [#MadeWithSlint](https://madewithslint.com)

## Examples

### Embedded

| RaspberryPi                          | STM32                         | RP2040                         |
| ------------------------------------ | ----------------------------- | ------------------------------ |
| [Video of Slint on Raspberry Pi][#1] | [Video of Slint on STM32][#2] | [Vid
阅读完整原文

商业机会分析 AI 生成

嵌入式与工控场景专用 Slint 高级组件库

产品构想针对智能家居、医疗仪器及工控屏,构建开箱即用的 Slint 工业级仪表、动效图表、虚拟键盘及触控优化组件库。
核心功能低内存占用仪表盘组件、轻量级动态数据图表、自适应屏幕触控交互、暗黑/工业高对比度主题包、开箱即用的多语言本地化配置。
目标用户物联网硬件工程师、嵌入式 UI 开发者、智能硬件初创公司。
难度/周期中等 · 1-2 个月 · 成本:开发调试用主流开发板(如 ESP32-S3、树莓派等,约 500-1000 元)
收费模式按开发座席/项目商业授权买断或年度组件库订阅制
竞争风险Slint 官方自身持续补全基础控件,存在组件功能重合风险;嵌入式领域客户获取路径较重。
依据 数据支持的判断

Figma 转 Slint 代码自动生成与预览插件

产品构想连接 UI 设计师与开发人员,将 Figma 设计稿一键解析并导出为干净、符合规范的 Slint 声明式布局文件及 Rust/C++ 绑定骨架。
核心功能Figma 矢量图元转 Slint 语法、响应式布局约束转换、自定义交互动画映射、实时在浏览器内预览 Slint 效果。
目标用户独立开发者、嵌入式产品设计团队、前端转客户端开发者。
难度/周期中等偏高 · 2-3 个月 · 成本:低(基础 Web 预览服务器及 Figma 插件维护费用)
收费模式Freemium 模式:基础组件免费导出,复杂嵌套/状态机逻辑转换按月订阅或点数付费
竞争风险Figma 复杂矢量图与 Slint 布局引擎的完全映射难度大,维护跨版本兼容成本较高。
依据 AI推测

低功耗设备 Slint 移植适配与交钥匙咨询服务

产品构想针对特定国产芯片或低成本 MCU/MPU 提供 Slint 引擎移植、裸机/RTOS 适配、启动耗时与帧率专项优化的技术服务。
核心功能定制 Framebuffer/DRM 显示驱动适配、内存使用极限压测与优化报告、交互原型落地与交付文档。
目标用户传统工控设备制造商、智能硬件出海方案商、急需将旧 UI(如 LVGL/Qt)迁移至现代 Rust 技术栈的企业。
难度/周期高 · 按项目交付(单次 3-6 周) · 成本:极低(主要为硬件采购及样机邮寄成本)
收费模式按项目收取定制开发与咨询费
竞争风险属于劳动力交付型业务,难以规模化扩展,且严重依赖对底层硬件图形驱动的深入理解。
依据 数据支持的判断
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
morluto/rea 中文介绍暂未生成
Reverse engineer anything with agents, from app behavior dow
449,558 TypeScript
practical-tutorials/project-based-learning 中文介绍暂未生成
Curated list of project-based tutorials
289,486 Python
CyC2018/CS-Notes 中文介绍暂未生成
:books: 技术面试必备基础知识、Leetcode、计算机操作系统、计算机网络、系统设计
186,477 JavaScript
ggml-org/llama.cpp 中文介绍暂未生成
LLM inference in C/C++
133,940 C++
fffaraz/awesome-cpp 中文介绍暂未生成
A curated list of awesome C++ (or C) frameworks, libraries,
74,349 -
youngyangyang04/leetcode-master 中文介绍暂未生成
《代码随想录》LeetCode 刷题攻略:200道经典题目刷题顺序,共60w字的详细图解,视频难点剖析,50余张思维导图
62,810 Shell
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2020-05-04,近 30 天仍在推送,发布过 59 个 Release
社区活跃Star 24,570 / Fork 1,065 / Issue 758(数据支持,可自行核实)
许可证NOASSERTION
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/slint-ui/slint.git
cd slint
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。