@mischief/pdf-viewerloading the log…
NO RECENT BUILD
Pipeline
  1. Docsusage, props, keywords
  2. Demosrc/demo.tsx
  3. Buildshadcn add → vite
  4. Capturelight, dark, motion
  5. IndexBM25 + vectors

Public log. Prompts, raw model errors and costs stay on the admin side.

Log
Demo source
src/demo.tsx · from an earlier run
import { PdfViewer, type PdfLoader } from '@/components/ui/pdf-viewer'const loader: PdfLoader = async () => ({  pageCount: 3,  getPage: async (pageNumber) => ({    width: 612,    height: 792,    render: async (canvas, scale) => {      canvas.width = 612 * scale      canvas.height = 792 * scale      const ctx = canvas.getContext('2d')      if (!ctx) return      ctx.fillStyle = '#ffffff'      ctx.fillRect(0, 0, canvas.width, canvas.height)      ctx.fillStyle = '#111827'      ctx.font = `bold ${28 * scale}px sans-serif`      ctx.fillText('Product manual', 48 * scale, 90 * scale)      ctx.font = `${16 * scale}px sans-serif`      ctx.fillText(`Page ${pageNumber} of 3`, 48 * scale, 130 * scale)      ctx.fillStyle = '#6b7280'      ctx.fillText('Setup, care and troubleshooting instructions.', 48 * scale, 170 * scale)    },  }),})export default function PdfViewerDemo() {  return (    <PdfViewer      className='w-full max-w-lg'      source='/files/manual.pdf'      loader={loader}      label='Product manual'    />  )}