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

anime-parsers-js

v1.0.11

Published

JavaScript port of Python AnimeParsers library for parsing anime

Readme

anime-parsers-js

JavaScript порт Python библиотеки AnimeParsers от @YaNesyTortiK.

Огромное спасибо автору оригинальной библиотеки за проделанную работу


Установка

npm install anime-parsers-js

Импорт

const { KodikParser } = require("anime-parsers-js");
или
import { KodikParser } from "anime-parsers-js";

Для разработки

git clone https://github.com/nnaxim/anime-parsers-js.git
npm install cheerio axios

Что реализовано

  • [x] KodikParser - парсер плеера Kodik (требуется API токен)

TODO

  • [ ] AniboomParser - парсер AniBoom
  • [ ] JutsuParser - парсер JutSu
  • [ ] ShikimoriParser - парсер Shikimori

KodikParser

Важно

На данный момент метод getToken() не подходит для использования с методами:

  • baseSearch
  • baseSearchById
  • getList
  • search

Получение токена через этот способ нестабильно Рекомендуется использовать собственный токен, полученный напрямую от Kodik

Подробнее: https://github.com/YaNesyTortiK/AnimeParsers/issues/25


Альтернатива

Можно использовать готовую базу аниме (~8000 тайтлов): https://github.com/nnaxim/anime-table

В таблице есть поле shikimori_id, с помощью которого можно:

  • получать ссылки на плеер через Kodik
  • получать список озвучек
  • парсить серии

Это позволяет работать без поиска через API и обходить ограничения с токеном

Пример использования

const token = await KodikParser.getToken()

const parser = new KodikParser(token)

await parser.getM3u8PlaylistLink('shikimori_id из таблицы выше', "shikimori", 1, "735", 480)
// https://cloud.kodik-storage.com/.....

Инициализация

import { KodikParser } from "anime-parsers-js";

const token = await KodikParser.getToken()
const parser = new KodikParser(token)

Получить токен

const token = await KodikParser.getToken()

Поиск по названию

const results = await parser.search('Наруто')
// Возвращает массив объектов с полями:
// title, title_orig, other_title, type, year,
// screenshots, shikimori_id, kinopoisk_id, imdb_id,
// worldart_link, additional_data, material_data, link

Поиск по ID

// id_type: 'shikimori' | 'kinopoisk' | 'imdb'
const results = await parser.searchById('z20', 'shikimori')

Информация об аниме (переводы и количество серий)

const info = await parser.getInfo('z20', 'shikimori')
// { series_count: 220, translations: [{ id, type, name }] }

const count = await parser.seriesCount('z20', 'shikimori')
// 220

const translations = await parser.translations('z20', 'shikimori')
// [{ id: '735', type: 'Озвучка', name: '2x2 (220 эп.)' }, ...]

Ссылка на видеофайл

const [url, maxQuality] = await parser.getLink('z20', 'shikimori', 1, '609')
// url: '//cloud.kodik-storage.com/.../'
// maxQuality: 720
// Итоговая ссылка: 'https:' + url + '720.mp4'

Если аниме - фильм или одна серия, передайте seriaNum = 0. Если перевод неизвестен - передайте translationId = '0'.

M3U8 плейлист

// Ссылка на плейлист
const link = await parser.getM3u8PlaylistLink('z20', 'shikimori', 1, '609', 480)
// 'https://cloud.kodik-storage.com/.../480.mp4:hls:manifest.m3u8'

// Содержимое плейлиста (с полными ссылками на сегменты)
const playlist = await parser.getM3u8Playlist('z20', 'shikimori', 1, '609', 480)

Список аниме

const [list, nextPageId] = await parser.getList(
    50,          // limitPerPage
    1,           // pagesToParse
    true,        // includeMaterialData
    'ongoing',   // animeStatus: 'ongoing' | 'released' | null
    true,        // onlyAnime
    null         // startFrom (nextPageId из предыдущего запроса)
)

Прямой запрос к API

const data = await parser.apiRequest('search', { title: 'Наруто', limit: 5 })
// Возвращает сырой ответ сервера

Оригинальная библиотека