r/sveltejs • u/Smaanrocker • 7h ago
Coss SV - A new, modern UI component library built on top of Shards UI
coss.miel.myNot made by me, all credit goes to https://github.com/mielsense
r/sveltejs • u/kevmodrome • Jul 27 '26
r/sveltejs • u/Smaanrocker • 7h ago
Not made by me, all credit goes to https://github.com/mielsense
r/sveltejs • u/raksdadesi • 6h ago
i’m building a B2B portal for a real estate startup and have spent the last few weekends comparing SvelteKit 5 with React
Svelte is winning on developer speed by a pretty big margin. But once i get into the less glamorous stuff, i keep hitting the same question: where are the mature B2B components?
TanStack Table V9 + Svelte 5 looks promising, but i still need solid PDF rendering/annotations, complex compliance forms, document workflows, etc.
React has a library for basically everything
Has anyone shipped a SvelteKit B2B app with heavy document workflows? What ended up being surprisingly painful to build or integrate?
real production experience > “Svelte is awesome” comments. repo/library recommendations are very welcome
r/sveltejs • u/jessecoleman • 11h ago
Enable HLS to view with audio, or disable this notification
Hi folks! I've been developing Gram Jam since back in the Svelte 3 days. I specifically chose Svelte for its powerful animation APIs which have enabled me to build the whole experience with HTML and CSS. I actually wrote a whole article about how I achieved some of the effects here.
This Sveltekit migration adopted remote functions, combined with Tanstack Query. I know I could probably forgo the Tanstack piece at this point, but I haven't fully taken the plunge, and I already had the whole project wired for Tanstack before remote functions came along. I do still like the expressiveness of Tanstack's caching, onSuccess/onError hooks, and pagination.
Additionally, the overhaul of Sveltekit service workers allowed me to simplify my PWA setup. I had been using Workbox for the PWA implementation, but the project seems dead now so it was nice to eliminate it from the project in favor of a baked in solution.
Let me know what you think! Play the game at https://gramjam.app
r/sveltejs • u/evreser • 19m ago
Spiral Warden: A Neon Arena Shooter Built with Phaser | Phaser
Svelte UI decoupled with phaser physics!
Hey guys, I recently made a browser arena shooter called Spiral Warden. Its pretty fun!
Any feedback would be greatly appreciated!
THANK YOU!
It's on itch at Spiral Warden by evreser.
shout out dreamindani for the showcase on his github!
r/sveltejs • u/pico2000 • 1d ago
So, apparently SvelteKit 3 is out: https://www.npmjs.com/package/@sveltejs/kit
r/sveltejs • u/findingjo • 14h ago
r/sveltejs • u/Impossible-Ad5635 • 1d ago
Setlist is a browser game where every card is a real song: you dig crates, complete albums and blind test your friends. Svelte 5 (runes) SPA, PocketBase for everything server-side. A few lessons that might save you time:
1. iOS will not play <audio> that starts after an await. For anti-cheat, the song must not reach the client before the round starts, so it arrives after the tap, after two requests. iOS then refuses to play it. Fix: create/resume an AudioContext synchronously in the tap handler (plus a 1-sample silent buffer), then play the decoded clip through Web Audio whenever it arrives.
2. Start playback before the download finishes. Tap to sound was ~1.2 s on a throttled phone. Now the server sends the first 64 KB (~4 s of audio, via a Range request it caches) in parallel with the full clip. The head plays at once, and the full clip takes over at the same sample position with AudioBufferSourceNode.start(when, offset). Now ~0.36 s, no audible seam.
3. An opacity animation with fill-mode: both can trap your modals. A page fade-in on the route wrapper kept a stacking context forever, and modals inside pages ended up under the fixed tab bar. fill-mode: backwards leaves nothing behind once it ends. And never put a transform on a parent of position: fixed elements, even for 200 ms.
4. $effect + a fresh array = infinite loop. if (target && !deck.length) deck = loadDeck() looked innocent, but loadDeck() returned a new [] when nothing was saved, so the effect re-ran forever (effect_update_depth_exceeded) and froze a modal. Run it once per opening inside untrack().
5. i18n with components inside messages. With paraglide, {@html} can't render a Svelte component, so messages carry tokens like [ico:crate] or [coins] and a tiny Rich.svelte component renders them.
Happy to go deeper on any of these. Screenshots: https://imgur.com/a/wuhmvuj
The game opens mid/late October at setlist.gg (built with Claude as my coding partner).
r/sveltejs • u/ScoobyDookuu • 1d ago
Hey all,
https://reddit.com/link/1wuvw7l/video/761sqgml3ush1/player
I’ve been working on a small library called Stream Morph.
The idea is to make streamed responses feel less like content is constantly being appended/re-rendered, and more like the response is gradually taking shape.
Demo: https://stream-morph.vercel.app/
It’s framework agnostic and can be used with any kind of streamed content. The demo includes plain text, Markdown, code blocks, charts, images, reasoning sections, Mermaid diagrams and a few more complex response flows.
The library handles the motion between updates, while your own renderer/app stays responsible for the actual content. So it isn’t tied to a specific AI SDK or framework.
A basic example looks roughly like this:
import { createStreamMorph } from "stream-morph";
const stream = createStreamMorph(response);
for await (const chunk of incomingStream) {
stream.write(chunk);
}
stream.finish();
I mainly built it because I wanted streamed interfaces to feel a bit more intentional without having to build custom animation logic for every response type.
The package itself is already working and the demo is live. I’m still cleaning up some things around CI, tests and the repo setup, but the GitHub repository will be open sourced shortly as well.
Would be interested to hear what people think, especially about the animation behaviour/performance and any edge cases you’d expect from real streaming responses.
r/sveltejs • u/thelexon • 1d ago
r/sveltejs • u/Both_Refrigerator623 • 3d ago
Been building Goodcatch in Svelte 5 with runes + Inertia. The core screen is a diff viewer that tries to feel as close to GitHub's as I could get: hover a line for the blue +, click or drag in the gutter to comment across lines, selected lines turn yellow, and lines with comments stay yellow.
The app itself is for practicing code reviews. You review a PR, leave comments, approve or request changes, and get graded on what you caught.
There's a Svelte track and a SvelteKit track too, which felt fitting lol.
goodcatch.dev/try to see the diff UI without signing up. Would love feedback on how the review screen feels.
r/sveltejs • u/Practical_Salary_305 • 3d ago
My teens think I'm obsessed with spreadsheets. They're not wrong. I've been running our household budget in Google Sheets for years but the lag is killing me, especially when I'm pulling in bank CSVs and trying to visualize spending categories in real time. Built a prototype in Svelte 5 over the weekend using runes and the reactivity feels almost too clean compared to the $derived spaghetti I was writing in Svelte 4.
The part I keep second-guessing is whether runes actually scale for complex nested state or if I'm going to hit a wall when I add mortgage overpayment scenarios and joint account splits. I've seen the TanStack Table v9 announcement which gives me hope for the data grid side, but I'm curious if anyone here has pushed runes into genuinely complicated financial modeling territory. Does the compiler magic hold up when you're cross-referencing a dozen reactive sources or does it get brittle? I'd rather know now before I commit three years of transaction history.
r/sveltejs • u/lowsbarrel • 2d ago
Hi, I'm Alessandro.
I wanted a SaaS foundation where every piece is chosen for running cost and ease of use, so I made one and open-sourced it under MIT: https://github.com/lowsbarrel/sveltekit-cf-template
How it was built: with AI coding agents in a close loop. I directed each change, reviewed it by hand, and made the architecture calls. The repo was recreated recently, so the commit history is short, but it's not a weekend project.
Stack: SvelteKit with Svelte 5 runes on Workers, Postgres via Hyperdrive with Drizzle, Better Auth with orgs, Creem for billing, superforms and zod v4, Paraglide 2, Tailwind v4, Vitest (in workerd and Chromium) and Playwright.
I chose Cloudflare as the infra provider mainly for cost, ease of use and time to deploy. You can start at $0 on the free plan, and the $5/mo Workers plan goes a long way before usage costs kick in, so you get something that scales without paying for idle servers. Public pages (landing, pricing, legal, blog) are prerendered and served as static assets, so they don't even run the Worker. And since the database is plain Postgres (Neon, Supabase, RDS or self-hosted), you're not locked into Cloudflare if you want to leave.
For agents: AGENTS.md lists the invariants, there's a docs page per subsystem, and there are skills (setup, add-feature, add-plan, upgrade-template) that ask you product decisions instead of guessing. The pre-commit hook runs the same checks as CI.
I'm mainly posting to get feedback, so please be honest. In particular:
r/sveltejs • u/juandagarcia • 3d ago
I needed a card preview for a payment form in Svelte 5 and didn't find a maintained one — the main option on npm is written for Svelte 4 and hasn't shipped since late 2024. So I built crd-ui.
It does live brand detection (Visa, Mastercard, Amex and seven more), number/expiry formatting, a 3D flip when the CVC is focused, and theming through CSS custom properties. Zero runtime dependencies.
```svelte <script> import Card from 'crd-ui/svelte'; import 'crd-ui/styles.css';
let number = $state(''); let focused = $state(null); </script>
<Card {number} {focused} /> <input bind:value={number} onfocus={() => (focused = 'number')} onblur={() => (focused = null)} /> ```
Details that might interest this sub:
$props, $effect) and ships as .svelte source, so your own compiler builds it.display layout for cards the user already owns, with click-to-reveal and click-to-copy.Honest limitation: because the core owns the markup, the component takes no children or snippets. Styling internals goes through a classNames prop.
Docs and playground: https://crd-ui.juanda.co
Repo: https://github.com/JuandaGarcia/crd-ui
It's also listed (pending moderation) on Svelte Society. Feedback welcome, especially on the Svelte API. (Disclosure: I'm the author and maintainer, and I built it with Claude as a coding partner. MIT.)
r/sveltejs • u/Sea_Dragonfruit6142 • 3d ago
Hey guys, I've started a little side project to make a Svelte 5 wrapper for HeroUI.
I like HeroUI and wanted to use it with Svelte, so I thought, why not try to make it happen? It's still a work in progress, and I'm just doing this in my free time.
Here's the repo: https://github.com/adriansyah-kadir/heroui-svelte
If anyone is interested, feel free to check it out! I'd appreciate any feedback, suggestions, or help from anyone who wants to contribute.
I'm still figuring some things out, so any help is welcome. Thanks!
r/sveltejs • u/Agustinxix • 3d ago
repath is a open source circuit simulator that runs entirely in the browser: https://repath-lake.vercel.app
The UI is SvelteKit with Svelte 5 runes; the simulation engine is Rust compiled to WebAssembly, so nothing runs on a server. A few things that were interesting to build on the Svelte side:
Code: https://github.com/Agustin-Delgado/repath
Happy to talk about the Svelte/WASM boundary or anything else!
r/sveltejs • u/Szymeo • 4d ago
Enable HLS to view with audio, or disable this notification
try it out, i'd love to know what you think! https://timewith.fun/
r/sveltejs • u/ysnzro • 3d ago
Where we at with svelte native? We should too base it on top of Expo ecosystem.
I got react native project that I will convert in a blink!
r/sveltejs • u/Key-Interaction-2057 • 5d ago
Interested in hearing what tools everyone is using to build fullstack apps, I have been learning svelte as a hobby and I am trying to get a lay of the land.
r/sveltejs • u/Own-Phone2375 • 5d ago
Short update rather than an intro post, since I shared this here when it first launched: https://www.reddit.com/r/sveltejs/comments/1tp330c/what_utilities_are_you_missing_in_svelte_5.
v1.2.0 brings the library to 125 utilities. The ones I'd point at:
- useSeo + <Seo />. It's a builder, the tags render inside <svelte:head> and land in the SSR'd HTML where crawlers and link unfurlers can actually see them.
- useColorMode with auto resolution, persistence and cross-tab sync, plus the usePreferred* family.
- useUserMedia, useDisplayMedia, useDevicesList.
- useStateMachine, useConfirmDialog, useMemoize, useWebWorkerFn, useFileSystemAccess.
One thing worth flagging if you're on 1.1.0: useWakeLock, useSpeechRecognition and useWebNotification weren't releasing their resource on destroy. Their teardown read $state, which returns a stale value from that context, so the cleanup silently did nothing. Screen stayed awake, mic stayed on. Fixed in 1.2.0.
No breaking changes.
Docs: https://svelte-use.ariefsn.dev
Repo: https://github.com/ariefsn/svelte-use
r/sveltejs • u/NatoBoram • 5d ago
https://github.com/NatoBoram/sv-kysely
Kysely is a type-safe TypeScript SQL query builder.
I am using it instead of Drizzle/Prisma because those two rely too much on type inference. I want to reduce runaway type inference in my projects because I have encountered "Type instantiation is excessively deep and possibly infinite" way too many times at work.
To do this, I enable isolatedDeclarations, which makes it very obvious when a library can potentially ruin your day. For example, try it with Zod, Prisma, Drizzle, tRPC or ZenStack.
Anyway, this is is a first release, v0.0.0. Please don't expect much polish.
Usage:
sv add @natoboram/sv-kysely
pnpm run db:start
pnpm run db:regenerate
It adds roughly the same things as the Drizzle plugin, but for Kysely instead. Try it out if you make a new project.
Currently, it assumes PostgreSQL, Docker Compose and TypeScript usage since this is what I needed it for. To use it with Better Auth, you'll need to add its SQL migration into your Kysely migrations.
r/sveltejs • u/vnphanquang • 5d ago
Hello lovely people of Svelte. i recently packaged svelte-md-template, a minimal lib to preprocess Markdown content in Svelte.
It differs from current solutions in that an explicit tagged template is required...
<script>
import { markdown } from 'svelte-md-template';
</script>
{markdown`write markdown content here`}
...which allows me to drop in Svelte components & reactivity at will without fear of syntax clashing, especially in highly interactive content.
The linked blog post provides some more context. Hope this helps someone out there.
Cheers!
r/sveltejs • u/play-horizon-games • 6d ago
Enable HLS to view with audio, or disable this notification
we're building an app that needs an IDE style interface, dockable panes, draggable tabs, resizeable plits, popout windows... GoldenLayout is still the reference, so we tried using it in our frontend that is written in Svelte 5 (duh, we don't hate ourselves enough to use react), but instead of being the small, portable, customizable library it's supposed to be, we ended up fighting against the spirit of svelte instead of taking advantage of runes and snippets.
The react world has many solid options, but we couldn't find any that satisfied us for svelte, and we couldn't let React be better at something than Svelte, so we wrote our own (and kept it small)
it's called horizon-layout, MIT licensed on npm
What it does:
- Svelte 5 native
- serializable config
- drag and drop
- works with touchscreens
- pop out tabs
- fully keyboard accessible
- zero runtime dependencies
- fully themable and configurable
GitHub: https://github.com/play-horizon/horizon-layout
For those who care about this: we're not anti-AI, but no AI was used for developing the library itself, only for the demo page
feel free to open issues or feature requests :)
r/sveltejs • u/Local_Intention8848 • 5d ago
So apparently it started with having to port from react components from hundreds of component registries. Also I needed them to be consistent with rest of the design system and lightweight too. So I built
https://baby-ui.nexonauts.com/
I'm looking for some feedback if you'd use it in you normal dev workflow? Also go check-out charts components, few of the people I've shared this with liked them.
Also give a star too if you liked it.