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

rezka.js

v1.0.4

Published

A powerful Node.js library for the unofficial HDRezka API. This scraper and parser allows you to programmatically access movies, series, and user data with a clean, promise-based interface.

Readme

Rezka.js

An advanced, unofficial Node.js API-library for the HDRezka. This scraper and parser allows you to programmatically access movies, series, and user data with a clean, promise-based interface.

Features

  • Modern Tech Stack: Leverages got for robust HTTP requests, cheerio for efficient HTML parsing, and tough-cookie for session management.
  • Typed API: Fully typed with TypeScript for a superior developer experience and code safety.
  • Comprehensive Parsing: Access various content types including movies, series, persons, genres, and comments.
  • Authentication: Built-in support for user login and authenticated requests.
  • Structured Data: Returns clean, predictable JSON objects for all parsed content.
  • Extensible: Designed with a modular architecture that is easy to extend.

Installation

This library is designed to be used with Bun.

bun add rezka.js

Usage

import { Scraper, Genre } from 'rezka.js';

const scraper = new Scraper();

Authentication

To perform user-specific actions, you must first authenticate.

const loginResult = await scraper.auth.login('your-email', 'your-password');
if (loginResult.success) {
  const profile = await scraper.auth.getProfile();
  console.log('User Profile:', profile);
}

Movie & Person Details

Retrieve comprehensive details using a URL (recommended) or an ID.

// Get movie details
const movieDetails = await scraper.movie.get('https://rezka.ag/films/fiction/123-the-matrix.html');
console.log('Movie Title:', movieDetails.title);

// Get person details
const personDetails = await scraper.person.get('https://rezka.ag/actors/11-keanu-reeves/');
console.log('Person Name:', personDetails.name);

Video Streams

Get direct stream URLs for a specific episode. This requires the id and translatorId from the movieDetails object.

const streams = await scraper.stream.get(movieDetails.id, movieDetails.translators[0].id, 1, 1);
console.log('Video Streams:', streams);

Movies & Series

Fetch lists of movies, series, cartoons, or anime.

const series = await scraper.movies.get({ genre: Genre.SERIES, page: 1 });
console.log('Latest Series:', series.data);

Search

Find content by a query string.

const searchResults = await scraper.search.get({ query: 'The Matrix' });
console.log('Search Results:', searchResults.data);

Continue Watching

Retrieve the "continue watching" list for an authenticated user.

const continueWatching = await scraper.continue.extract();
console.log('Continue Watching:', continueWatching);

Comments

Fetch comments for a specific movie.

const comments = await scraper.comments.get(movieDetails.id, 1);
console.log('Comments:', comments.data);

API Documentation

For a complete and detailed API reference, please see the generated TypeDoc documentation.

Contributing

Contributions are welcome! Please see the Contributing Guide for details on how to get started.

Disclaimer

[!IMPORTANT] This library is an unofficial tool and is not affiliated with, endorsed, or sponsored by HDRezka. It is intended for educational and personal use only. The data scraped belongs to the respective content owners. Please respect the terms of service of the website and use this tool responsibly. The developers of this library are not responsible for any misuse.