TinyDOCX
Word/ODT library (14x smaller than docx)
Details
- External ID
- 46355484
- Source
- HN
- Company
- —
- Product
- TinyDOCX
- Website domain
- github.com
- Launched
- Dec. 22, 2025
- Cohort
- —
- Upvotes
- 6
- Upvotes percentile
- 0.2652671755725191
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:25 p.m.
- Updated at
- Sept. 7, 2026, 9:25 p.m.
Description
After posting tinypdf here, someone opened an issue asking for Word/OpenOffice support. I understand - sometimes you need an editable document, not a PDF.I didn't want to extend the library itself, so I built tinydocx: <1K lines of TypeScript, zero dependencies, 7.7KB minified+gzipped. The popular docx package is 108KB with 5 dependencies.What's included: - Text formatting (bold/italic/underline/strikethrough, colors, custom fonts) - Headings (H1-H6) - Tables with borders and column widths - Bullet and numbered lists (with nesting) - Images (PNG, JPEG, GIF, WebP) - Hyperlinks - Headers/footers with page numbers - Blockquotes and code blocks - Markdown to DOCX conversion - ODT (OpenDocument) support with the same APIWhat's not included: - Table of contents, footnotes, bookmarks - Track changes, comments - Multi-column layouts, text wrapping - Reading/modifying existing .docx files - Math equations, drawing shapesDOCX files are just ZIP archives containing XML. Once you understand the structure, generating simple documents is straightforward. The hard part is knowing which XML elements Word actually requires vs. what's optional cruft.Works great for invoices, reports, form letters - anything where you want the recipient to edit the document. Pairs nicely with tinypdf when you need both formats.GitHub: https://github.com/Lulzx/tinydocx npm: npm install tinydocx
Enrichment
- Theme
- document and PDF utility tools
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- Not AI
- Project type
- Hobby / open-source project
- Normalized one-liner
- lightweight word and odt document library
- Manually corrected
- False
Could you build this?
Partial Generating OpenXML (.docx) and OpenDocument (.odt) formats from scratch with zero dependencies in under 1,000 lines requires meticulous reverse engineering of complex, deeply nested XML specifications and ZIP packaging.
What it would actually take: Requires an in-depth understanding of the ISO/IEC 29500 (OpenXML) and OASIS OpenDocument specifications. The system constructs valid raw XML trees for document relationships, content types, styles, and body paragraphs, and pipes them directly through a lightweight compression/deflate algorithm to produce spec-compliant `.docx` and `.odt` archive binaries in pure TypeScript.
Discussion
No comments on this launch.
Competitors
Other products that read as similar to this one — 174 launches clear the similarity bar, closest 8 shown.
Attention rank: #160 of 175 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 40 days after the earliest competitor.
- TinyPDF · hn · 2025-12-18 · 253 upvotes · similarity 0.59
- Word in Web · hn · 2026-07-21 · 37 upvotes · similarity 0.52
- Open-source .docx editor library for building document apps · hn · 2026-05-21 · 107 upvotes · similarity 0.52
- Docx to PDF in the Browser Using Pandoc and Typst (WASM) · hn · 2026-02-09 · 6 upvotes · similarity 0.50
- Docx-to-Markdown · hn · 2026-09-16 · 5 upvotes · similarity 0.50
- PDF-to-Word.io · ph · 2026-09-17 · 1 upvotes · similarity 0.49
- PDF to MD · ph · 2026-09-10 · 1 upvotes · similarity 0.47
- Doc-Translator.org · ph · 2026-09-16 · 1 upvotes · similarity 0.46
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.