News for hackers. Stuff that matters.
Re:Show HN: Reladraw – A diagram language where you decide w... by jpwalsh234 on Saturday September 26, 2026 @06:40PM (#49861261)
Reladraw has no runtime dependencies and Typescript is only needed to build it. If you mean Node, though, that's fair!
Re:Show HN: Reladraw – A diagram language where you decide w... by jeremycarter on Saturday September 26, 2026 @07:07PM (#49861462)
Maybe a couple of binaries? https://github.com/vercel-labs/scriptc
Re:Show HN: Reladraw – A diagram language where you decide w... by jpwalsh234 on Saturday September 26, 2026 @07:24PM (#49861585)
Oh wow. Let me give that a try. I was going to try bun or Deno, but your suggestion might result in much smaller binaries.
Re:Show HN: Reladraw – A diagram language where you decide w... by jpwalsh234 on Saturday September 26, 2026 @10:29PM (#49862760)
I tried scriptc. Unfortunately, it doesn't work with this code at present (e.g., maps keyed by object and a number of various things). However, thanks for suggesting it. I have a note to revisit at some point.

Another option that appears to work well is to use Deno. I tried on my machine and it worked great. Only downside is the executable size is beefy. Could be about 70-105MB, or roughly 30MB compressed.

I don't know if that still sounds attractive? A 30MB download from Github, and then uncompressed to 100MB, and no other dependencies? (Most of it would be the Deno runtime, with only about 300KB being Reladraw)