trunk VS SvelteKit

Compare trunk vs SvelteKit 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 SvelteKit
53 608
3,116 17,507
3.3% 1.9%
9.6 9.8
1 day ago about 16 hours ago
Rust JavaScript
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.
  • 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.

  • 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.
  • Rendering old school tilemaps with WGPU?
    3 projects | /r/rust_gamedev | 21 Sep 2022
    My current tooling is based on using trunk which eframe supports quite easily. Notan could too I suppose. The biggest block in tooling was needing to call notan_main on the wasm module. Trunk (as far as I am aware) does not support that behavior.
  • What's the go-to web frontend + backend project layout these days?
    2 projects | /r/rust | 14 Sep 2022
    I read through the trunk docs and there isn't any explicit reference to using it within a cargo workspace, however trunk includes a few clever features I discovered reading its example config file... So my thinking now is that I will put Trunk.toml in the project root, add index.html to the /client/ directory and point trunk at it, put the trunk output into /dist/

SvelteKit

Posts with mentions or reviews of SvelteKit. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-03.
  • Cannot CRUD cookies in SvelteKit from another port
    2 projects | news.ycombinator.com | 3 Mar 2024
  • The State of Angular SSR Deployment in 2024
    11 projects | dev.to | 2 Mar 2024
    These adapters, for example, were built by the community: https://github.com/sveltejs/kit/tree/master/packages/adapter-vercel https://github.com/nuxt/vercel-builder If somebody builds a working one for Angular Universal, we will gladly add it to our Framework Presets β†’ https://vercel.com/docs/concepts/deployments/build-step#framework-preset.
  • AI for Web Devs: Deploying Your AI App to Production
    6 projects | dev.to | 7 Feb 2024
    UPDATE: If you liked this project and are curious to see what it might look like as a SvelteKit app, check out this blog post by Tim Smith where he converts this existing app over.
  • Ask HN: Looking for lightweight personal blogging platform
    35 projects | news.ycombinator.com | 6 Feb 2024
    I've played around with several platforms in the last year or so. I've landed on the following setup that works very well for me and ticks all your boxes:

    A SvelteKit[0] app hosted on Cloudflare pages. The repo is hosted on GitHub and hooked up to the Cloudflare Pages app [1]. On PRs, I get preview environments. On merge, the changes get deployed to my "production" website. I write blog posts and other content in markdown, which is then processed by mdsvex[2] with very minimal setup.

    Mostly, my requirements were more focused around getting the actual framework, hosting, etc. out of my way so that I could focus on writing. Gatsby and Next.js were too configuration heavy and turned me off once I scratched beyond the surface.

    [0] https://kit.svelte.dev/

  • Mini site for recommending songs using Svelte & Deno
    2 projects | dev.to | 3 Feb 2024
    Behind the scenes is a simple Sveltekit-powered server function to fetch a Spotify client token then find a user's recommendation playlist and its track information. A Deno edge function to performs this data fetch and renders server-side Svelte.
  • Removing React is just weakness leaving your codebase
    6 projects | dev.to | 31 Jan 2024
    It’s 2024, and you are about to start a new project. Do you reach for React, a framework you know and love or do you look at one of the other hot new frameworks like Astro, Enhance, 11ty, SvelteKit or gasp, plain vanilla Web Components?
  • CryptoFlow: Building a secure and scalable system with Axum and SvelteKit - Part 5
    3 projects | dev.to | 22 Jan 2024
    From part 0 to part 4, we built out CryptoFlow's backend service. Though we can quickly use Postman, VS Code's ThunderClient or automated tests to see the endpoints working easily, this isn't all we want. We want to actively interact with the backend service via some intuitive user interface. Also, a layman wouldn't be able to "consume" the service we've built in the last parts. This article introduces building out the user interface of the system. We will be using SvelteKit, a framework that streamlines web development, and TailwindCSS, the utility-first CSS framework. Let's dig in!
  • How I Contributed to Open-Source While Learning Svelte
    3 projects | dev.to | 21 Jan 2024
    The tutorial is composed of four parts, covering both Svelte and SvelteKit, which is a UI framework for Svelte.
  • CryptoFlow: Building a secure and scalable system with Axum and SvelteKit - Part 1
    3 projects | dev.to | 5 Jan 2024
    CryptoFlow is a full-stack web application built with Axum and SvelteKit. It's a Q&A system tailored towards the world of cryptocurrency!
  • Cryptoflow: Building a secure and scalable system with Axum and SvelteKit - Part 0
    12 projects | dev.to | 4 Jan 2024
    Being a pragmatist, it's always intriguing to learn by building cool systems with the best tools currently available. The last time I did this, three series came out and it was fulfilling. Having had some break, I decided to build something with axum, "a rust web application framework that focuses on ergonomics and modularity". As usual, SvelteKit comes to our rescue at the front end. What are we building? That's a nice question!

What are some alternatives?

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

Next.js - The React Framework

Nuxt.js - Nuxt is an intuitive and extendable way to create type-safe, performant and production-grade full-stack web apps and websites with Vue 3. [Moved to: https://github.com/nuxt/nuxt]

Express - Fast, unopinionated, minimalist web framework for node.

astro - The web framework for content-driven websites. ⭐️ Star to support our work!

vite - Next generation frontend tooling. It's fast!

Svelte - Cybernetically enhanced web apps

qwik - Instant-loading web apps, without effort

remix - Build Better Websites. Create modern, resilient user experiences with web fundamentals.

wasm-pack - πŸ“¦βœ¨ your favorite rust -> wasm workflow tool!

solid - A declarative, efficient, and flexible JavaScript library for building user interfaces.

Angular - Deliver web apps with confidence πŸš€

Playwright - Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.