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

mugiwara-plugin-source-weebcentral

v1.0.1

Published

Weeb Central source plugin for Mugiwara manga reader - imports manga from weebcentral.com

Readme

Weeb Central Source Plugin for Mugiwara

A built-in source plugin for Mugiwara manga reader that enables importing manga from Weeb Central.

Status

This is an internal built-in plugin that comes pre-installed with Mugiwara. It is not published to NPM and is automatically registered when the server starts.

Features

  • Search: Search for manga by title using advanced search with pagination
  • Metadata: Automatic fetching of manga metadata including:
    • Title
    • Description
    • Author information
    • Cover image
    • Tags
    • Publication status and type (Manga/Manhwa/Manhua/OEL)
  • Chapters: Browse and download all chapters with:
    • Chapter listing with published dates
    • Page-by-page streaming download
    • Automatic retry on failures

Configuration

The plugin can be configured via the Mugiwara server configuration:

interface WeebCentralConfig {
  // Base URL for Weeb Central (default: "https://weebcentral.com")
  baseUrl?: string;

  // Request timeout in milliseconds (default: 30000)
  requestTimeout?: number;

  // User agent for requests (default: "Mugiwara/1.0.0")
  userAgent?: string;

  // Number of search results per page (default: 20)
  searchLimit?: number;
}

Usage

Since this is a built-in plugin, you don't need to install anything. The source is automatically available with the ID "weebcentral".

API Endpoints

Search for Manga

curl "http://localhost:3000/api/library/sources/weebcentral/search?q=One%20Piece"

Get Manga Details

curl "http://localhost:3000/api/library/sources/weebcentral/manga/{seriesId}"

Where {seriesId} is the Weeb Central series ULID (e.g., 01J76XYGGM22WZP7T4TKA4ZFAF).

Import Manga

curl -X POST "http://localhost:3000/api/library/import" \
  -H "Content-Type: application/json" \
  -d '{
    "sourceId": "weebcentral",
    "sourceMangaId": "01J76XYGGM22WZP7T4TKA4ZFAF",
    "storageBackendId": "default",
    "downloadAll": true
  }'

Programmatic Usage

import createWeebCentralSource from "@mugiwara/source-weebcentral";

const source = createWeebCentralSource({
  config: {},
});

await source.initialize({});

const results = await source.search("Kagurabachi");
const manga = await source.getMangaDetails(results[0].sourceMangaId);

for await (const page of source.downloadChapter(
  manga.chapters[0].sourceChapterId,
)) {
  // page.data contains the image buffer
  // page.pageNumber is the page number
  // page.contentType is the MIME type
}

Technical Notes

This plugin works by parsing server-rendered HTML pages since Weeb Central does not provide a REST API. The following endpoints are used:

  • Search: GET /search/data?text=...&limit=...&offset=...
  • Series details: GET /series/{seriesId}
  • Chapter list: GET /series/{seriesId}/full-chapter-list
  • Chapter images: GET /chapters/{chapterId}/images?reading_style=long_strip (with HTMX headers)
  • Updates: GET /series/{seriesId}/rss

Retry Logic

The plugin implements the following retry behavior for page downloads:

  • 100ms delay between page downloads
  • Exponential backoff on retry (1s, 2s, 3s)
  • 30-second timeout on requests
  • Maximum 3 retries per page

License

MIT

Disclaimer

This plugin is not affiliated with Weeb Central. Please respect their terms of service when using this plugin.