
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Interactive CLI tool for LibGen ebook searches and downloads with batch processing support
An interactive CLI tool for searching and downloading books from LibGen with AI-powered result selection, batch processing, and a beautiful terminal interface.
npx bookgrabs
npm install -g bookgrabs
bookgrabs
git clone <repository-url>
cd bookgrabs
npm install
npm start
Simply run the command without arguments to launch the interactive interface:
npx bookgrabs
This will open an interactive menu where you can:
You can also use traditional command-line arguments:
# Search by general query
npx bookgrabs "Harry Potter"
# Search by author and title
npx bookgrabs --author "J.K. Rowling" --title "Harry Potter"
# Search fiction only
npx bookgrabs --fiction "1984"
# Search with language filter
npx bookgrabs --language fra "Harry Potter"
# Process books from CSV file
npx bookgrabs --csv books.csv
BookGrabs will automatically prompt you to enter your OpenAI API key on first run. If you don't have one or want to skip this step, you can:
npx bookgrabs and follow the prompts.env file in your working directory:
OPEN_AI_KEY=your_openai_api_key_here
Get your API key from: https://platform.openai.com/api-keys
Note: AI features (intelligent result selection, title standardization, retry logic) require an OpenAI API key. Without it, BookGrabs will use basic search result selection.
For batch processing, create a CSV file with the following format:
author,title,year
J.K. Rowling,Harry Potter and the Philosopher's Stone,1997
George Orwell,1984,1949
Isaac Asimov,Foundation,1951
Then either:
npx bookgrabs --csv books.csv--author, -a: Specify author name--title, -t: Specify book title--csv, -c: Process books from CSV file--fiction: Search fiction only--nonfiction: Search non-fiction only--comics: Search comics only--all-topics: Search all topics--results, -r: Maximum number of results (default: 25)--language, -l: Language filter (3-letter code, e.g., eng, fra, deu)--english: Search English books only (default)--any-language: Search all languagesbookGrabs/
├── bin/
│ └── bookgrabs.js # CLI executable
├── src/
│ ├── components/ # React/Ink UI components
│ │ ├── MainMenu.tsx
│ │ ├── SearchScreen.tsx
│ │ ├── BatchScreen.tsx
│ │ └── ...
│ ├── ai.js # OpenAI integration
│ ├── blacklist.js # Blacklist management
│ ├── config.js # Command line argument parsing
│ ├── csv.js # CSV processing and batch operations
│ ├── download.js # Book downloading functionality
│ ├── search.js # LibGen search functionality
│ └── utils.js # Utility functions
├── index.tsx # Interactive React/Ink interface
├── index.js # Traditional CLI interface
├── books/ # Downloaded books directory
├── .blacklist # Blacklisted download hashes
└── package.json
~/BookGrabs/author_name/ directories in your home folder.blacklist file in your current working directoryNote: Books are now stored in a dedicated BookGrabs folder in your home directory, making them easy to find regardless of where you run the command.
If you previously used BookGrabs, your books may be in a local books/ folder where you ran the command. You can move them to the new location:
# Move existing books to the new location
mv books/* ~/BookGrabs/
MIT
Contributions are welcome! Please feel free to submit a Pull Request.
FAQs
Interactive CLI tool for LibGen ebook searches and downloads with batch processing support
The npm package bookgrabs receives a total of 16 weekly downloads. As such, bookgrabs popularity was classified as not popular.
We found that bookgrabs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.