AI-Powered Open Core ยท MIT Google Gemini AI LaTeX Engine

Turn any prompt into a
professional PDF

HugPDF is an open-source, AI-powered PDF generation platform. Describe what you need in plain English โ€” Gemini AI converts it to LaTeX and compiles a pixel-perfect document instantly.

View on GitHub Read the Docs
Self-host in minutes with your own API keys
# 1. Clone git clone https://github.com/i-am-sarath/hug-pdf.git && cd hug-pdf # 2. Configure โ€” add your Gemini + Supabase keys cp backend/.env.example backend/.env # 3. Run backend + frontend uvicorn server:app --reload --port 8000 npm start # http://localhost:3000 # 4. Generate a PDF via API curl -X POST http://localhost:8000/api/v1/generate \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{"prompt": "Resume for a senior software engineer"}' \ --output resume.pdf

Everything you need to generate PDFs with AI

Built with React 18, FastAPI, Google Gemini 1.5 Pro, and LaTeX for pixel-perfect output.

๐Ÿค–

AI-Powered Generation

Describe what you need in plain English. Gemini AI translates it to LaTeX and compiles a pixel-perfect PDF automatically.

๐Ÿ“„

Multiple Document Modes

Normal (1โ€“5 pages) ยท Research (10โ€“15 pages with citations) ยท E-book (20โ€“50 pages).

โšก

REST API v1

One POST request, one PDF. Integrates easily with Make.com, n8n, Zapier, and any HTTP-capable workflow.

๐Ÿ”‘

API Key Management

Create, list, and revoke API keys from the developer dashboard. Rate limiting and usage tracking built in.

๐Ÿ 

Fully Self-Hostable

Run everything on your own servers. Bring your Gemini API key and Supabase project โ€” no vendor lock-in.

๐Ÿ“Š

Document Dashboard

View, continue, and re-download previously generated PDFs from a clean, simple dashboard interface.

Open source at heart

The core is MIT-licensed. Self-host it free with your own API keys.

โŠ• Open Source (MIT)

  • โœ“ React 18 frontend โ€” all pages & components
  • โœ“ Prompt โ†’ LaTeX engine (Gemini AI integration)
  • โœ“ Standard PDF templates (Normal, Research, E-book)
  • โœ“ LaTeX โ†’ PDF compilation pipeline
  • โœ“ API key management (full CRUD)
  • โœ“ REST API v1 (/api/v1/generate)
  • โœ“ Blog & API documentation pages

โŠ™ Managed Service Only

  • ยท Billing & credit system
  • ยท Advanced proprietary LaTeX templates
  • ยท Job-description resume matching
  • ยท LinkedIn profile extraction
  • ยท High-availability AWS ECS + CDN infrastructure
  • ยท Priority support & SLA

Modern, proven technologies

Everything is well-documented and widely adopted.

React 18 FastAPI Python 3.11 Google Gemini AI Supabase Tailwind CSS LaTeX / pdflatex Docker AWS ECS Fargate

Star us on GitHub

HugPDF is built in public. Read the code, self-host it, open issues, or contribute a pull request โ€” every contribution is welcome.

github.com/i-am-sarath/hug-pdf

MIT Licensed ยท Open Core ยท Contributions welcome