Recent submissions

Comment · 1 year ago
The sync was so seamless I didn't even realize it was playing from my own device at first
Comment · 1 year ago
After a year since v1, I’m open-sourcing htmldocs, a React-based library for building PDF documents using modern web development tools. Write document templates in JSX, style with Tailwind, and render them to pixel-perfect PDFs with a Chromium pipeline—no more LaTeX headaches or Word/Google Docs limitations.

I originally built this because I needed a better way to generate invoices and tailor resumes to job descriptions dynamically. Existing solutions had major trade-offs:

- Google Docs/Word → Easy but lack APIs & version control

- LaTeX → Structured output but painful syntax & no API

- Figma → Flexible but not designed for automation

With htmldocs, you can:

- Define document templates and props in JSX (just like web components)

- Use modern CSS (flexbox, grid, Tailwind, etc.)

- Render server-side via a headless Chromium pipeline

- Upload templates for remote PDF generation via an API

Most of the world still runs on PDFs—contracts, reports, invoices, resumes, etc. It’s time we had a developer-first approach to document generation, just like we build for the web.

What frustrations have you had with existing document solutions? Would love to hear your ideas, experiences, and feedback.

Comment · 2 years ago
Offline isn’t a priority at the moment but can be done in the future by packaging with Electron.

Typst is great but there are a few key differences:

- full CSS support, allowing for more customizability and familiar styling without a learning curve

- less tailored towards academic use-cases are more towards personal/business use-cases like resumes, invoices, reports. Also adding a template gallery in the near future.

- has a templating engine and API baked in

- can use JS packages and ecosystem (ex. icon sets, fonts, etc.)

Comment · 2 years ago
The long term goal of this project is to make HTML/CSS the defacto way of typesetting PDF documents. I’ll definitely keep it running for as long as I can.

The web version is just the initial step, and will likely open source for people who want to self-host and to increase adoption. For pricing, will probably adopt a model similar to Overleaf where it’s free for most users and maybe charge for team collaboration or have an enterprise license.

Comment · 2 years ago
Fixed! Sorry about that
Comment · 2 years ago
I think in the long term, HTML/CSS will win out once there's better support for CSS Paged Module Level 3, and you'll be able to achieve that requirement with just

    @page :left {
        margin-left: 20mm;
        margin-right: 10mm;
    }
    
    @page :right {
        margin-left: 10mm;
        margin-right: 20mm;
    }

instead of needing to install/import different LaTeX packages. I think for most of my current use-cases level 2 has been sufficient but I can see if I can include Paged.js polyfill support by default so there's more support for customizability on that front.
Comment · 2 years ago
Pricing info is in a modal under the user dropdown, it's currently based on a monthly credit system. If there's another pricing model you'd prefer, let me know!
Comment · 2 years ago
You can probably get away with Pandoc depending on your use-case, this is primarily built for:

- having a web editor interface without needing to re-run a CLI command

- people who don't want to deal with packages/dependencies on their own system

- users that just want an affordable and easy-to-use API to generate PDF documents instead of having to set up their own server <> task queue <> worker system which would usually cost more

- in the future, teams that want to collaborate together on a document

Comment · 2 years ago
Comment · 2 years ago
This is a great suggestion and I feel dumb for not thinking of this earlier. Thanks!

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton