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 🙏

© 2025 – Pkg Stats / Ryan Hefner

mangakakalot-api

v1.0.3

Published

Lightweight scraper library for MangaKakalot.gg (no server)

Readme

MangaKakalot API

A comprehensive RESTful API for scraping manga data from MangaKakalot.gg. This package provides easy access to manga information, chapters, and images from MangaKakalot.

Installation

npm install mangakakalot-api

Quick Start

As a standalone server

# Install globally
npm install -g mangakakalot-api

# Start the server
mangakakalot-api

# Or use npx
npx mangakakalot-api

As a module in your project

const express = require('express');
const mangaAPI = require('mangakakalot-api');

const app = express();
const PORT = process.env.PORT || 3000;

// Use the manga routes
app.use('/api/manga', require('mangakakalot-api/routes'));

app.listen(PORT, () => {
  console.log(`Server running on port ${PORT}`);
});

API Endpoints

Search Manga

GET /api/manga/search/:query?/:page?
  • Search for manga by title
  • Parameters:
    • query (optional): Search term (default: "attack on titan")
    • page (optional): Page number (default: 1)

Get Manga Details

GET /api/manga/details/:id
  • Get detailed information about a specific manga

Read Chapter

GET /api/manga/read/:mangaId?/:chapterId?
  • Get chapter images for reading

Browse Manga

GET /api/manga/latest/:page?
  • Get latest manga updates (from manga-list/latest-manga)
GET /api/manga/popular/:page?
  • Get popular manga (from manga-list/hot-manga)
GET /api/manga/newest/:page?
  • Get newest manga (from manga-list/new-manga)
GET /api/manga/completed/:page?
  • Get completed manga (from manga-list/completed-manga)
GET /api/manga/popular-now
  • Get popular now manga (from homepage carousel)
GET /api/manga/home
  • Get complete homepage data (popular slider and latest updates)

Parameters

  • page (optional): Page number (default: 1)

Response Examples

Search Response

{
  "mangas": [
    {
      "id": "manga-id",
      "title": "Manga Title",
      "image": "cover-image-url",
      "latestChapter": "Chapter X",
      "views": 1234,
      "genres": ["Action", "Comedy", "Romance"]
    }
  ],
  "currentPage": 1,
  "hasNextPage": true,
  "totalPages": 100,
  "totalMangas": 5000
}

Manga Details Response

{
  "id": "manga-id",
  "title": "Manga Title",
  "altTitles": "Alternative titles",
  "image": "cover-image-url",
  "author": "Author Name",
  "status": "Ongoing/Completed",
  "genres": ["Action", "Comedy", "Romance"],
  "chapters": [
    {
      "id": "chapter-id",
      "name": "Chapter X",
      "date": "Release date"
    }
  ],
  "anilistId": 12345,
  "poster": "high-quality-poster-url",
  "banner": "banner-image-url"
}

Chapter Images Response

{
  "id": "chapter-id",
  "title": "Chapter Title",
  "mangaId": "manga-id",
  "mangaTitle": "Manga Title",
  "images": ["image-url-1", "image-url-2", "..."],
  "prevChapter": "previous-chapter-id",
  "nextChapter": "next-chapter-id",
  "allChapters": [
    {
      "id": "chapter-id",
      "name": "Chapter X"
    }
  ]
}

Installation

  1. Install dependencies:
npm install
  1. Start the server:
npm start

For development with auto-reload:

npm run dev

To test the API:

npm test

The API will be available at http://localhost:3000

Features

  • Scrapes manga data from MangaKakalot.gg
  • Integrates with AniList API for high-quality cover images
  • Provides endpoints for searching, browsing, and reading manga
  • CORS enabled for cross-origin requests
  • Caching headers for improved performance
  • Proper headers including referer to avoid being blocked
  • Pagination information including total pages and total manga count

Deployment

This API is configured for deployment on Vercel. Simply push to your Vercel-connected repository to deploy.