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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@evilflowers/evilflowersviewer

v0.5.17

Published

PDF Viewer based on pdf.js

Readme

EvilFlowersViewer

PDF Viewer based on pdf.js

Introduction

EvilFlowersViewer is a PDF viewer based on pdf.js library that allows users to view and interact with PDF documents directly in the browser. This project is being developed by a university team, and aims to provide a reliable and efficient PDF viewer that is easy to use and customize.

Features

  • PDF document rendering directly in the browser
  • Zoom in and out of documents
  • Page navigation through a page thumbnail view
  • Text search within documents
  • Share the entire document or with selected pages
  • Citation export in BibTeX, BibLaTeX, RIS and bibliography
  • Print the entire document or with selected pages
  • Downdload document
  • Changing themes
  • Fullscreen mode
  • Editing document

Features Under Development

Getting started

To get started with EvilFlowersViewer, follow these steps:

  1. Install EvilFLowersViewerPackage:
npm install @evilflowers/evilflowersviewer
  1. Import the renderViewer function into your project:
import { renderPDFViewer } from '@evilflowers/evilflowersviewer';
  1. Use renderViewer function:
renderPDFViewer(rootId, base64, options, config);

Viewer Options and Properties Documentation

| Input | Description | | ------------------------- | ----------------------------------------------------------------------------------- | | rootId | ID of your component where you use the renderViewer function. | | base64 | String containing the Base64 format of the PDF. | | options | Optional object consisting of theme, language, citationBib, homeFunction, etc. | | options.theme | 'dark' or 'light'. Determines the viewer's theme. | | options.lang | 'sk' or 'en'. Specifies the language of the viewer. | | options.citationBib | String or null. Contains the citation of the document (e.g., @article{name, ...}). | | options.homeFunction | Function (type: () => void) or null. Redirects to the home view. | | options.closeFunction | Function (type: () => void) or null. Closes the viewer. | | options.shareFunction | Function (type: (pages: string | null, expaireDate: string) => Promise<string>) or null. Generates a shareable link for the document. | | shareFunction.pages | String with selected pages (e.g., '1,3-6,10') or null (indicating no pages). | | shareFunction.expaireDate | ISO string specifying the lifespan of the shared document. | | shareFunction => return | Returns a string containing the link to the shared document. | | options.printFunction | Function (type: (pages: string | null) => Promise<string>) or null. Generates a printable version of the selected pages. | | options.editPackage | Optional object for managing edit features, containing the following functions: | | editPackage.saveGroupFunc | Function (type: (name: string) => Promise<{ response: { id: string } }>). Saves a new group and returns its ID. | | editPackage.getGroupsFunc | Function (type: () => Promise<{ id: string; name: string }[]>). Retrieves all available groups. | | editPackage.saveLayerFunc | Function (type: (svg: string, groupId: string, page: number) => Promise<ILayer | null>). Saves a new layer to a group on a specific page. | | editPackage.updateLayerFunc | Function (type: (id: string, svg: string, groupId: string, page: number) => Promise<void>). Updates an existing layer in a group on a specific page. | | editPackage.getLayerFunc | Function (type: (page: number, groupId: string) => Promise<ILayer | null> | null). Retrieves a layer from a group on a specific page. | | config | Optional configuration object controlling viewer features. | | config.download | Boolean. Enables or disables the download feature. | | config.share | Boolean. Enables or disables the share feature. | | config.print | Boolean. Enables or disables the print feature. | | config.edit | Boolean. Enables or disables the edit feature. |

Contributing

We welcome contributions from the community to help make EvilFlowersViewer even better. To contribute, please follow these steps:

  1. Fork the EvilFlowersViewer repository
  2. Create a new branch for your changes
  3. Make your changes and commit them with a clear commit message
  4. Push your changes to your forked repository
  5. Create a pull request to merge your changes into the main EvilFlowersViewer repository

Acknowledgment

This open-source project is maintained by students and PhD candidates of the Faculty of Informatics and Information Technologies at the Slovak University of Technology. The software is utilized by the university, aligning with its educational and research activities. We appreciate the faculty's support of our work and their contribution to the open-source community.