shadcn-report 1.0.0: single-file HTML reports with shadcn/ui + Magic UI #10
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/shadcn-report"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
New plugin
shadcn-report: builds polished, self-contained HTML reports from shadcn/ui and Magic UI components. Every component is installed with the shadcn CLI vianpx, and the output is bundled into one portable.htmlfile. PDF export is optional.How it works
init-report.sh <slug>npx shadcn@latest init -t vite -b radix -p <preset>, adds the default shadcn +@magicui/*components, wiresvite-plugin-singlefile, applies the starter templatebuild-report.sh <project> --out x.htmltsc -b && vite build→ single fully-inlined HTML (checks nothing leaked out of the bundle)export-pdf.sh x.html@pageso Recharts charts don't clipProjects live in
~/.cache/shadcn-reports/<slug>/(about 300 MB ofnode_modules, kept out of git repos) and can be edited and rebuilt later.Non-obvious problems it handles
-y. The scripts pass every option explicitly and close stdin.NumberTickerstarts at 0 andBlurFadestarts invisible, so prints, PDFs, and screenshots came out empty.useStaticMode()(?static, reduced motion,beforeprint) feeds<Kpi>and<Reveal>so they render final values.--chart-*values. The template adds shadcn's colorful palette for light and dark.Testing
Ran manually end to end on a fresh scaffold (init with
--add alert, then build, then PDF):fully_inlined: true?staticand animated🤖 Generated with Claude Code
https://claude.ai/code/session_01QAQzaNVALrNcxVcmKaoZUD