npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

pretty-pdf-viewer

v0.2.0

Published

A beautiful 3D PDF viewer with realistic page-flipping animation using Three.js

Readme

Pretty PDF Viewer

이 프로젝트는 팡고링고 서비스에서 사용하기 위해 개발된 PDF 뷰어입니다.

PDF.js를 사용한 아름다운 PDF 뷰어 라이브러리입니다. React와 Next.js에서 사용할 수 있습니다.

License: MIT TypeScript

특징

  • 실제 책 같은 경험: 양면 보기와 부드러운 페이지 전환
  • 세련된 UI: 하단 통합 컨트롤 바 (이전/다음, 확대/축소, 전체화면)
  • 확대/축소: 드래그로 원하는 위치 확인 가능
  • 고성능: Canvas 캐싱과 최적화된 렌더링
  • 반응형: 다양한 화면 크기 지원
  • 키보드 단축키: 화살표 키, +/- 키 지원
  • TypeScript 지원: 완벽한 타입 정의
  • React/Next.js 전용: React와 Next.js에서 완벽하게 동작

설치

npm install pretty-pdf-viewer

사용법

React

import { PDFViewer } from 'pretty-pdf-viewer';

function App() {
  return <PDFViewer pdfUrl="/sample.pdf" />;
}

Next.js

'use client';

import { PDFViewer } from 'pretty-pdf-viewer';

export default function Page() {
  return <PDFViewer pdfUrl="/sample.pdf" />;
}

옵션

<PDFViewer
  pdfUrl="/sample.pdf"
  options={{
    pageQuality: 3, // 페이지 품질 (1-5)
    initialPage: 1, // 시작 페이지
    initialZoom: 1.0, // 초기 줌 레벨
    onLoad: () => {}, // 로드 완료 콜백
    onPageChange: (page, total) => {}, // 페이지 변경 콜백
    onError: (error) => {}, // 에러 콜백
  }}
/>

UI 컨트롤

라이브러리에 통합된 하단 컨트롤 바:

  • 이전 페이지
  • 페이지 정보 (예: 2-3 / 10)
  • 다음 페이지
  • 축소
  • 확대
  • 전체화면

기술 스택

  • PDF.js: PDF 파싱
  • TypeScript: 타입 안전성

라이선스

MIT License

기여

이슈와 PR을 환영합니다!

GitHub: https://github.com/pango-gy/pretty-pdf-viewer


Made with ❤️ by pango-gy