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.15

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
    • Select wanted pages (1, 3-5, 10) or none (means whole document)
    • Choose lifespan expectancy (1 day, 7 days, 30 days)
    • Click on share where your function will take care of given inputs
    • Your function returns link for your shared document
    • Our viewer will generate QR Code of given link
  • Citation export in BibTeX, BibLaTeX, RIS and bibliography
  • Changing themes

Features Under Development

  • Annotation tools for highlighting and commenting on text
  • Editing with pen
  • and more...

Getting started

To get started with EvilFlowersViewer, follow these steps:

  1. Install EvilFLowersViewerPackage:
npm install @evilflowers/evilflowersviewer
  1. Update your project architecture (.json)
"architect": {
    "build": {
        "options": {
            "assets": [
                {
                    "glob": "**/*",
                    "input": "node_modules/@evilflowers/evilflowersviewer/dist/assets/",
                    "output": "/assets/"
                }
            ],
            "styles": [
                "node_modules/@evilflowers/evilflowersviewer/dist/style.css"
            ]
        }
    }
}
  1. Import the renderViewer function into your project:
import { renderViewer } from '@evilflowers/evilflowersviewer'
  1. Use renderViewer function:
renderViewer(rootId, base64, options)

| Input | Description | | ------------------------- | ----------------------------------------------------------------------------------- | | rootId | id of your component where you use renderViewer func | | base64 | string that contains base64 formatt of pdf | | options | not required object consisting of theme, lang, citationBib, shareFunction | | options.theme | 'dark' or 'light' | | options.lang | 'sk' or 'en' | | options.citationBib | string containing bib citation of given document examaple: '@article{name,\n ....}' | | options.shareFunction | type: (pages: string / null, expaireDate: string) => Promise | | options.homeFunction | type: () => void | | shareFunction.pages | string containing selected pages (1,3-6,10) or null (means it's empty) | | shareFunction.expaireDate | string containing lifespan of shared document, the end. ISO | | shareFunction => return | link for your shared document as string |

Examples

Examples of functions shareFunction and homeFunction

  1. shareFunction:
private shareFunction = async (pages: string | null, expireDate: string) => {
    // creat whatever object
    const yourObject = {
      range: pages,
      expires_at: expireDate,
    };
    let link = '';

    // yout endpoint
    await this.yourService
      .yourFunction(yourObject)
      .toPromise()
      .then((res) => {
        link = res.url;
      })
      .catch((err) => {
        console.log('Error:', err);
      });

    // returned your link
    return link;
  };
  1. homeFunction:
private homeFunction = () => {
    this.router.navigateByUrl('/path-to/whatever-you-want');
};

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.