Show HN: Svader – Create GPU-rendered Svelte components

Svader is a library for rendering 2D shaders on Svelte websites, using either WebGL or WebGPU.

It's streamlined for the specific use case of rendering 2D graphics using fragment shaders as an alternative to SVG or the JS canvas API, so it's not meant for doing 3D objects like three.js, for example.

This started as something I needed for my own project, but I eventually decided to split it into a separate library. I've since found that this use case fits really well into the Svelte compiler-based approach and its fine-grained reactivity system.

In general, I think using shaders like these has some really positive upsides compared to traditional ways of doing graphics on the web — not just for games and stuff, but also for something like data visualizations and aesthetic details. My dream is that one day, you'll see web developers using small, isolated shader components ubiquitously across web applications, just as naturally as something like SVGs are used today.


Comments URL: https://news.ycombinator.com/item?id=42416230

Points: 26

# Comments: 1

https://github.com/sockmaster27/svader

Creată 6mo | 14 dec. 2024, 12:10:08


Autentifică-te pentru a adăuga comentarii

Alte posturi din acest grup

Show HN: Free local security checks for AI coding in VSCode, Cursor and Windsurf

Hi HN!

We just launched Codacy Guardrails, an IDE extension with a CLI for code analysis and MCP server that enforces security & quality rules on AI-generated code in real-time. It hooks into AI

18 iun. 2025, 20:30:09 | Hacker news
Show HN: I built a tensor library from scratch in C++/CUDA

Hi HN,

Over the past few months, I've been building `dsc`, a tensor library from scratch in C++/CUDA. My main focus has been on getting the basics right, prioritizing a clean API, simplicity, an

18 iun. 2025, 18:10:18 | Hacker news