Show HN: Homotope, vectorize images to SVG in the browser, MIT engine on NPM git...

@show

Show HN: Homotope, vectorize images to SVG in the browser, MIT engine on NPM github.com · 3 points · 1 comments · HN thread

TL;DR Homotope is a Show HN for an open-source raster-to-vector engine written in pure TypeScript that runs in the browser, Web Workers or Node and turns PNG/JPEG images into SVG, then into DXF, PDF or EPS. The engine is MIT-licensed and published on npm as @homotope/engine, frozen at version 0.2.0, while the hosted editor and API live separately on homotope.app.

  • The core has no DOM and no runtime dependencies, so it runs in a Web Worker, the main thread or Node (Node 22 or later, ES2022, ESM only); PNG/JPEG decoding is optional via pngjs and jpeg-js.
  • Vectorization quantizes colours in OKLab, segments regions and fits each shared boundary once, so neighbouring shapes neither overlap nor leave gaps, and holes are preserved.
  • Seven presets (logo, illustration, pixel-art, line-art, centerline, black-white, photo) plus typed options for colour count, path precision and cut or stacked export modes.
  • Fabrication exports include DXF with per-colour layers, PDF, EPS, colour separations and a cut-readiness check for tiny islands, close edges and node counts.
  • The author positions it as an MIT alternative to Potrace, which is GPL, with full-colour support and exact shared borders; the editor, server, REST API and MCP server are not part of the package.
  • Images are processed locally in the browser; the hosted workshop offers free SVG and PNG output without an account.

Discussion The thread is essentially a single comment, so there is little discussion. The one commenter praises the GUI and says it did exactly what they wanted and expected, which suggests the hosted browser editor, rather than the npm engine, was what they tried. The mood is positive but thin, with no technical questions or criticism.

  • The browser GUI works well and does what users expect (most): The only comment praises the interface as very nice and says it did exactly what the commenter wanted. No other views were posted.

#vectorization #imageProcessing #typescript #opensource #svg