百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

sycamore

> 前端框架
开源

用于在 Rust 和 WebAssembly 中创建反应式 Web 应用程序的库

3.3K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

用于在 Rust 和 WebAssembly 中创建反应式 Web 应用程序的库

Sycamore is a _reactive_ library for creating web apps in **Rust** and **WebAssembly**. ```rust #[component] fn Hello() -> View { view! { p { "Hello World!" } } } ``` - **Lightning Speed**: Sycamore harnesses the full power of [Rust](https://www.rust-lang.org/) via [WebAssembly](https://webassembly.org/), giving you full control over performance. - **Ergonomic and Intuitive**: Write code that feels natural. Everything is built on [reactive primitives](https://sycamore.dev/book/introduction/adding-state) without a cumbersome virtual DOM. - **No JavaScript**: Had enough of JavaScript? So have we. Create apps using Sycamore without touching a single line of JS. ## Documentation Sycamore is extensively documented: - [The Book](https://sycamore.dev/book/introduction): The Sycamore "Book" will first help guide you through basic concepts and create a simple app. It then dwelves into some more advanced topics for building more complex apps. - [API Documentation](https://docs.rs/sycamore): the rustdocs for the `sycamore` crate. **Still have questions?** Don't hesitate to stop by our friendly [Discord server](https://discord.gg/vDwFUmm6mU). ## Examples Sycamore has many examples for your reference in the [`examples/`](https://github.com/sycamore-rs/sycamore/tree/main/examples) directory. Be sure to check them out! ### Viewing on `examples.sycamore.dev` All the examples are hosted under `examples.sycamore.dev/` with `` being the name of the example you want to view. For instance, the `todomvc` example is hosted on [`examples.sycamore.dev/todomvc`](https://examples.sycamore.dev/todomvc). ### Building Locally All the examples can also be built locally using [Trunk](https://trunk-rs.github.io/trunk/). For instance, the following command builds and serves the `todomvc` example: ```bash cd examples/todomvc trunk serve ``` Now open up in your browser to see the example running in action. ## Alternatives? Don't think Sycamore is for you? Thankfully, there are plenty of alternatives! - **[SolidJS](https://github.com/solidjs/solid): A declarative, efficient and flexible JavaScript library for building user interfaces**
Solid is a JavaScript library which greatly inspired Sycamore. Many concepts such as fine-grained reactivity and components as factory functions were borrowed from Solid. If you don't mind working with JavaScript (or TypeScript), go check it out! - **[Leptos](https://github.com/leptos-rs/leptos): Build fast web applications with Rust.**
Leptos is another Rust library based on the fine-grained reactivity paradigm. Leptos shares many similarities with Sycamore and, as of now, has a larger community. - **[Dioxus](https://github.com/dioxuslabs/dioxus): Fullstack app framework for web, desktop, mobile, and more.**
Dioxus uses a VDOM instead of fine-grained reactivity for updating the DOM, although it uses fine-grained reactivity for state management. This allows Dioxus to target a wide variety of platforms including native and mobile. ## Contributing - Report issues on our [issue tracker](https://github.com/sycamore-rs/sycamore/issues). - We love Pull Requests! For more information, check out the [section on contributing](https://sycamore.dev/book/contributing) in the docs. Sycamore would not have been possible without the wonderful contributions from the community. Thank you! Special thanks to [@nate-sys](https://github.com/nate-sys) for designing the Sycamore logo!

GitHub Issues· 34 开放

在 GitHub 查看全部
  • #670

    Websocket example

    A-examples更新于 2026年7月3日
  • #823

    Binding the value of a file input leads to uncaught exceptions

    更新于 2026年6月25日
  • #781

    Unexpected behavior of reactivity in `Indexed` and `Keyed`

    C-bugA-reactivityD-hard更新于 2026年6月15日
  • #808

    Enable `suspense` feature by default

    S-actionable更新于 2026年2月21日
  • #200

    Allow on-demand upgrade from static html to js components (islands)

    C-enhancementA-SSR更新于 2025年5月21日
  • #55

    Testing story

    更新于 2025年1月20日
  • #777

    Unexpected full refresh on navigation

    C-bugA-router更新于 2025年1月18日
  • #766

    Make `NodeRef` generic to avoid manual casting

    C-enhancement更新于 2024年12月17日
  • #528

    Fallible components

    C-enhancementA-macroA-ergonomicsS-needs-design更新于 2024年11月3日
  • #176

    Synthetic Event Delegation

    C-enhancementperformanceD-hard更新于 2024年11月1日

核心特点

  • •Lightning Speed: Sycamore harnesses the full power of Rust via
  • •Ergonomic and Intuitive: Write code that feels natural. Everything is built on
  • •No JavaScript: Had enough of JavaScript? So have we. Create apps using Sycamore without
  • •The Book: The Sycamore "Book" will first help guide you
  • •API Documentation: the rustdocs for the sycamore crate.
  • •SolidJS: A declarative, efficient and flexible JavaScript
  • •Leptos: Build fast web applications with Rust. <br />
  • •Dioxus: Fullstack app framework for web, desktop, mobile,
  • •Report issues on our issue tracker.
  • •We love Pull Requests! For more information, check out the

> 标签

Rustfine-grained-reactivityrustsignalssycamore

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架