akii09/pdfx
A React PDF component library with pre-built, themeable components and a CLI for seamless PDF document creation.
What's novel
A React PDF component library with pre-built, themeable components and a CLI for seamless PDF document creation.
Code Analysis
21 files read · 6 roundsA shadcn/ui-style CLI tool that copies pre-built React PDF components (built on @react-pdf/renderer) into your project, with a theme system, MCP server for AI editors, and a registry build pipeline that transforms source code into self-contained installable files.
Strengths
The build-registry transform pipeline is genuinely non-trivial — it handles 9 different code transformation cases (stripping workspace imports, inlining types, rewriting paths, injecting React imports) to make components self-contained. The architecture is clean with clear separation between CLI, shared schemas, and the registry, and the MCP server integration for 8 AI editors is a thoughtful differentiator.
Weaknesses
Tests are extremely shallow — just 'renders without throwing' function calls with no actual rendering, style computation, or edge case verification. The codebase is in a transitional state where some components follow the segregated file pattern (data-table) and others don't (badge, heading), contradicting the ARCHITECTURE.md documentation.
Score Breakdown
Signal breakdown
Innovation
Craft
Traction
Scope
Evidence
Commits
71
Contributors
3
Files
348
Active weeks
6
Repository
Language
TypeScript
Stars
33
Forks
1
License
NOASSERTION