Show HN: Zpup – Zdog style 3D scenes in JSON, SVG from any angle github.com · 4 ...

@show

Show HN: Zpup – Zdog style 3D scenes in JSON, SVG from any angle github.com · 4 points · 0 comments · HN thread

TL;DR Zpup is a new open-source TypeScript library, version 0.2, that turns a small 3D scene described as JSON into a flat SVG viewable from any angle, with no JavaScript in the output. It is inspired by Zdog, which the author says has not had a release in several years, and its main difference is depth sorting that compares overlapping shapes pairwise instead of sorting each shape by one point. The thread has no comments yet, so the reception is unknown.

  • Takes a scene written as a plain JSON object tree and renders a still SVG from any view angle, with no JavaScript, so it works in img tags, emails and READMEs.
  • Depth sorting compares every pair of overlapping shapes instead of ordering each shape by one center point, which Zdog does; a benchmark reports a median 0.4% and 0.3% of pixels painted in the wrong order versus 2.9% and 4.2% for Zdog.
  • Supports solids (box, cylinder, cone, hemisphere), flat shapes, soft shading from a fixed upper-left light, and a SMIL-based turning animation that needs no JavaScript.
  • Explicit limits: no perspective, no textures, no text shape, no clipping, no canvas renderer, and solids that cut deeply into each other are not drawn correctly.
  • Includes an MCP server package so AI models can write scenes and get structured errors back; the author says the project was written with Claude Code.
  • Licensed MIT and inspired by Zdog by David DeSandro, with no shared code and no affiliation.

Links in the post

  • Zpup playground: Browser playground where you edit a JSON scene, drag the picture to turn it, and export still or turning SVG.

Discussion No comments have been posted yet, so there is no discussion thread to summarize. The story has 4 points and no replies at the time of this digest.

#3DGraphics #SVG #Zdog #TypeScript #OpenSource #DataVisualization