release: v2.0.0 — native renderer, no Chrome dependency#1
Merged
Conversation
BREAKING CHANGES - Chrome is no longer required. Removed puppeteer-core, pdf-lib, markdown-it and the CHROME_PATH env var. - Node ≥ 20 required (was ≥ 18). React 19 + TypeScript 6 baseline. Renderer - Replaces Puppeteer + Chrome printing with @react-pdf/renderer. Markdown → remark/mdast AST → typed React components → PDF in a single deterministic pass. No external runtime, no font CDN at render time, no post-render PDF mutation. Typography - Ships 5 baked instances of Newsreader (Display 60 Light, Display 32 Regular, Text Regular/Medium/Italic) + JetBrains Mono + DM Sans inside dist/. Variable-font opsz axis is baked into static instances because @react-pdf/renderer's Font.register cannot express font-variation-settings. - Every PDF renders identically on every machine. Design system - New src/templates/design-tokens.ts is the single source of truth for colors, type sizes, leadings, and cover positioning ratios. Every component reads from it; no eyeballed values anywhere. - Component architecture: Cover, TOC, Footer, body primitives (H1/H2/H3, P, Strong/Em, A, InlineCode, CodeBlock, Blockquote, UL/OL, HR, Table), and the first chart primitive HorizontalBarChart. MCP polish - Tool annotations on the wire: readOnlyHint, destructiveHint, idempotentHint, openWorldHint, and human-readable title for both generate_pdf and list_templates. - server.json + smithery.yaml + glama.json all version-bumped and registry-ready. Project identity - Adds assets/icon.png (256/512, transparent + paper-white variants). The mark is a Newsreader Display 60 Light capital P — the same font and weight as the cover title. The icon and the artifact share an alphabet. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pdf-it 2.0.0
Production-grade rewrite. Same design language, entirely new render stack.
Breaking changes
puppeteer-core,pdf-lib,markdown-it, and theCHROME_PATHenv var.Renderer
Markdown → remark/mdast AST → typed React components → PDF via
@react-pdf/renderer, in a single deterministic pass. No external runtime, no font CDN at render time, no post-render PDF mutation.Typography
Ships 5 baked Newsreader instances (Display 60 Light, Display 32 Regular, Text Regular/Medium/Italic) + JetBrains Mono + DM Sans inside the package. Variable-font opsz axis baked into static instances because
Font.registercan't expressfont-variation-settings. Every PDF renders identically on every machine.Design system
src/templates/design-tokens.ts— single source of truth for colors, type sizes, leadings, cover positioning.HorizontalBarChart.MCP polish
readOnlyHint,destructiveHint,idempotentHint,openWorldHint,title) for both tools.style-guide,markdown-cheatsheet) refreshed to describe v2 reality.server.json+smithery.yaml+glama.jsonversion-bumped and registry-ready.Project identity
assets/icon.png— a Newsreader Display 60 Light capital P. The icon and the cover title share an alphabet.AGENTS.md— agent-readable project contract.Verification
tscclean (strict), boots aspdf-it v2.0.0,tools/listcarries annotations.generate_pdfwrites valid PDFs with embedded fonts, TOC anchors, and Title/Author metadata.npm pack: 64 files, ~750 KB, no dev preview scripts shipped.🤖 Generated with Claude Code