frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

From frustration to open source adoption: my journey building SnapDOM

1•tinchox5•1h ago
I started hacking on what later became SnapDOM in April this year. At first it wasn’t even meant to be a standalone library — it began as an internal tool for a zoomable UI project (Zumly), I was building. To make that project work, I needed a way to capture DOM elements with high speed and fidelity. Existing DOM-to-image libraries like html2canvas often failed in subtle but important ways: missing pseudo-elements, mis-rendering fonts, ignoring Shadow DOM, or breaking on Safari. What started as a quick internal hack slowly grew into its own project.

Open sourcing SnapDOM changed everything. Suddenly the audience wasn’t just me, but anyone with their own browser, CSS, and HTML quirks. That’s when I realized how immense the attack surface really is. Every combination of engines, DOM structures, styles, and external resources can break in unexpected ways. At times it felt overwhelming, but I’ve learned to treat each bug as a reproducible pattern: isolate it, fix it, and carry the lesson forward.

From the beginning, two principles guided the work: fidelity and speed. Capturing “every detail” would not matter if the process was unbearably slow, so I spent a lot of time on caching strategies, incremental updates, and efficient DOM cloning. Benchmarking against existing libraries became part of the routine. Performance was never an afterthought — it was always as important as accuracy.

On the technical side, SnapDOM pushed me into DOM cloning strategies, caching, font embedding heuristics, browser-specific hacks, and the constant tradeoffs between fidelity and performance. On the personal side, it has been just as educational: patience, humility, and learning to really listen to users. Some of the best moments have been receiving thoughtful PRs and clear reproduction cases — collaboration that genuinely made the project better. The respect shown in these contributions has been one of the most motivating parts of the journey.

Another milestone: only a few months in, SnapDOM already has its first two GitHub Sponsors and has passed 6k stars on GitHub. Knowing that people found enough value to sponsor the project, and that thousands more cared enough to star it, has been incredibly rewarding.

I’ve also been designing a plugin system, so the core stays lean while features like cropping, filters, or alternative exporters can live as extensions. It’s not merged into the mainline yet, but it’s a direction I’m excited about — and another layer of complexity to manage as the project evolves.

It’s still early days, but reflecting on the journey from April to now has been meaningful. What started as a small internal helper for a zoomable UI turned into an open source project with real users, contributions, sponsors, and community respect. Balancing the technical struggles with the human side of open source has made this one of the most rewarding experiences I’ve had so far.

Thank you, Martin

Repo: https://github.com/zumerlab/snapdom

We Won't Be Missed: Work and Growth in the Era of AGI [pdf]

https://conference.nber.org/conf_papers/f227505.pdf
1•Anon84•29s ago•0 comments

Get Ready for Higher Health Insurance Premiums Next Year

https://www.nytimes.com/2025/09/26/your-money/health-insurance-premiums-increase.html
1•thelastgallon•39s ago•0 comments

iOS26 Is Crazy Battery Nightmare – Power Consumption Deep Dive

https://old.reddit.com/r/apple/comments/1nrormq/iphone_17_pro_max_ios26_is_actually_crazy_battery/
2•voisin•1m ago•0 comments

The Spinal Surgeries That Didn't Need to Happen

https://nymag.com/intelligencer/article/spinal-surgeries-fusions-long-term-pain.html
1•clanky•2m ago•0 comments

Swapping old immune cells in the brain with fresh ones could treat disease

https://www.nature.com/articles/d41586-025-03008-5
1•bookofjoe•5m ago•1 comments

Post-quantum RSA with gargantuan keys

https://www.johndcook.com/blog/2025/09/26/post-quantum-rsa/
1•ibobev•6m ago•0 comments

Half Way to Hell Club

https://en.wikipedia.org/wiki/Half_Way_to_Hell_Club
1•lifeisstillgood•8m ago•0 comments

Sources Say Bay Area House Party

https://www.astralcodexten.com/p/sources-say-bay-area-house-party
1•barry-cotter•9m ago•0 comments

A century-old knot conjecture was wrong all along [video]

https://www.youtube.com/watch?v=Dx7f-nGohVc
1•ColinWright•14m ago•0 comments

Who Is Elara Voss?

https://maxread.substack.com/p/who-is-elara-voss
2•pr337h4m•16m ago•0 comments

A Gentle Introduction to CUDA PTX

https://philipfabianek.com/posts/cuda-ptx-introduction/
1•ashvardanian•19m ago•0 comments

NPM helper to wrap functions in try/catch for error handling

https://www.npmjs.com/package/catch-wrap
1•ghttp•19m ago•0 comments

AloOui Esim

1•alooui•20m ago•2 comments

Crypto backed data storage – pay once, store forever

https://ardrive.io/
1•apwheele•21m ago•1 comments

Why We Think

https://lilianweng.github.io/posts/2025-05-01-thinking/
1•gmays•22m ago•0 comments

Computer Vision: Algorithms and Applications, 2nd ed

https://szeliski.org/Book/
1•ibobev•22m ago•0 comments

HSBC publishes yet another claim of quantum advantage that isn't

https://scottaaronson.blog/?p=9170
2•Bogdanp•24m ago•1 comments

A 75-year-old powerlifter headed to the world championships

https://www.theguardian.com/wellness/2025/sep/26/powerlifting-kate-evert-world-championships
1•YeGoblynQueenne•24m ago•0 comments

The Prehistory of Computing, Part II

https://www.oranlooney.com/post/history-of-computing-2/
2•olooney•25m ago•0 comments

Signifier Flotation Devices

https://davidyat.es/2025/09/27/signifier-flotation-devices/
1•dyates•25m ago•0 comments

The algorithm will see you now

https://worksinprogress.co/issue/the-algorithm-will-see-you-now/
2•kretaceous•28m ago•0 comments

China's Floating Power Plants – Tapping Super High Winds

https://cleantechnica.com/2025/09/25/chinas-floating-power-plants-tapping-super-high-winds/
2•wawayanda•28m ago•0 comments

Inside The Information's paywall strategy (2021)

https://simonowens.substack.com/p/inside-the-informations-paywall-strategy
1•hhs•42m ago•0 comments

AI for supporting an autism spectrum disorder diagnosis

https://www.thelancet.com/journals/ebiom/article/PIIS2352-3964(25)00375-5/fulltext
2•hdvr•43m ago•0 comments

DITA – Darwin Information Typing Architecture

https://dita-lang.org/
1•smartmic•43m ago•0 comments

Claude Code vs. Codex, a small test

https://danieltenner.com/claude-code-vs-codex-a-small-test/
2•tosh•46m ago•0 comments

How Many Mars Bars Are You Drinking?

https://claude.ai/public/artifacts/331fde13-9cbb-4cba-a944-1926d3b883e9
1•VirtualRichard•46m ago•0 comments

Adam Savage Learns About Full Color Resin 3D Printing [video]

https://www.youtube.com/watch?v=y4V7OGILaJM
1•mhb•48m ago•0 comments

Between Rust and Go, I Choose V (2024)

https://elimbi.com/posts/rust-vs-go-vs-v/
1•hggh•53m ago•0 comments

HPC Customers Flock to TSMC and Its 2nm Process

https://www.hpcwire.com/2025/09/26/hpc-customers-flock-to-tsmc-and-its-2nm-process/
1•rbanffy•54m ago•0 comments