r/sveltejs • u/khromov • 3h ago
Svelte and oxc | Yuichiro Yamashita | Svelte Summit 2026
r/sveltejs • u/kevmodrome • Jul 27 '26
r/sveltejs • u/khromov • 3h ago
r/sveltejs • u/The_RockETman_show • 17h ago
I maintain Valence, an open-source project that runs a web app as the UI of a Flutter mobile app and ships UI updates as signed bundles, so there's no store release. SvelteKit is one of the main supported stacks. This week I had an AI agent build a SvelteKit app from my docs alone, and it hit three things worth sharing with anyone doing static SvelteKit builds in a WebView, Capacitor or similar.
1. SvelteKit 3 config lives in vite.config.ts now In SvelteKit 3, the kit options go in sveltekit({...}) in vite.config.ts; per the types, svelte.config.js is no longer read for them. My docs and my setup wizard only looked at svelte.config.js, so they told people to set options in a file SvelteKit ignores. If you maintain tooling or docs that read SvelteKit config, check both places.
2. Asset paths: think "origin root", not "base path" Inside the app, every route is served the same index.html (SPA fallback) from a local server. If your build references assets relatively, then a reload or a back gesture on a nested route like /notes/42 resolves them against the wrong folder, and you get a blank white screen with nothing in the console. What works:
// vite.config.ts
sveltekit({
adapter: adapter({ fallback: 'index.html' }),
paths: { base: '', relative: false },
})with export const ssr = false in the root +layout.ts. You also need client routes that match deep links; a fallback page doesn't make /notes/[id] exist by itself.
3. onMount with async loses your cleanup
onMount(async () => {
const unsub = await subscribe();
return () => unsub(); // never called: onMount got a Promise, not a function
});onMount only runs a cleanup function returned synchronously. Start the async work inside, and return the cleanup right away:
onMount(() => {
let unsub: (() => void) | undefined;
let gone = false;
subscribe().then((u) => (gone ? u() : (unsub = u)));
return () => { gone = true; unsub?.(); };
});In a long-lived WebView that never reloads, a leaked subscription adds up.
All three are fixed in the docs and in the wizard in Valence 0.5.0-beta.1.
If you want to try SvelteKit as a mobile UI: npm create valence@latest (Android supported; iOS experimental and untested). Docs: https://getvalence.dev/docs/guides/web-app/ Code (MIT): https://github.com/valence-dev/valence
Has anyone run into other gotchas with SvelteKit in a WebView or Capacitor? I'd like to cover them in the docs.
r/sveltejs • u/random-guy157 • 1d ago
This is happening to me. I already knew sveltekit sync had an issue, but this never prevented building. Now I'm upgrading `@svelte-router/core` to Sveltekit v3 and the project doesn't build because I renamed app.html.
Anyway, tips appreciated. Thanks!
UPDATE
Nevermind. Found the issue. The thing is that the newest Sveltepress for Sveltekit v3 creates its own Sveltekit plug-in, so adding the Svelte plug-in oneself is a mistake because then there are two: One configured with the appTemplate setting, and one with the default value. This is what causes the error. The solution is to configure the Sveltekit plug-in via the Sveltepress plug-in and of course, not add oneself the extra sveltekit() plug-in.
r/sveltejs • u/Previous_Doctor_5149 • 1d ago
Laravel has Telescope, and I wanted something like it while working in SvelteKit.
sveltelens adds a dashboard at /__sveltelens on your dev server. Click a request or form action and the queries, outgoing calls, logs and errors behind it are right there. Your coding agent can read the same data over MCP.
Code and setup: https://github.com/mmdjamali/sveltelens
Tell me what's missing for your stack. Issues and PRs are both fine.
r/sveltejs • u/zaxwebs • 1d ago
I’ve been working on Planet 0 Drive, a low-poly driving game built with Svelte & Three.js. I posted about it here about a month ago, and have spent the time since adding to the game and working on how the app and engine fit together.
Svelte handles the HUD, radar, menus, settings, and quest UI.
Since the last post, I’ve added procedural checkpoint races and leaderboards, towable vehicle rescues, hourly quests, more terrain biomes, and new landmarks. I’ve also been working on terrain streaming, rendering performance, and multiplayer updates.
Planet 0 Drive started as an experiment but has become a weekend building addiction.
r/sveltejs • u/a_fish1 • 2d ago
A whiteboard in one component where shapes and tools are plugins based on architecture ideas from tldraw. So you can build the UI in your own design (or adapt the demo's).
This is early development and I've only tested it in Chrome so far but I couldn't wait to share the progress. As with most of my work nowadays I used AI to build this lib from scratch and I still need to finish reviewing and polish the API, i.e. there might still be some larger changes.
MIT license
r/sveltejs • u/Leftium • 3d ago
The documentation site was also overhauled: https://mdsvex.pngwn.at
r/sveltejs • u/boykom • 3d ago
4+ year old project. We started the frontend in Vue. About 5 months ago we decided to move to Svelte 5, mainly for two reasons: performance and bundle size. A database app lives or dies by how a big table feels when you scroll, edit and switch views, and we kept fighting the framework to get there. Every screen is Svelte 5 now.
Video above is a quick run through: editing in the grid, dragging a card on the kanban, the timeline, and comments with up/down votes on a record.
As part of the move we replaced the grid with a Svelte 5-based data grid. It's called SvGrid. The core package (@svgrid/grid) is MIT and on npm.
Things we found during the process and which may help you in your own projects:
.svelte.ts modules instead of stores. Comments, permissions, the signed in user, each one is a small file with $state at the top and normal functions around it. Super easy to test with vitest and jsdom.
$state.raw for anything big. Rows and comment lists are raw and we just replace the array when something changes. Deep reactivity on every cell of a big table is exactly what we were trying to get away from.
Field types as plain objects plus a cell component. When we added a Button field or the "only the approver can approve this record" rule, it was a few files, not a rewrite.
r/sveltejs • u/Inevitable_Pepper532 • 2d ago
I need to build a server SvelteKit where users can connect and submit their answers. My question is: how many simultaneous connections can such a server handle?
At peak times, up to 200 users might connect simultaneously. They will load an initial page containing an image, a question, and multiple-choice answers. Then they will click on their chosen answer. Each submitted answer will be saved into an SQLite database. Is this feasible? Specifically, would it work on a basic VDS (Virtual Dedicated Server) with one CPU core and 2 GB of RAM?
Thanks!
r/sveltejs • u/a_fish1 • 3d ago
I designed a small set of UI components on top of shadcn-svelte, in my own registry, so you can install them with the shadcn-svelte CLI.
A few are stock ones I wanted to feel better, like an animated checkbox, a switch with a stretchy knob and animated tabs with directional view changes.
But most are components shadcn-svelte doesn't have (yet), like a dial, a swipe deck and a voice meter.
r/sveltejs • u/sf1tzp • 4d ago
r/sveltejs • u/vinishkapoor • 3d ago
Self-promotion disclaimer: I made this.
VinUI is an MIT-licensed UI library with Svelte 5 support, alongside React, Vue and plain HTML. A CLI copies the component source into your project instead of adding a runtime package:
npx /ui init
npx u/vinish/ui add <component>Repo: https://github.com/devvinish/vin-ui
Docs: https://vinish.dev/ui
r/sveltejs • u/Gear5th • 5d ago
I always look forward to the monthly blog posts that go live around the start of each month: https://svelte.dev/blog
There's new features, and most importantly, showcases about what people are building.
Did we miss this month?
r/sveltejs • u/The_RockETman_show • 5d ago
I've been building Valence, an open-source (MIT) way to use a SvelteKit app as the whole UI of a native Android app. The third beta (0.4.0-beta.2) came out today, and SvelteKit is the stack I test it with most, so I'd value this sub's take.
The SvelteKit side stays a normal SvelteKit app.
adapter-static with fallback: 'index.html' and ssr = false in the root layout. The same build still works as a website.npm create valence@latest in your project detects SvelteKit, writes a config, and generates a typed bridge into src/lib/valence/bridge.g.ts. It now warns you if you're still on adapter-auto.import { onMount } from 'svelte';
import { call, inHost, ready } from '#lib/valence/bridge.g';
onMount(async () => {
if (inHost()) {
const app = await call('app.info', {});
// ...render with native data
await ready();
}
});
What happens on the phone
build/ folder, hashed and signed with an Ed25519 key, uploaded to any static host.ready(), it fails the trial; after two failures the phone goes back to the last good version on its own.One SvelteKit tip from testing. By default SvelteKit writes a timestamp into _app/version.json, so two builds of the same code differ and an update or rollback downloads files it didn't need to. Setting kit.version.name to the git commit makes builds reproducible, and as of today the wizard warns you if it isn't set.
Limits: Android is supported; iOS is experimental and untested. Store rules allow downloaded JS in a WebView as long as the app's purpose doesn't change; the docs quote the exact wording.
Quick start: https://getvalence.dev/docs/getting-started/quick-start/ Code and spec: https://github.com/valence-dev/valence
If you try it with your SvelteKit app, I'd like to know where it got in your way.
r/sveltejs • u/feedmypixel • 5d ago
I've been building something with SvelteKit and Svelte 5 and it's out today: status. It's all about breaking the ice. Keeping in touch takes more than it should, so post an emoji and a few words and your people can react, reply or message you for a natter.
Simplicity and speed: one thing, done well. I chose SvelteKit and Fastify because they are easy to work with and modern. TypeScript makes my life easier. The iPhone and Android apps are Capacitor shells around the live site. Capacitor has worked very well with SvelteKit.
How and why I built it: https://feedmypixel.com/status
Have a play at https://status.me and let me know what you think.
r/sveltejs • u/codebryo • 6d ago
Around two years ago I started to go all-in on Svelte as my main framework for shipping UIs. So Sveltekit was the next logical step and started to build more and more stuff with it.
Especially prototypes, and now with AI I've finally got the time to actually ship finished products.
But I did not want to start from scratch all the time, so I looked at the `sv` CLI of course, and there are many templates, but all of them felt like they wanted to sell me something.
So I mostly started from the plain Sveltekit starting point and started building.
But again and again I pulled in the same things, and focused much more on getting things going with ease and not something that is scaled for eternity.
I know put my years of experience as developer and the last year of building a LOT with agents into one template. https://github.com/nerdwerk/sveet
Project is called Sveet and it runs in a sandbox by default, comes with simple but proven tech, and focuses on getting you off the ground with the agent of your choice in no time.
It will for sure not be for everyone, and thats okay. It's one opinionated starter template.
So, I do hope it's useful for some of you. Feedback is welcome, contributions are open ... and I'm back building more stuff with it now.
r/sveltejs • u/MurkyAstronaut5837 • 6d ago
We've just released a new starter app for Svelte - an AV Schematic designer. Drag devices onto a canvas, connect ports of the same type with cables, export the whole thing as a DXF. Demo on our site is here: https://visuallyjs.com/demonstrations/av-schematic and the GitHub repository is here: https://github.com/visuallyjs-svelte/av-schematic
r/sveltejs • u/Dizzy-Entrepreneur52 • 6d ago
Hey guys, my name is Andrea 👋 still undecided if I'm more a dev or a designer, but for sure a nerdy girl who loves building tools with SvelteKit :)
I'd just like to show a new side project of mine, a free, open source "Figma inside your codebase" for people coding with AI agents
Click an element in your running app, change spacing/colors/states visually, and it writes the diff into your actual source.
Works next to Claude Code and Cursor, no AI credits, no lock-in. Apache 2.0.
npx feega to try it or download the extension for VS Code / Cursor / Windsurf etc.
Obv, supporting SvelteKit projects!
Feedback super welcome, especially the harsh kind!!!
Repo: GitHub.com/andreabuttarelli/feega
Website: Feega.app
Docs: docs.feega.app
Happy coding! 🌈💕
r/sveltejs • u/Impossible_Sun_5560 • 9d ago
Guys rich finally merged custom render to main !!
https://github.com/sveltejs/svelte/commit/8720544ff76456198c8b434d09e8b4a8b59d3b8c
we will be getting svelte native and lynx support anytime soon then!!
r/sveltejs • u/BugRealistic4925 • 9d ago
I was developing my blogging website when I wanted a solution that provides single standard to compile articles with SSG for minimal overhead in client side and parse and compile articles back for structured natural language expression with adapters to support frameworks rendering directly with cross framework compatibility, and supports version control.
So I built Publisle, It provides a standard with solution that covers all needs as modular solution to extend development ease and lightweight usage based on dependencies needed.
Currently experimenting with addon to compile articles into PDF research paper with out-of-box templates with Rust based compiler and Python integration of LuaLatex.
I made a website to demonstrate Publisle capabilities, It includes a playground to draft documents with block based editing with MCP support, and the repo is open source under MIT license:
Publisle: https://publisle.xyz/
GitHub Repo: https://github.com/publisle/publisle
Feedback is appreciated!
r/sveltejs • u/tallbutawkward • 10d ago
Been building this for a while. Stream anything from youtube or soundcloud, 1 click download, 50,000+ live radio stations from the open radio-browser directory, and it has a real-time visualizer with five different looks that react to the music.
UI is Svelte 5 + SvelteKit (static adapter) with bits-ui, running inside Tauri 2 with a Rust audio engine. The visualizers are WebGPU.
Free and open source (MIT), for Windows, Mac and iPhone. Links in the comments. Happy to answer anything about the Svelte/Tauri side.
r/sveltejs • u/spunch • 11d ago
Self-promotion: I'm the author of this project.
I built CopySpeech, a desktop app written in Svelte 5 and SvelteKit, running inside Tauri 2 (uses @tauri-apps/api). Copy the same text twice within 1.5 seconds and it reads the text aloud.
What might be useful if you work on Svelte apps:
It's MIT licensed. The current release is v0.3.1.
Repo: https://github.com/ilyaizen/CopySpeech Download: https://github.com/ilyaizen/CopySpeech/releases
Known limits: duck-other-apps is Windows-only, and tiny-voca reads English only. Feedback on the Svelte/Tauri side is welcome.
r/sveltejs • u/selipso • 12d ago
I hacked something together with help from Pi over a couple of days as a proof of concept. I know there are tons of UI libraries out there but I want to approach this as a cross-platform AI-native one with claymorphic elements and subtle animations. Since Svelte treats animations as first class citizens I thought it would be a good starting point for it. What would you all like to see in a library like this? Would anyone be interested in contributing themes or other ideas?