Scan your whole stack
Are you using pdf-html5-page-flip?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v2.0.2
pdf-html5-page-flip was last scanned on 12 Nov 2026 at version 2.0.2. Risk score 90 of 100 (critical). High-severity rules fired and the AI review flagged it as malicious.
| Version | Published | Status |
|---|---|---|
| 2.0.2 LATEST | 10 Nov 2026 | 6 rules fired |
| 2.0.1 | 10 Nov 2026 | 6 rules fired |
| 0.0.0-stage | 10 Nov 2026 | Not shown |
Findings for v2.0.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.
An automated AI review assessed the package's behavior as likely malicious, based on code excerpts, package metadata and the other findings for this package. It is an automated assessment, not a confirmed result on its own, and should be reviewed.
HIGHand 3 more
The score describes 2.0.2; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
pdf-html5-page-flip)A modern, high-performance, client-side 3D Web Application and React Component that converts standard PDF files into realistic, hardware-accelerated HTML5 flipbooks with physics-based page turning, memory virtualization, full-text search, customizable branding, and on-demand AI document summarization.
Live Production Website: https://flipbook.apps.gracer.ai (or https://pdf-flip.apps.gracer.ai)
?pdf=https://example.com/doc.pdf) with automated CORS proxy fallback.window.devicePixelRatio for sharp rendering across all displays and zoom levels.Configure your project .npmrc to route the @iamapinan scope to GitHub Packages:
@iamapinan:registry=https://npm.pkg.github.com
Install the package:
npm install pdf-html5-page-flip
import React from 'react';
import { PdfFlipbook } from 'pdf-html5-page-flip/react';
import 'pdf-html5-page-flip/style.css';
export default function DocumentViewer() {
return (
<div style={{ width: '100vw', height: '100vh' }}>
<PdfFlipbook
src="/assets/sample.pdf"
theme="dark"
mode="auto"
accentColor="#6366f1"
showLogo={true}
onPageChange={(page, total) => console.log(`Active: ${page}/${total}`)}
/>
</div>
);
}
<PdfFlipbook />)| Prop | Type | Default | Description |
|---|---|---|---|
src |
string \| File \| ArrayBuffer |
Required | PDF source URL string, File object, or raw ArrayBuffer |
theme |
'dark' \| 'light' \| 'wood' |
'dark' |
Overall reading background theme |
mode |
'auto' \| 'single' \| 'double' |
'auto' |
Page presentation mode (auto-detects viewport width) |
accentColor |
string |
'#6366f1' |
Accent color used for highlights, icons, and buttons |
showLogo |
boolean |
true |
Show or hide brand logo and title in the top toolbar |
showToolbar |
boolean |
true |
Show top glassmorphism toolbar |
showSidebar |
boolean |
true |
Show collapsible left sidebar drawer |
showNavigation |
boolean |
true |
Show page turn buttons and direct page jump input |
showSearch |
boolean |
true |
Enable full-text keyword search tab |
showOutline |
boolean |
true |
Enable document Table of Contents (TOC) tab |
showBookmarks |
boolean |
true |
Enable page bookmarking and saved marks tab |
showThumbnails |
boolean |
true |
Enable visual page thumbnails grid tab |
showAiSummary |
boolean |
true |
Enable AI assistant modal and summarizer |
showZoom |
boolean |
true |
Enable zoom in, zoom out, and fit controls |
showPrint |
boolean |
true |
Enable single-page image export and print |
showSound |
boolean |
true |
Enable synthesized paper friction audio |
showFullscreen |
boolean |
true |
Enable fullscreen toggle button |
showThemeToggle |
boolean |
true |
Enable theme cycler in toolbar |
showViewToggle |
boolean |
true |
Enable single/double page switcher button |
showFileUpload |
boolean |
true |
Enable local PDF picker button |
showUrlInput |
boolean |
true |
Enable remote URL input modal button |
flippingTime |
number |
800 |
Duration of flip animation in milliseconds |
onPageChange |
(page, total) => void |
undefined |
Callback fired when current page changes |
onDocumentLoad |
(pdfDoc) => void |
undefined |
Callback fired when PDFDocumentProxy is resolved |
onFileSelect |
(file: File) => void |
undefined |
Callback fired when a local file is opened inside viewer |
Embed the flipbook into static websites or non-React web applications:
<script type="module" src="https://flipbook.apps.gracer.ai/assets/index.js"></script>
<link rel="stylesheet" href="https://flipbook.apps.gracer.ai/assets/index.css" />
<!-- Embed in one line -->
<pdf-flipbook src="/technical-guide.pdf" theme="dark" mode="auto"></pdf-flipbook>
# Clone the repository
git clone git@github.com:iamapinan/pdf-html5-page-flip.git
cd pdf-html5-page-flip
# Install dependencies
npm install
# Start Vite development server
npm run dev
# Build web application and library package
npm run build
# Preview build locally
npm run preview
A lightweight Docker Compose configuration with custom Nginx MIME routing is included:
docker compose up -d
pdf-html5-page-flip/
├── index.html # Modern Web Application shell
├── compose.yml # Docker Compose deployment specification
├── nginx.conf # Nginx reverse-proxy and MIME configuration
├── package.json # Package metadata, exports, and dependencies
├── tsconfig.json # TypeScript configuration for application
├── tsconfig.lib.json # TypeScript configuration for library declarations
├── vite.config.ts # Vite bundler configuration for application
├── vite.config.lib.ts # Vite bundler configuration for library package
└── src/
├── App.tsx # Studio application and Props Configurator
├── main.tsx # React application entrypoint
├── index.ts # NPM package entrypoint
├── style.css # Tailwind v4 styles, 3D book spine lighting
├── sound.ts # Web Audio API paper friction synthesizer
├── component.ts # Standalone Web Component (<pdf-flipbook>)
└── react/
├── PdfFlipbook.tsx # Configurable React Component
├── types.ts # TypeScript Props interface
└── index.ts # React export entrypoint
Open-source licensed under the Apache-2.0 License.\ Created and maintained by iamapinan.
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.