Skip to content

PidifyJs is a powerful, production-ready PDF viewer component library for React applications. Built with modern web technologies, it provides a comprehensive set of features for rendering, navigating, and annotating PDF documents with an intuitive and responsive user interface.

License

Notifications You must be signed in to change notification settings

GitCoder052023/PidifyJs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

PidifyJS

A modern, feature-rich PDF viewer component library for React with a beautiful UI, built with TypeScript and TailwindCSS

License Status Node TypeScript React

StreamNet Interface

Table of Contents

Overview

PidifyJS is a powerful, production-ready PDF viewer component library for React applications. Built with modern web technologies, it provides a comprehensive set of features for rendering, navigating, and annotating PDF documents with an intuitive and responsive user interface.

Whether you're building a document management system, e-signature application, or any solution that requires PDF viewing capabilities, PidifyJS has you covered.

Features

  • Modern UI - Clean, intuitive interface built with TailwindCSS
  • Responsive Design - Seamless experience across all device sizes
  • High Performance - Optimized rendering with smooth animations
  • Navigation Tools - Page navigation, zoom controls, and rotation
  • Annotations - Highlights, notes, and drawing capabilities
  • Bookmarks - Create and manage bookmarks for quick navigation
  • Document Outline - Auto-generated table of contents from PDF structure
  • Text Layer Support - Searchable and selectable text in PDFs
  • Accessibility - Built with accessibility in mind
  • Dark Mode Ready - Fully compatible with dark mode themes
  • Tree-shakeable - Only import what you need
  • TypeScript First - Fully typed for superior developer experience

Quick Start

Prerequisites

  • Node.js >= 18.0.0
  • pnpm >= 10.0.0 (or npm/yarn)
  • React 18+ or React 19+
  • React DOM 18+ or React DOM 19+

Installation

# Coming soon to npm registry
# For now, install from source during development

# Clone the repository
git clone https://github.com/GitCoder052023/PidifyJs.git
cd PidifyJs

# Install dependencies
pnpm install

# Build the library
cd source/packages/core
pnpm build

πŸ“Œ Note: PidifyJS is currently under active development and not yet published on npm. It's ready for early adoption and community contributions.

Basic Usage

import React from 'react'
import { PDFViewer } from '@pidifyjs/core'
import '@pidifyjs/core/styles.css'

export default function App() {
  return (
    <div className="w-full h-screen">
      <PDFViewer
        data={{
          url: 'https://example.com/document.pdf'
        }}
      />
    </div>
  )
}

Examples

Check out the source/Examples directory for ready-to-use examples with both React and Next.js! These examples show you how to integrate PidifyJS into different types of projects and can be a great reference when building your own implementation.

cd source/Examples
# Browse the React and Next.js example applications

Project Structure

PidifyJs/
β”œβ”€β”€ source/
β”‚   β”œβ”€β”€ packages/
β”‚   β”‚   └── core/              # Main PDF viewer library
β”‚   β”‚       β”œβ”€β”€ src/
β”‚   β”‚       β”‚   β”œβ”€β”€ components/  # React components
β”‚   β”‚       β”‚   β”œβ”€β”€ hooks/       # Custom React hooks
β”‚   β”‚       β”‚   β”œβ”€β”€ types/       # TypeScript types
β”‚   β”‚       β”‚   └── constants/   # Configuration constants
β”‚   β”‚       └── vite.config.ts
β”‚   β”œβ”€β”€ app/                   # Demo Next.js application
β”‚   └── Examples/              # React and Next.js examples
β”œβ”€β”€ .github/                   # GitHub templates
β”œβ”€β”€ .husky/                    # Git hooks
└── package.json

Development

Setup Development Environment

# Install dependencies
pnpm install

# Start development server
cd source/packages/core
pnpm dev

# Run linting
pnpm lint

# Build for production
pnpm build

Contribution Guidelines

  • Follow the Contributor Covenant
  • Use conventional commits
  • Keep commits atomic and focused
  • Write descriptive pull request titles and descriptions
  • Link related issues in PR descriptions
  • Update documentation accordingly

For more details, see CONTRIBUTING.md.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Community

Security

For security vulnerabilities, please see SECURITY.md for reporting guidelines.


Report Bug β€’ Request Feature β€’ View Changelog

Made with ❀️ by the PidifyJS Community

About

PidifyJs is a powerful, production-ready PDF viewer component library for React applications. Built with modern web technologies, it provides a comprehensive set of features for rendering, navigating, and annotating PDF documents with an intuitive and responsive user interface.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published