Skip to content

lucasfernandodev/dragoid

Repository files navigation

Dragoid

Download novels to read offline.

Requirements

  • Linux
  • Node.js v22.17.0 or higher.

Installation

npm install -g dragoid

Puppeteer

Some bots use Puppeteer with Chrome to retrieve information (novel or chapter). If Chrome is not found in ~/.cache/puppeteer, try installing it manually using the following command:

npx puppeteer browsers install chrome

Usage

dragoid <command> [options]

To view general help:

dragoid --help

To view the installed version:

dragoid --version

Examples

Download:

Download a novel and save it in EPUB format:

dragoid download \
  --mode=novel \
  --url="https://site.com/my-novel" \
  --format=epub

Check if the site is supported using:

dragoid download --list-crawlers

List supported output formats:

dragoid download --list-output-formats

Download only a specific chapter of the novel:

dragoid download \
  --mode=chapter \
  --url="https://site.com/my-novel/cap-10" \
  --format=json

For more information about the download command, click here.

Starting the web reader

Starts a local server with a web reader to preview downloaded novel files in JSON format.

dragoid preview \
  --file="./my-novel.json" \
  --public

Reader Preview

For more information about the preview command, click here.

Supported Download Formats

Type JSON EPUB TXT
Novel
Chapter -