r/sveltejs • • Jul 27 '26

Svelte Summit Ljubljana 2026 - November 19-20

Thumbnail sveltesummit.com
35 Upvotes

r/sveltejs • • 11h ago

Change anything on this site – powered by svelte

Thumbnail levmiseri.com
20 Upvotes

A fun experiment where users can change or add anything to the site. Everything working very much thanks to the amazingness of Svelte.


r/sveltejs • • 9h ago

`opentui-svelte` ...Svelte bindings for opentui

3 Upvotes

TUI are all the rage right now and `opentui` it's a very nice way to build one in a simple way...BUT you are stuck with React or Solid which is fine but what if you could use something nicer? What if you could use Svelte?

Well now you can! `opentui-svelte` uses the brand-new custom renderers API to allow you to build TUIs using svelte as the declarative language to define them!

Give it a try a report any issues:

https://github.com/paoloricciuti/opentui-svelte


r/sveltejs • • 1d ago

SvelteKit: How do you share code that uses contexts with server/non-component code?

1 Upvotes

I've been developing a site that uses a component context for handling locales/localization. I want to use some of these calls in some +page.server.ts functions, outside of a Svelte context. What is the correct/idiomatic way to write code like this? Right now I have what I feel like is a big hack that does something like this:

export const [getLocaleContext, setLocaleContext] = createContext<{ code: string }>();

let override: string | null = null

export function overrideLocalization(overrideLocale: string, body: () => void) {
    override = overrideLocale;
    try {
        body();
    } finally {
        override = null;
    }
}

function getLocale() {
    if (override) {
        return override;
    } else {
        return getLocaleContext().code
    }
}

I try to make it safer with a wrapper function and try/finally but this still feels really flimsy. Is there a better way to handle this?


r/sveltejs • • 3d ago

[Self-Promo] Built a live transit map and reliability dashboard for Montréal, Ottawa, and Gatineau with Svelte 5, SvelteKit on Cloudflare Workers, and MapLibre/PMTiles

Thumbnail
gallery
13 Upvotes

I just shipped v2 of transit.yesid.dev, a free bilingual (EN/FR) live transit map and historical schedule reliability dashboard covering Montréal (STM), Ottawa (OC Transpo), and Gatineau (STO).

The frontend is built with Svelte 5 (runes mode enforced across project code) + SvelteKit on Cloudflare Workers (@sveltejs/adapter-cloudflare), backed by DuckDB over daily Parquet files on Cloudflare R2 via a Worker service binding. Total infra runs around US$10/mo.

A few Svelte / SvelteKit patterns that worked well here:

  • Keeping MapLibre 6 out of Svelte's proxy and SSR bundle: maplibre-gl, its Web Worker (?worker&url), CSS, and pmtiles are dynamically imported client-side in MapStage.svelte, and the map instance lives in $state.raw() so Svelte 5 never wraps the WebGL object in a deep proxy.
  • Self-hosted Protomaps PMTiles with zero map API keys: Each city's vector basemap is a .pmtiles archive served through our Worker proxy and registered via addProtocol('pmtiles', protocol.tile). The style resolver (basemap.ts) stays pure and SSR-safe with dark/light palettes matched to our design tokens, and renders 5 interactive 2D/3D Record layers (late stops, schedule delay, traffic delay, speed, extra wait).
  • Streaming SSR on Cloudflare Workers without buffering: Historical Record routes stream results from DuckDB while the page shell renders immediately. In hooks.server.ts, streamed HTML goes through a Z_SYNC_FLUSH gzip transform (encodeBody: 'manual') so chunks flush as they arrive instead of waiting for the full response. Paired with enable_request_signal in wrangler.toml, navigating away mid-query cancels the upstream Worker RPC so DuckDB stops doing wasted work.
  • Strict CSP + live deploy upgrades: SvelteKit runs with csp.mode: 'auto' (runtime nonces on streamed pages, SHA-256 hashes on inline boot scripts) and version.pollInterval: 60_000 so long-lived commuter tabs and PWAs pick up new deploys cleanly on the next navigation.
  • Bilingual routing: All routes live under an optional [[lang=locale]] param matcher for EN/FR URLs without duplicating route trees.

If you want to poke around the code, it is MIT-licensed and runs locally with bun run dev straight against the public data.yesid.dev API (no local DB, API keys, or Cloudflare account needed).

Happy to answer questions on the Svelte 5 / MapLibre lifecycle, streaming SSR on Workers, or the PMTiles setup!

Note: I built this project using AI coding tools (Antigravity, Claude Code, and Codex) alongside my own data modeling, checks, and tests. I prefer to be upfront about that, and the full codebase is open source (MIT) in the repo linked above.


r/sveltejs • • 4d ago

Making an interactive 16th-Century like map

33 Upvotes

The live map. I've been working on this project for the past few weeks, I'm pretty happy with the result now but I'm still tweaking some stuff.

The web part (asides shallow routing, UI etc) is built with SvelteKit, and the map itself written in C (wasm-compiled). I wrote a complete making-of here for those interested!


r/sveltejs • • 5d ago

mdsvex has reached 1.0

Thumbnail
mdsvex.pngwn.at
56 Upvotes

I announced this at the recent Svelte Summit but I have finally got around to a public announcement!

There is a thread explaining some of the features here:

Or you can watch my talk.

Would love to see what you build with it!


r/sveltejs • • 5d ago

What’s new in Svelte: December and November 2026

Thumbnail
svelte.dev
49 Upvotes

r/sveltejs • • 5d ago

FlareCharts 1.0: I "rebuilt" my Svelte 5 charting library (7 charts → 33)

Post image
47 Upvotes

[SELF-PROMO] Hey again. A while back I posted FlareCharts here, a runes-first charting library for Svelte 5. That post was rough. I literally called it a "first release" in quotes. Somehow it still got a pile of npm downloads, so I kept going, and this is the actual 1.0.

What changed:

  • 33 charts, up from 7. Sankey, chord, treemap, sunburst, radar, candlestick, violin, calendar heatmap and more, each usable as a single tag.
  • Every chart renders to SVG or canvas. It's one prop: `<LineChart renderer="canvas" />`.
  • Charts can follow streaming data and resize to fit their container.
  • Sequential and diverging color scales.
  • Props were renamed everywhere. If you used the old version this breaks things, but there's a migration guide and `svelte-check` flags every old prop.

What stayed the same: d3 does the math and Svelte owns the DOM. Theming is all CSS variables. Accessibility is on by default, with hidden data tables, keyboard nav and aria-live. You can still start with `<LineChart />` and drop down to primitives later without reshaping your data.

Home: https://faintshadow.gitlab.io/flarecharts

Docs: https://flarecharts.gitbook.io/docs

Subreddit: r/FlareCharts

"How is this different from LayerChart?"

This was the top question last time, so here's a proper answer. LayerChart is great and a lot more mature. It has more primitives, geo, WebGL and a huge example gallery. If you need maps or WebGL-scale data, use it.

FlareCharts aims at something narrower:

  • More finished charts out of the box. LayerChart ships 7 high-level charts and you compose the rest from marks. Here a sankey is just `<SankeyChart data={...} />`.
  • Accessibility is part of every chart: a screen-reader data table, keyboard navigation between points, and live announcements. I couldn't find anything about this in LayerChart's docs, so correct me if I missed it.

Feedback is very welcome, especially if you tried the first version and bounced off it.

And yes, previews exist this time. They're on the home page and in the image above 😊


r/sveltejs • • 5d ago

All Svelte Summit 2026 talks are now available on YouTube!

Thumbnail
youtube.com
30 Upvotes

r/sveltejs • • 6d ago

[self-promo] svelte-sheet: a tiny spreadsheet for Svelte 5, with formulas, undo and files

Post image
34 Upvotes

A couple of days ago I posted about svelte-draw. Today I want to share another library I pulled out of an app I'm building: svelte-sheet, a tiny spreadsheet for Svelte 5.

Good sheet libraries exist, like Univer, Handsontable and Jspreadsheet, but none of them ships a Svelte component. The Svelte data grids I found (RevoGrid, SvGrid) keep their formula engine in a paid edition. So I built one myself, on the same architecture as svelte-draw:

  • a core in plain TypeScript that knows no framework,
  • and a thin Svelte part on top.

You get the grid and the logic, and build the toolbar in your own design, or adapt the demo's.

A sheet holds up to 100,000 rows by 702 columns. I tested it with two million cells (100,000 rows by 20 columns): in Node they load into the engine in about 2 seconds and take about 740 MB of memory, and typing into a cell then takes 3 ms. Changing every cell at once, like making the whole sheet bold, takes multiple seconds (about 5 for 660,000 cells). In Chrome, a 4 MB CSV with 33,000 rows opens in 2.3 seconds, and typing into a cell stays instant (about 30 ms).

Demo: https://docs.klementine.net/svelte-sheet/demo/

Code: https://github.com/klementine-net/svelte-sheet

Docs: https://docs.klementine.net/svelte-sheet/

Disclaimer: like svelte-draw, this is early development and still needs some polishing.


r/sveltejs • • 6d ago

I think Rich Harris is one of the great communicators in tech at the moment

119 Upvotes

I've always admired how Rich is able to lead the Svelte project and how good his update videos are. To me, he's one of the greatest communicators in tech at the moment, and I think we're lucky to have him in this community.

I think he's able to be very clear and interesting to watch (or read), even when discussing technical topics way beyond my understanding.

After his last Svelte Summit talk I tried to put into words what I think makes him so good at it. I wrote a post on my website but I think the main aspect is that he has clear opinions on the world and is able to express those opinions in simple terms while telling a coherent story.

Here's the full article for those interested: https://luisgabriel.online/posts/rich-harris-communication-skills

I would love to learn about other communicators you admire, and hear whether you agree with the points I made about Rich Harris.


r/sveltejs • • 5d ago

[self-promo] Home Steward - home inventory and maintenance app

Thumbnail
homesteward.diy
2 Upvotes

Hey!

I'm currently building a Home Steward, an app to make a managing a home little easier.
It let's you track rooms, household items, and maintenance tasks in one place.

For example, you can save room details like wall colors and flooring, keep records of your belongings, and stay on top of routine maintenance.

The tech stack uses Svelte and Tauri & I'm super happy with the choice :)

The app is currently in beta, and at this point I would love to have feedback from other people. If you interested, you can take a look here: https://homesteward.diy/

No account is needed. Beta version is free to use on Linux and Windows.


r/sveltejs • • 6d ago

[self-promo] I made Phials - Combining the best of file management, knowledge work, and productivity tools.

Post image
10 Upvotes

Hi everyone!

I've been building Phials for the better part of 5 years. As a huge nerd about productivity software, I've used the likes of Obsidian and Notion for a long time, some of my top posts on Reddit are from those communities (Notion, Obsidian). Whether it was Obsidian's lack of proper database features, or Notions cloud reliance and increasing focus on AI, I've always had my issues with them. Tack onto that a general dissatisfaction with native file managers, and I was spurred on to create Phials.

The tech stack has changed and evolved throughout development, from Electron, to Tauri, to the current iteration using a custom GPUI implementation. What always remained the same though was Svelte being the UI framework.

Phials is built with a bespoke UI library, Phoundry UI, built specifically for Phials. It is a general purpose library, open-source, and available to use. However I do warn that it is heavily opinionated and won't be for everyone.

Phials is completely free for local use without an account, with an optional remote access subscription that lets Phials seamlessly connect to any other computer running Phials.

AI disclosure: Coding agents were used to assist in the development, but I've been a software developer for over a decade, and this project started before AI coding was even a thing. I care deeply about the craft, the product, and the industry.

This is a Beta release, so I'd love any and all feedback!

Website: https://phials.phoundry.app/


r/sveltejs • • 6d ago

Svelte and oxc | Yuichiro Yamashita | Svelte Summit 2026

Thumbnail
youtube.com
25 Upvotes

r/sveltejs • • 6d ago

[self-promo] yaxa-svelte - a Nuxt UI v4-inspired Svelte 5 component library

Thumbnail
gallery
1 Upvotes

For the past few months I've been building Yaxa (yaxa-svelte), a Svelte 5 UI library built on Bits UI v2 and Tailwind CSS v4.

Repo: https://github.com/FuntionalFrost/yaxa

A few design choices I focused on:

1. App-wide ui slot theming (tailwind-variants + tailwind-merge) All 112 visual components use Svelte 5 runes ($state, $derived, $props, {#snippet}), expose data-slot="..." markers, and accept typed ui slot overrides—configurable globally via <YaxaApp ui={...}>:

<script>
  import { YaxaApp, Button, defineYaxaUi } from 'yaxa-svelte';

  const uiDefaults = defineYaxaUi({
    button: { root: 'rounded-full font-semibold' },
    card: { root: 'rounded-2xl' }
  });
</script>

<YaxaApp ui={uiDefaults}>
  <Button ui={{ root: 'px-8' }}>Overrides cleanly</Button>
</YaxaApp>

2. Strict Subpath Isolation Root yaxa-svelte and yaxa-svelte/server enforce zero optional peer dependencies in CI tests. Optional integrations live strictly in dedicated subpaths (yaxa-svelte/seo, yaxa-svelte/auth, yaxa-svelte/admin, yaxa-svelte/db, yaxa-svelte/polar, yaxa-svelte/email, yaxa-svelte/storage).

3. Accessibility & Real-Browser Testing Beyond unit axe-core tests, the docs and showcase routes run against real CSS in Playwright (@axe-core/playwright) in both light and dark modes for WCAG 2 AA contrast, focus traps, and 375x812 mobile overflow.

Would appreciate feedback from anyone using Svelte 5 / Bits UI in production — especially on API ergonomics, slot naming, or SSR edge cases.


r/sveltejs • • 7d ago

Lessons from running a SvelteKit 3 static build inside a mobile app's WebView

3 Upvotes

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 • • 8d ago

I made a debug dashboard for SvelteKit, like Laravel Telescope (Open Source, MIT)

Post image
32 Upvotes

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 • • 7d ago

Is Sveltekit v3 failing on you, people with an app.html file renamed using appTemplate option?

2 Upvotes

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 • • 8d ago

Updated my Svelte driving game (Self-Promo)

7 Upvotes

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.

Play: https://planet0drive.vercel.app/

Blog: Building Planet Zero Drive


r/sveltejs • • 9d ago

[self-promo] svelte-draw: an infinite canvas for Svelte 5, where every shape and tool is a plugin

Post image
75 Upvotes

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 • • 10d ago

Major updates to mdsvex, v1.1 released

Thumbnail
youtube.com
36 Upvotes

The documentation site was also overhauled: https://mdsvex.pngwn.at


r/sveltejs • • 9d ago

Help a beginner. The task is to create a server that handles responses.

0 Upvotes

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 • • 10d ago

[Self-Promo] Artavolo, an Airtable-style database built in Svelte 5

33 Upvotes

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.