7 ms·
Bun has been nothing but amazing wins for me, and I really like what it enabled me to do. Two examples: - I have a couple of projects that handle images. I was
by franciscop 29d ago
Bun has been nothing but amazing wins for me, and I really like what it enabled me to do. Two examples:
- I have a couple of projects that handle images. I was including Sharp, but since these are side projects in a small VM, often a redeploy that recompiled Sharp just crashed the full VM (out of memory). Bun includes Bun.Image[1] natively, which is built around Sharp's API, so swapping Sharp out was very easy, and now deploys are a breeze (and swapping it in would be just as easy).
- Bun's JSX support is a godsend. I've replaced almost all my side projects that were backend rendered from Pug, Handlebars, and other various templates I used to have to just pure JSX. Heck, this made it trivial to make a side projects where the Favicon was a dynamic SVG [2]
[1] https://bun.com/docs/runtime/image https://bun.com/docs/runtime/image
[2] https://stocksreader.com/portfolio?%5Egspc=10&amzn=10&msft=12&tsla=8&v=15&ko=20&spcx=10&aapl=10&period=1M https://stocksreader.com/portfolio?%5Egspc=10&amzn=10&msft=1...
- tipiirai 29d agoI also use Bun.Image to collect image size and metadata, and also to generate low-quality image placeholders. Works great. Have you tried 1.4?
- CrimsonRain 29d agohave you? Type -canary instead of this garbage article
- deleted 29d ago[deleted]