Kyrre

Kyrre

@kyrre.dev

Engineer @ Bitfocus | 📍Berlin www.kyrre.dev

258 followers1.2K following85 posts

Kyrre reposted

If you’re a JS dev, here’s one simple change to improve your security: disable postinstall scripts in your npm package manager. postinstall is the main vector for supply chain attacks from node_modules, but most packages don’t need it. ↓ Thread

Svelte folks: Classes with DOM + cleanup, do you: A) Use $effect inside class methods (encapsulated, cleanup via returned disposal function) B) Keep class dumb, handle lifecycle in component `$effect` (tied to component lifecycle) I like A's clean API but B is more explicit. What's the move here?

Kyrre reposted

SvelteKit async SSR has landed! The future of Svelte is now here. Try it out along with the new remote functions! See the PR for some unfinished rough edges. Work continues on it while it's behind an experimental flag, but you can now play around with it! github.com/sveltejs/kit...

github.comfeat: async SSR by Rich-Harris · Pull Request #14447 · sveltejs/kitThis adds asynchronous SSR to an app that's using the latest version of Svelte (^5.39.3) and has opted in to the Svelte experimental.async option (and, ideally, the SvelteKit experimental.remot...

Kyrre reposted

In CSS, color names are not case sensitive, but class names are, and properties are not, yet custom properties are, but function names are not, and values sometimes are and sometimes are not... So, tell me again what is so confusing about CSS being case-insensitive?

Kyrre reposted

For my British friends a simple, 14 kB JavaScript script to be included in an HTML page, allows one to write CSS files using proper spelling, such as background-colour and centre. Harsh language such as !important is replaced with the more pleasant !if-you-would-be-so-kind. hackaday.com/2025/03...

hackaday.comBritCSS: Write CSS With British English SpellingsEveryone knows that there is only one proper English, with the rest being mere derivatives that bastardize the spelling and grammar. Despite this, the hoodlums who staged a violent uprising against…

This will be amazing when it drops, server actions is last reason I’m using nextjs atm

matia 🇭🇷@joyofcode.xyz

Svelte remote functions PR is out and here are the changes. 🔥 I removed things so they fit in a post but I'm going to link to the updates and the PR. 👇

Kyrre reposted

Kyrre reposted

Kyrre reposted

Svelte's newly proposed attachments feature is meant to modernize actions and pave the way for improved transitions and animations.🔥 ⬩ You can add them to components and create them inline or programmatically ⬩ They're reactive and spreadable

Kyrre reposted

Replying to @svelte.dev

Day 17 — until today, intellisense would often fail when you were in the middle of writing components, because Svelte's parser crashed on syntax errors. We just fixed that. Install svelte@latest, make sure your extensions are up to date, and feel the wind in your hair as you write your components

Kyrre reposted

It’s really disheartening to see trans users having to step back from Bluesky because of the influx of transphobic harassment. Trans posters built the culture of this platform and it would behoove cis allies to advocate for their safety as Bluesky expands and they get targeted