Hannes

Hannes

@joknoll.de

https://joknoll.de

53 followers217 following122 posts

SvelteKit remote functions are great! But when to use server vs. remote functions? Could everything just use remote, or is there still a place for server functions?

Or maybe a live reaction count for blog posts or "X people are reading this post" or or or... I really love remote functions and can't wait for `query.stream` too :)

Hannes reposted

Why does AI suck at front-end? 🗑️ trained on garbage 👀 it can't see ❓ it doesn't know why 🏞️ no environmental control there's no human v20.2.1 to target. we're a LLM combinatorial explosion ⤷ nerdy.dev/why-ai-sucks...

View full thread

const navItems: NavItem[] = [ { label: "Dashboard", href: "/", icon: Home, current: true }, { label: "Team", href: "/", icon: Users, current: false }, ];

How do you structure SvelteKit components/ directory? I really like the structure in astro with src/{assets,components,layouts,etc.}. But in svelte I seem to always dump everything into components/ without further structure.

I recently watched a talk of Rich Harris about Svelte remote functions and somewhere near the end I remember he mentioned using them with pglite. Does anyone know thr talk and what the idea behind this is? Probably some local copy of the db so no network is needed?

Building a svelte library with tsdown from @voidzero.dev is really a breeze :) With some minor tweaks I got the bundle size of my library down from 4.88kB to 2.60 kB, which is *very* lightweigt compared to svelte-sound. npmx.dev/compare?pack... github.com/joknoll/svel...

github.comGitHub - joknoll/svelte-attach-sound: Add sound effects to svelte components.Add sound effects to svelte components. Contribute to joknoll/svelte-attach-sound development by creating an account on GitHub.

Day 1 of my holy war against mobile horizontal overflow: On deno deploy I think these three buttons are breaking the viewport @deno.land (I'm on a pixel 6)

Sveltia is basically just a git client in the browser, with a wonderful UI that can be configured :)

I previously I used pagescms.org which I found via @lexingtonthemes.com but it either needed a self hosted instance or their official instance. I want something, that doesn't need a server and is contained in my site. Sveltia does exactly that.

pagescms.orgPages CMS: The No-Hassle CMS for Static Sites GeneratorsTired of juggling Git and YAML to update your Next.js, Astro, Hugo or Nuxt website? Make it easy on you and your team, get a user-friendly CMS running straight on top of GitHub.

I did it! Finally got my site into a state, where playing around with features and fiddling with styles isnt't the only thing I spend time on 😂 So now here comes my first small test post ... with a praise to the indie web :) joknoll.de/blog/hello-w...

joknoll.deHello World! - A first post introducing this personal site and why having your own corner of the web still matters. • Johannes KnollA first post introducing this personal site and why having your own corner of the web still matters.

You are up to date.