trunk VS sycamore

Compare trunk vs sycamore and see what are their differences.

trunk

Build, bundle & ship your Rust WASM application to the web. (by trunk-rs)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
trunk sycamore
53 70
3,161 2,657
2.4% 2.4%
9.6 7.4
about 14 hours ago 11 days ago
Rust Rust
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

trunk

Posts with mentions or reviews of trunk. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-26.
  • Migrating a JavaScript frontend to Leptos, a Rust framework
    4 projects | dev.to | 26 Mar 2024
    Note that Leptos uses Trunk to serve the client side application. Trunk is a zero-config Wasm web application bundler for Rust.
  • Why Is the Front End Stack So Complicated?
    1 project | news.ycombinator.com | 16 Oct 2023
    I've been using Rust and WASM for my latest front-end project, and I think this setup is a viable alternative to commonly used JS frameworks for those willing to put in some effort to ramp up on new technology. Addressing the concerns from the article:

    "No universal import system" - Rust has it's own module system and Cargo is used for managing dependencies, no need to worry about different module systems.

    "Layers of minification, uglification, and transpilation." Just compile Rust to WASM file for the browser, same as using any other compile target.

    "Wildly different environments." Something that you'll still need to deal with. Some runtime dependencies are system-specific (code running on the browser usually needs access to Web APIs, and JavaScript, code running on the server can't access WebAPIs but can access the system clock and filesystem. Sometimes separate libraries or separate runtime configs are needed (e.g. configurable time source)

    "Overemphasis on file structure." Not a problem for imports, but you may still have file structure dependencies things like CSS, image resources etc.

    "Configuration hell." Pretty much non-existent once you have your Rust compiler setup locally.

    "Development parity." Just use trunk: https://trunkrs.dev/, to watch, build and serve, config is minimal.

  • PSA: Rust web frontend with Tailwind is easy!
    3 projects | /r/rust | 1 Jul 2023
    Trunk, the Rust-equivalent of Webpack & Vite, comes with tailwind built-in. You heard that right! You don't even need to install the tailwind CLI via npm or something like that. No more package.json! <3
  • Awesome presentation of Dioxus - cross-platform GUI framework at RustNL
    3 projects | /r/rust | 14 Jun 2023
    Can you not use dioxus with "trunk" (https://trunkrs.dev/) ?
  • A Chess Engine is written in Rust that runs natively and on the web!
    4 projects | /r/rust | 30 Mar 2023
    Thanks a lot! As I said in an earlier comment, building this allowed me to explore a lot of features of rust like Traits, Dynamic Dispatch, Pattern Matching, Const evaluation, Static variables, etc. and that on top of that trying to figure out how to conveniently port it to WASM was also a nice learning experience. I am currently using trunk as a bundler which ties in neatly with a GitHub action but before that, I tried cargo-run-wasm, which felt a little hacky. So overall a whole lot of learning.
  • Speak English to me, The secret World of Programmers
    7 projects | news.ycombinator.com | 16 Mar 2023
    Here here. I don't think programmers - as a group - get to complain about people not learning programming tools while simultaneously making them so unapproachable (especially Linux things).

    It's not just the overuse of acronyms. There's also:

    * Religious devotion to the CLI despite it having terrible discoverability.

    * Really bad naming. Git is probably the worst offender at this, but the whole of Unix is a naming mess. WTF is `usr`? Is that where user files go?

    * Generally over-complicated tooling. A good example of this is Node/NPM. So complicated to set up! Contrast it with https://trunkrs.dev/

    * Deification of distro packages. No I do not want to spend half of my development time packaging my app for 10 different distros. I guess I'll go with curl | bash then.

    * Distain for binary app distribution. I'm looking at you glibc.

  • Helper/cheat tool for the board game Cryptid - my first website built with Rust/Wasm
    1 project | /r/rust | 7 Mar 2023
    I used Notan for drawing the game board in combination with the excellent egui for adding UI elements. It was surprisingly easy to bring it to web with Trunk.
  • MailCrab
    4 projects | news.ycombinator.com | 5 Mar 2023
    Hi, the author of MailCrab here :-) Yew is nice, especially if you enjoy writing Rust. However, it definitely takes more time and dedication than writing a frontend in React, Vue etc. Yew and the surrounding ecosystem keeps improving, and it is way more usable than when I first tried it. The tooling I used (Trunk https://trunkrs.dev/) is very minimal with respect to the number of features compared to many of the popular web-bundlers (Webpack etc.) but it works well for most simple use-cases.
  • Is rust + yew a good starting point for learning web dev?
    2 projects | /r/rust | 21 Oct 2022
    Yew is way way nicer in that regard because it uses Trunk which is very excellent and you don't have to deal with any of that really. Just trunk serve and away you go. Plus you get the advantage of not having to deal with Javascript. Typescript is nice, but it's no Rust.
  • Junior Dev here -- How are we setting up Rust, WASM, and webpack?
    4 projects | /r/rust | 28 Sep 2022
    The alternative to wasm-pack is trunk. I've never used it, so I can't tell you how good it is.

sycamore

Posts with mentions or reviews of sycamore. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-05.
  • Building a Rust app with Perseus
    8 projects | dev.to | 5 Jul 2023
    Perseus is a fast frontend web development framework for Rust with built-in support for reactivity using Sycamore, server-side rendering, and much more. Sycamore is a frontend library that allows you to build interactive user interfaces with Rust. I’d say that Perseus is to Sycamore as Next.js is to React, so it’ll be helpful for you to have a fair understanding of Sycamore before jumping into using Perseus — although it’s not necessary to follow along in this article.
  • Announcing samba – a Rust full-stack assistant for ballroom dancers
    2 projects | /r/rust | 7 Jun 2023
    Now, I considered whether to spend more time fixing everything that now failed in sycamore 0.9. But there are major changes ahead which would require yet another major refactoring, to the point where I am not sure whether it would not be more of a rewrite than a refactoring, given my previous experiences with sycamore.
  • Rust Tauri (inspired by Electron) 1.3: Getting started to build apps
    10 projects | dev.to | 6 May 2023
    Sycamore.
  • Want a web app to respond to local file changes. Is Tauri the solution here?
    8 projects | /r/rust | 1 May 2023
    Sycamore, Yew, or Seed if you want a full-stack solution. (Or Leptos if you want something that's faster but less mature.)
  • Hey Rustaceans! Got a question? Ask here (16/2023)!
    15 projects | /r/rust | 17 Apr 2023
    There are others, like Sycamore, similar story as Leptos but imo Leptos is (currently) more ergonomic.
  • Sycamore -a library for creating web apps in Rust and WebAssembly
    1 project | /r/rustist | 9 Apr 2023
    Sycamore is a reactive library for creating web apps in Rust and WebAssembly. https://github.com/sycamore-rs/sycamore
  • Yew | What’s been your experience?
    10 projects | /r/rust | 4 Apr 2023
    I tried my first project with yew as frontend. And my experience was after some time similar to the already mentioned ones: It is a little more to take on than I actually wanted. And some things were not straightforward to achieve. I switched to sycamore for the other projects now and I am much more satisfied (but this could also be since I have some more experience in the Rust ecosystem by now). Changing from yew to sycamore was pretty easy and I can achieve most of the tasks with less code.
  • Rust tech stack
    11 projects | /r/rust | 23 Mar 2023
    If you want to do fullstack/SPA stuff, check out Sycamore, Seed, and Yew.
  • rust web dev??
    6 projects | /r/rust | 11 Mar 2023
    If you want to do front-end SPA development, take a look at Yew, Seed, or Sycamore.
  • How Discord Stores Trillions of Messages
    7 projects | /r/programming | 6 Mar 2023
    I have written a front-end (website) application in Rust that is used internally in production. I wouldn't recommend to use something like sycamore, leptos, dioxus, yew for you next puplic web-app now but i can absolutely see how this is used in the future as those libs mature.

What are some alternatives?

When comparing trunk and sycamore you can also consider the following projects:

wasm-pack - 📦✨ your favorite rust -> wasm workflow tool!

yew - Rust / Wasm framework for creating reliable and efficient web applications

tailwind-yew-builder - Build tailwind css for yew style applications, using docker-compose, so you don't need to have npm installed

dioxus - Fullstack GUI library for web, desktop, mobile, and more.

wasm-bindgen - Facilitating high-level interactions between Wasm modules and JavaScript

leptos - Build fast web applications with Rust.

perseus - A state-driven web development framework for Rust with full support for server-side rendering and static generation.

wasmtime - A fast and secure runtime for WebAssembly

rust-dominator - Zero-cost ultra-high-performance declarative DOM library using FRP signals for Rust!

awesome-vite - ⚡️ A curated list of awesome things related to Vite.js

tauri - Build smaller, faster, and more secure desktop applications with a web frontend.