{"repo":"anaralabs/lector","free":true,"listed":false,"github":"https://github.com/anaralabs/lector","clone":"git clone https://github.com/anaralabs/lector.git","description":"Simple, fast primitives for building pdf viewers. maintained by @anaralabs","language":"TypeScript","stars":393,"topics":["pdf","pdfjs-dist","react","virtualization"],"license":"MIT","category":"media-processing","readme_excerpt":"Simple primitives to compose powerful PDF viewing experiences. powered by PDF.js and React lector A composable, headless PDF viewer toolkit for React applications, powered by PDF.js . Build feature-rich PDF viewing experiences with full control over the UI and functionality. Installation Basic Usage Here's a simple example of how to create a basic PDF viewer: Local Development using PNPM and Yalc When you are using \"pnpm link\", you are bound to use pnpm on your consumer project when you are developing locally. With yalc, we are decoupling the need for pnpm and now the package can be tested with any package managers. Any changes should be automatically published to yalc on save, forcing a rebuilt and updating the consumer project. Install yalc globally: From lector: From consumer project: (It doesn't really matter what package manager you are using) Features - 📱 Responsive and mobile-friendly - 🎨 Fully customizable UI components - 🔍 Text selection and search functionality - 📑 Page thumbnails and outline navigation - 🌗 First-class dark mode support - 🖱️ Pan and zoom controls - 📝 Form filling support - 🔗 Internal and external link handling Contributing We welcome contributions! Key areas we're focusing on: 1. Performance optimizations 2. Accessibility improvements 3. Mobile/touch interactions 4. Documentation and examples Thanks Special thanks to these open-source projects that provided inspiration: - react-pdf-headless - pdfreader License MIT © Anara","default_branch":null,"files":null,"tree":[],"storefront":"/r/anaralabs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/anaralabs/lector/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}