Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sycamore-rs/sycamore
A library for creating reactive web apps in Rust and WebAssembly
https://github.com/sycamore-rs/sycamore
fine-grained-reactivity rust signals sycamore ui wasm web-assembly
Last synced: 3 days ago
JSON representation
A library for creating reactive web apps in Rust and WebAssembly
- Host: GitHub
- URL: https://github.com/sycamore-rs/sycamore
- Owner: sycamore-rs
- License: mit
- Created: 2021-03-05T19:48:41.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-25T15:45:19.000Z (17 days ago)
- Last Synced: 2024-11-25T17:09:46.543Z (17 days ago)
- Topics: fine-grained-reactivity, rust, signals, sycamore, ui, wasm, web-assembly
- Language: Rust
- Homepage: https://sycamore.dev
- Size: 44.3 MB
- Stars: 2,880
- Watchers: 24
- Forks: 153
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-ccamel - sycamore-rs/sycamore - A library for creating reactive web apps in Rust and WebAssembly (Rust)
- awesome-rust-zh - sycamore - 基于Rust和WebAssembly的响应式web库
- awesome - sycamore-rs/sycamore - A library for creating reactive web apps in Rust and WebAssembly (Rust)
- awesome-yew - Sycamore - A reactive library for creating web apps in Rust and WebAssembly. (Alternatives / Frameworks)
- awesome-2d-graphics-rendering - sycamore
README
Sycamore
[![Crates.io](https://img.shields.io/crates/v/sycamore)](https://crates.io/crates/sycamore)
[![docs.rs](https://img.shields.io/docsrs/sycamore?color=blue&label=docs.rs)](https://docs.rs/sycamore)
[![GitHub contributors](https://img.shields.io/github/contributors/sycamore-rs/sycamore)](https://github.com/sycamore-rs/sycamore/graphs/contributors)
[![Discord](https://img.shields.io/discord/820400041332179004?label=discord)](https://discord.gg/vDwFUmm6mU)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://trunkrs.dev). 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!