Advertisement ยท 728 ร— 90

Posts by Hannes

Preview
svelte-attach-key - npmx A Svelte attachment for binding keys to DOM elements

A Svelte attachment for binding keyboard shortcuts to DOM elements.

npmx.dev/package/svel...

12 hours ago 7 2 0 0

This looks very similar to astros `transition:name="..."`

I love Attachments btw. they are so underrated.

1 day ago 1 0 0 0
The left panel is titled AI - MASTER OF ENGINE & CREATION and features a sophisticated, human-like android robot with detailed internal circuits and a glowing brain. Floating text around the robot says - REWRITING GAME ENGINES with a small video screen, GENERATING REALISTIC VIDEO/IMAGES with code on a screen, and CONFIDENCE - 100%. The right panel is titled AI - FRONT-END CSS FAIL and shows a cluttered desk with a distressed small robot next to a frustrated human man pointing aggressively at a computer screen. The computer displays a chaotic webpage full of broken layout elements and a giant black void called a gaping hole. The small robot has a speech bubble that says - I'M DONE! THE FEATURE IS COMPLETE. Floating text phrases on the right side are - BESPOKE INTERACTION NIGHTMARE, CSS IS HARD, YOU'RE ABSOLUTELY RIGHT, CAN'T RENDER, LLM CAN'T MATH. The human has a mug with </> and nerdy.dev written on it.

The left panel is titled AI - MASTER OF ENGINE & CREATION and features a sophisticated, human-like android robot with detailed internal circuits and a glowing brain. Floating text around the robot says - REWRITING GAME ENGINES with a small video screen, GENERATING REALISTIC VIDEO/IMAGES with code on a screen, and CONFIDENCE - 100%. The right panel is titled AI - FRONT-END CSS FAIL and shows a cluttered desk with a distressed small robot next to a frustrated human man pointing aggressively at a computer screen. The computer displays a chaotic webpage full of broken layout elements and a giant black void called a gaping hole. The small robot has a speech bubble that says - I'M DONE! THE FEATURE IS COMPLETE. Floating text phrases on the right side are - BESPOKE INTERACTION NIGHTMARE, CSS IS HARD, YOU'RE ABSOLUTELY RIGHT, CAN'T RENDER, LLM CAN'T MATH. The human has a mug with </> and nerdy.dev written on it.

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...

3 days ago 126 25 10 3

vert is awesome

3 days ago 0 0 0 0

`uv` may also be suggested

5 days ago 0 0 0 0
Preview
Add viteplus as a package manager ยท Issue #2418 ยท npmx-dev/npmx.dev Describe the feature Currently the get started widget shows a wide variety of installation methods for different package managers. With "vp add " it is possible to install a package in a viteplus p...

Soon having viteplus on @npmx.dev ๐Ÿฅณ
@thealexlichter.com

github.com/npmx-dev/npm...

6 days ago 11 0 1 0

Great answer, I also settled with Pathname :]

1 week ago 1 0 0 1

This is incredibly simple ๐Ÿ˜€

1 week ago 0 0 1 0
Advertisement

Wow, didn't think about that ๐Ÿ˜… Thanks!

1 week ago 0 0 0 0
Preview
Typing issues in `resolve()` from `$app/paths` I'm using a piece of code to generate breadcrumb navigation on my SvelteKit app. I found the inspiration for the code here. The current setup looks like this: &lt;!-- ./breadcrumbs.svelte --&gt; &lt;

Thanks Rich! Just found an answer on StackOverflow, which does something similar, but with a naughty `as any` cast
stackoverflow.com/a/79902788

1 week ago 1 0 1 0

Argument of type '[string]' is not assignable to parameter of type '[route: "/(auth)"] |

1 week ago 1 0 1 0

{#each navItems as item}
<a href={resolve(item.href)}>{item.label}</a>
{/each}

1 week ago 1 0 1 0

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

1 week ago 0 0 1 0
Preview
$app/paths โ€ข SvelteKit Docs $app/paths โ€ข SvelteKit documentation

svelte.dev/docs/kit/$ap... (nice) I just wanted to resolvify my entire SvelteKit app, but how can I use this with my sidebar, where I have a list of objects { label: string, href: string}[] and then create an each loop with an <a href={resolve(item.href)}> (This yields a type error rn)

1 week ago 1 0 2 0

$lib/remote also works good for remote functions

1 week ago 2 0 0 0

Oh damn, had it on my list to try SailKit out :( Will probably still give it a shot for an idea I had :)

1 week ago 1 0 0 0
Advertisement

This is me rn ngl ^^

1 week ago 1 0 0 0

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.

1 week ago 2 0 2 0

Did you build it on emdash? I can't figure if this cms is an aprils fool or not ๐Ÿ˜‚

2 weeks ago 0 0 1 0

you mean building pdfs in svelte?

2 weeks ago 1 0 1 0

Time to rewrite CC in svelte instead of react @anthropic.com ๐Ÿ˜‚

2 weeks ago 2 0 1 0

The 2.0 sounds amazing!

2 weeks ago 1 0 1 0

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?

2 weeks ago 0 0 0 0

Awesome! Lately you've been building cool stuff for astro, the SEO lib too :)

2 weeks ago 1 0 1 0
Advertisement

Didn't know that :/

2 weeks ago 0 0 0 0

I recommend @zed.dev . It has extensions for rust-analyzer (it's written in rust) and svelte and also an AI "killswitch"

2 weeks ago 0 0 5 0

I don't exactly understand what it is, but it looks cool ๐Ÿ˜…

2 weeks ago 0 0 0 0
Preview
GitHub - 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.

I just migrated my svelte library to vite plus and it was really easy (used tsdown previously). For anyone who might be interested in migrating too: github.com/joknoll/svel...

2 weeks ago 1 0 0 0

Already use it for a Ts library, and it's sooo fast :)
But would love to have Svelte and Astro support.

2 weeks ago 3 0 1 0
Preview
GitHub - 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.

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...

3 weeks ago 5 1 0 0