javascript

/ 1 min read

dendriteJS v2: Mind Maps in Canvas and SVG

Back in 2012 I built a little interactive mind map tool using Processing.js. It drew bezier curves between draggable nodes, you could add children by clicking a plus button, and the whole thing ran in a canvas. Processing.js died, the code rotted, and I forgot about it. I

/ 2 min read

Your Singletons Are Multiplying

If you're building a full-stack app with Vite and you have any server-side singletons — schedulers, database connections, telemetry adapters, bootstrap flags — you probably have a bug you haven't noticed yet. The Symptom Our dev server kept crashing with out-of-memory errors. Not immediately — it would run fine

/ 1 min read

The $effect Trap

If you're building anything real-time in Svelte 5 — SSE, WebSockets, polling — you will probably hit this. The Setup You have a reactive state object and an $effect that sets up a listener. The listener pushes new data into the state: let data = $state({ messages: [] }); $effect(() => { const source