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 🙏

© 2024 – Pkg Stats / Ryan Hefner

libgenesis

v1.1.10

Published

An API workaround the library genesis platform to enable query search

Downloads

5

Readme

LibGenesis

Build Status GitHub package.json version npm npm GitHub npm bundle size

A simple module for getting and downloading paid books or PDF's for free. This module is based on Library Genesis and works by getting books straight from the portal. More features will be integrated soon.

How it works

  1. Install and require the package
    const libgen = require('libgenesis');
  1. Pass your search query.

The function returns a promise, Hence, you are to wait for response as below

    libgen("book name here").then(function(books){
        //do something with books
        console.log(books);
    }).catch(function(error){
        //throw error
        throw error;
    })
  1. The returned array of objects contains the various fields as in the example below A null value is returned when no book was found for the search term. And download of books is possible by a simple GET request to the link in the donwload property in the response.
    [
        { 
            id: '2348853',
            title: 'From Cave Man to Cave Martian: Living in Caves on the Earth, Moon and Mars',
            author: 'Manfred "Dutch" Von Ehrenfried',
            language: 'English',
            filesize: '13.32MB',
            extension: 'pdf',
            download: 'http://download.library1.org/main/2348000/31d6ee634d383579863137448c347b67/Manfred "Dutch" Von Ehrenfried - From Cave Man to Cave Martian: Living in Caves on the Earth, Moon and Mars-Springer Praxis Books (2019).pdf',
            bookImage: 'http://library1.org/covers/2348000/31d6ee634d383579863137448c347b67-d.jpg' },
        { 
            id: '2348854',
            title: 'From Cave Man to Cave Martian: Living in Caves on the Earth, Moon and Mars',
            author: 'Manfred "Dutch" Von Ehrenfried',
            language: 'English',
            filesize: '74.75MB',
            extension: 'epub',
            download: 'http://download.library1.org/main/2348000/b628824068dd80a12773e43e8fd93bac/Manfred "Dutch" Von Ehrenfried - From Cave Man to Cave Martian: Living in Caves on the Earth, Moon and Mars-Springer Praxis Books (2019).epub',
            bookImage: 'http://library1.org/covers/2348000/b628824068dd80a12773e43e8fd93bac-d.jpg' 
        }
    ]

If you've been waiting for long for this. Please star the project on GitHub

Hence you can do what you want with it. Thank You