{"by":"sokmastr","descendants":41,"id":42416230,"kids":[42416538,42417747,42416967,42416466,42417978,42416597,42417204,42416643,42417576],"score":189,"text":"Svader is a library for rendering 2D shaders on Svelte websites, using either WebGL or WebGPU.<p>It&#x27;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&#x27;s not meant for doing 3D objects like three.js, for example.<p>This started as something I needed for my own project, but I eventually decided to split it into a separate library. I&#x27;ve since found that this use case fits really well into the Svelte compiler-based approach and its fine-grained reactivity system.<p>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&#x27;ll see web developers using small, isolated shader components ubiquitously across web applications, just as naturally as something like SVGs are used today.","time":1734174049,"title":"Show HN: Svader – Create GPU-rendered Svelte components","type":"story","url":"https://github.com/sockmaster27/svader"}