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

animbus

v1.0.4

Published

Scrapes anime from Samehadaku with AniList integration

Readme

Animbus

Animbus adalah library TypeScript untuk scraping anime dari Samehadaku dengan integrasi metadata dari AniList. Library ini juga mendukung ekstraksi video streaming dari Samehadaku (Server tersedia: Blogger, Filedon, dan Pixeldrain).


🚀 Fitur

  • 🔍 Scrape anime dari Samehadaku (Top, Terbaru, Berdasarkan Genre, Pencarian)
  • 🧠 Integrasi metadata lengkap dari AniList (deskripsi, skor, genre, studio, trailer, dll)
  • 🎥 Mendukung streaming dari Blogger, Premium direct link, Filedon, dan Pixeldrain
  • 🧩 Fuzzy search anime berdasarkan judul & sinonim
  • 💡 Ditulis dengan TypeScript, mendukung ESM dan CJS
  • 🧪 Siap dipakai di project API, bot, CLI, atau desktop app

📦 Instalasi

bun add animbus

🔰 Contoh Penggunaan

✅ Ringkasan Anime dari AniList

import { getAnimeSummary } from "animbus";

const anime = await getAnimeSummary("Jujutsu Kaisen");
console.log(anime);
/*
{
  id: 12345,
  title: 'Jujutsu Kaisen',
  year: 2020,
  coverImage: 'https://...',
  averageScore: 86
}
*/

📖 Detail Lengkap dari AniList

import { getAnimeDetail } from "animbus";

const detail = await getAnimeDetail(12345);
console.log(detail.description); // Deskripsi lengkap
console.log(detail.genres); // ['Action', 'Supernatural']

📥 Scrape Anime Terpopuler dari Samehadaku

import { getTopAnime } from "animbus";

const list = await getTopAnime();
console.log(list[0].title); // Judul + metadata dari AniList

📺 Scrape Episode dari Halaman Anime

import { getAnime } from "animbus";

const anime = await getAnime("jujutsu-kaisen-season-2-subtitle-indonesia");

console.log(anime.title); // 'Jujutsu Kaisen Season 2'
console.log(anime.streamingEpisodes[0].videoID); // Path Samehadaku episode

🔗 Ambil Server Streaming & Iframe URL

import { getServerList, getStreamResource } from "animbus";

const servers = await getServerList(
  "/jujutsu-kaisen-s2-episode-1-subtitle-indonesia/"
);
const url = await getStreamResource(servers[0]);

console.log(url); // iframe src

🎞️ Streaming Video (Pipe ke File)

import { streamBlogger } from "animbus";
import { createWriteStream } from "fs";

const { stream, abort } = await streamBlogger("https://blogger.com/embed-link");

stream.pipe(createWriteStream("output.mp4"));

// Bisa dibatalkan:
// abort();

⚠️ Disclaimer

Library ini melakukan scraping terhadap situs pihak ketiga secara tidak resmi. Gunakan dengan bijak dan hormati hak cipta dari pemilik konten. Jangan gunakan untuk tujuan komersial tanpa izin.