Scan your whole stack
From OX Research Newsroom
Are you using @plp-sergio/react-reader?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.4.2
@plp-sergio/react-reader was last scanned on 26 Nov 2026 at version 0.4.2. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.4.2 LATEST | 26 Nov 2026 | No rules fired |
| 0.4.1 | 25 Nov 2026 | No rules fired |
| 0.4.0 | 25 Nov 2026 | No rules fired |
| 0.3.0 | 24 Nov 2026 | Not shown |
| 0.2.0 | 24 Nov 2026 | Not shown |
Findings for v0.4.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.4.2; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
A React reader for PDFs and image-based publications, with page navigation, zoom, search, thumbnails, and mobile gestures.
npm install @plp-sergio/react-reader
For PDF support, also install:
npm install pdfjs-dist@6.5.438
Supports React 18 and 19. Use a client component in Next.js.
'use client';
import { Reader } from '@plp-sergio/react-reader/reader';
import '@plp-sergio/react-reader/styles.css';
export default function Book() {
return (
<Reader
src="/books/example.pdf"
title="My publication"
locale="en"
style={{ height: '100dvh' }}
/>
);
}
src accepts a PDF path or an edition folder such as /publications/publication-id/edition-id/. Folder mode uses the supported numbered image, BIN, and PDF naming conventions. The reader tries available formats and preserves the current page during fallback.
For PDF rendering, serve the matching PDF.js files from /pdfjs/: pdf.worker.min.mjs from its build/ directory, plus the cmaps/, standard_fonts/, wasm/, and iccs/ directories. Set pdfAssetsUrl if you use a different location. The PDF dependency requires Node 22.13+ or 24+.
import { Flipbook } from '@plp-sergio/react-reader';
import '@plp-sergio/react-reader/styles.css';
<Flipbook
title="My publication"
locale="en"
pages={[
{ src: '/books/page-1.jpg', alt: 'Cover' },
{ src: '/books/page-2.jpg', alt: 'Page 2' },
]}
/>
Image-only use does not require PDF.js. Search needs supplied page text or extractable PDF text; the reader does not perform OCR.
| Option | Purpose |
|---|---|
title |
Publication name. |
locale |
es (default), en, or auto. |
initialPage |
Starting page, numbered from 1. |
onPageChange |
Receive the current page number. |
initialTheme |
portal, paper, sepia, or night. |
initialPageTurnAnimation |
Enable or disable page transitions. |
Reader also accepts style, className, and pdfAssetsUrl. Flipbook provides controlled page and layout options, callbacks, and navigation methods through a ref.
Use your own document and asset paths. Cross-origin files must allow the browser's requests. Keep private publications behind your application's access controls. The reader does not provide authentication or host documents.
All examples use local paths. No production service addresses are included.
The reference guide covers edition folders, manifests, text layers, migration, and the full API. It is also included in the installed package at docs/REFERENCE.md.
MIT. Document content, images, and fonts retain their owners' licenses.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.