CClara Sutton·3h agoBuilding a Planar-Graph Floor Plan Room Solver in Pure TypeScript (No Geometry Kernel Required)When a user drags walls on a 2D canvas—or uploads a hand-drawn sketch that gets parsed into approximate wall segments—you do not start with clean room polygons. You start with a messy soup of line seg9 min read·plancaliber.hashnode.dev
CClara Sutton·1h agoHealing Messy Hand-Drawn Floor Plan Graphs into Watertight CAD Geometry in TypeScriptWhy vision models and raw mouse strokes never produce closed rooms — and the 4-pass union-find, angle-snap, and T-junction splitting pipeline that fixes them deterministically.8 min read·plancaliber.hashnode.dev
SSangg TranHuynh·34m agoHosting Discord & Telegram Bots 24/7 Across 12 Runtimes (Node.js, Python, Bun, Go, Rust) Without a Credit CardBuilding a Discord bot in TypeScript (discord.js), a Telegram bot in Python (aiogram / Pyrogram), or a lightweight worker in Bun, Go, or Rust is straightforward—keeping it online 24/7 without hitting2 min read·bothoster.hashnode.dev
HHüseyin Poyraz Küçükarslan·38m agoRunning a Node.js API and a worker togetherWhat makes an API and worker setup reliable, a Compose setup that keeps both on one version, and what two always-on processes cost on six platforms.7 min read·gregale.hashnode.dev1
Jjaved iqbal·1h agoThe Schengen 90/180 Rule Is a Rolling Window — Here's the JavaScriptEvery traveller to Europe's Schengen area meets the same rule: you may stay at most 90 days within any 180-day period. The part that trips people up — and breaks naive calculators — is that the 180 da2 min read·javediqbal-blog.hashnode.dev
SSastha Kl·9h agoDon't silently show outdated information (Web HIG tip #21)Someone opens example.com/orders at lunch and sees "12 open orders." The figure came from an earlier fetch. There is no time, no stale label, and no way to refresh. They start following up with custom5 min read·thewebhig.hashnode.dev
NNimzoa·10h agoHow to Resize Images in JavaScript Without Losing Aspect RatioA practical guide to proportional image resizing using JavaScript, the Canvas API and client side processing.9 min read·nimzoa.hashnode.dev
SSeed Map·2h agoPredicting Minecraft Structure Positions with Region Math in JavaScriptMinecraft does not scatter structures completely at random. In Java Edition, most structures use a "random spread" placement: the world is divided into square regions, and each region gets at most one5 min read·seedmapdev.hashnode.dev
LLucas Lewis·3h agoCalling the MAGI-2 API: One Model ID, Three Modes, and the 400 Errors You Will Meet FirstText-to-video, first and last frame, and reference-to-video requests for Sand AI's audio-video model, with polling code and a pre-flight check.10 min read·apimodels.hashnode.dev
LLucas Lewis·3h agoGemini 4 Neon Writes, Claude Opus 5.5 Reviews: A Two-Model Pipeline and the Empty-Answer Bug It Hit Twice70 lines of Node.js, four real runs, and why a reviewer that only says PASS can cost more than the model that wrote the code.10 min read·apimodels.hashnode.dev