Forking Chrome to Turn HTML into SVG

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • satori

    Enlightened library to convert HTML and CSS to SVG

  • This is a really interesting top down approach, starting with Chromium and pairing a minimal bit out of it.

    https://github.com/vercel/satori is another interesting recent project that goes bottoms up to achieve something similar. Def a lot smaller aimed at edge rendering, but at the tradeoff of significantly more random compatibility / rendering issues.

    Both approaches have their tradeoffs.

  • socr

    screenshot OCR server

  • if it works how i think it does, this could be really nice to cook up some infographics in a css framework like tailwind. then make some svgs for a github readme

    for example i made this one[1] with tailwind but i just ended up taking a png screenshot

    [1] https://github.com/sentriz/socr/blob/master/.github/socr.png

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • canvas2svg

    Translates HTML5 Canvas draw commands to SVG

  • Reminds me of https://github.com/gliffy/canvas2svg at a different level of abstraction.

    I believe PDF.js incorporated some form canvas2svg to try and get a SVG backend working which would allow high resolution printing to PDF but not sure where that's at. I believe printing through PDF.js is blurry due to memory constraints since with normal canvas pdf pages just end up as bitmaps sent to the printer.

    SVG ends up staying vector through Chromiums print pipeline resulting in much less memory usage while having much higher dpi final output. I would imagine this is due to SVG being turned into Skia drawing commands that end up as PDF that then gets printed through PDFium?

  • svg2pdf.js

    A javascript-only SVG to PDF conversion utility that runs in the browser. Brought to you by yWorks - the diagramming experts

  • html2svg

    Convert HTML and `<canvas>` to SVG, PDF, or images using Chromium

  • I've opened an issue to track PDF support [0], you can subscribe to get progress updates for this specific feature. For general project updates you can use the "Watch" button on the repository to get commit updates on your feed.

    [0] https://github.com/fathyb/html2svg/issues/3

  • BrowserBox

    Discontinued 📷 BrowserBoxPro - The internet. But unrestricted. And secure. Remote browser isolation product, available here and in Pro for purchase on our website. [Moved to: https://github.com/dosyago/BrowserBoxPro] (by dosyago)

  • SVG-to-PDFKit

    Insert SVG into a PDF document created with PDFKit

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts