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

lanterna

v1.0.15

Published

Google Slides presentation scraper

Readme

Lanterna

Table of contents

Idea and motivation

Published or embedded Google Slides presentations are really hard (or even impossible) to download in an easy manner. That's exactly Lanterna's main purpose - to facilitate the process of downloading published or embedded presentations. It works as follows:

  • full-page screenshots of the provided presentation are taken;
  • the user may choose to save them as separate .pdf files or merge them into one .pdf file;
  • optionally, the user may choose to enable OCR scanning of the presentation, making the output .pdf file(s) searchable

Installing

NPM module

npm install lanterna

This assumes you're using npm as your package manager.

Local setup and tests

In order to work on Lanterna, please ensure you have installed the following:

After doing that, you'll have to clone the project:

git clone https://github.com/tkostadinov004/lanterna.git
cd lanterna

After cloning the project, you have to install the dependencies (they are managed within the package.json file), so all you have to do is to run:

npm install

If you don't see any errors or warnings, then everything should have worked correctly. The next thing would be to run the unit tests in order to verify that everything is working correctly.

Unit Tests

We use Jest to write unit tests for Lanterna. All unit tests are kept in the tests directory.

To run the unit tests, execute the following:

npm test

The output would look something like this:

npm test
> [email protected] test
> jest

 PASS  tests/ocr/ocr.test.ts
 PASS  tests/scrape/scrape.test.ts

Test Suites: 2 passed, 2 total
Tests:       7 passed, 7 total
Snapshots:   0 total
Time:        3.826 s
Ran all test suites.

Hopefully you see that all the tests passed! But if you see errors or warnings, then something must be wrong with your setup. Please ensure you've following the installation steps outlined in the local setup and tests section.