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

clickndebrid

v1.1.2

Published

A Click'n'Load proxy server that converts links via debrid services API and submits them to PyLoad et al.

Readme

ClicknDebrid

License: GPL-3.0 TypeScript Node.js Express Redis

A modern Node.js Click'n'Load proxy server that converts links via debrid services and forwards them to download managers. ClicknDebrid sits between file hosting sites and your download manager, automatically processing links through premium debrid services to unlock faster downloads without captchas or speed limits.

Features

  • Click'n'Load Integration: Intercepts CNL2 requests for link processing
  • Debrid Service Support: Converts links using Real-Debrid API
  • Admin Dashboard: Modern web interface for package management
  • Responsive Design: Dark-themed UI with Tailwind CSS
  • Flexible Storage: Redis or in-memory caching

Key Benefits

  • Automatic Processing: No manual copy-pasting of links between services
  • Premium Features: Get full download speeds without site restrictions
  • Centralized Management: View all packages and their processing status in the admin UI
  • Self-Hosted: Complete control over your data and downloads
  • Extensible: Support for multiple debrid services (currently Real-Debrid, more planned)

Prerequisites

  • Node.js 20.x or higher
  • npm 10.x or higher
  • Redis (optional, for production use)

Installation

From Source

# Clone the repository
git clone https://github.com/XaverLeet/clickndebrid.git

# Navigate to the project directory
cd clickndebrid

# Install dependencies
npm install

# Start the application
npm start

Using Docker

Single Container

# Build the image
docker build -t clickndebrid .

# Run the container
docker run --rm -p 127.0.0.1:9666:9666 \
  -e CND_REALDEBRID_APITOKEN=YOUR_API_TOKEN \
  -e CND_DESTINATION_URL=http://192.168.1.1:9666 \
  clickndebrid

Docker Compose (Recommended)

# Start with docker-compose
docker compose up -d

Find a docker-compose.yml example in the docker-compose.yml file.

services:
  app:
    build:
      dockerfile: Dockerfile
    restart: unless-stopped
    user: 1000:1000
    ports:
      - 127.0.0.1:9666:9666
    environment:
      - "CND_DEBRIDSERVICE=realdebrid"
      - "CND_REALDEBRID_APITOKEN="
      # Click'n'Load Destination (e.g. PyLoad)
      - "CND_DESTINATION_URL=http://localhost:9666"
      - "CND_PORT=9666"
      # Redis Configuration
      - "CND_REDIS_ENABLED=true"
      - "CND_REDIS_URL=redis://redis:6379"
      - "CND_REDIS_USERNAME="
      - "CND_REDIS_PASSWORD="
      - "CND_REDIS_TTL=360000"
      # Logger Configuration
      - "CND_LOG_LEVEL=info"
  redis:
    image: redis:alpine
    restart: unless-stopped
    volumes:
      - ./redis:/data

Configuration

Environment Variables

| Variable | Description | Default | | ------------------------- | ---------------------------------------- | ------------------------ | | NODE_ENV | Node.js environment | development | | CND_DEBRIDSERVICE | Debrid service to use (e.g., realdebrid) | realdebrid | | CND_REALDEBRID_APITOKEN | Real-Debrid API token | required | | CND_DESTINATION_URL | URL of the Click'n'Load server | required | | CND_PORT | Port for the server | 9666 | | CND_REDIS_ENABLED | Enable Redis cache | false | | CND_REDIS_URL | Redis server URL | redis://localhost:6379 | | CND_REDIS_USERNAME | Redis username | | | CND_REDIS_PASSWORD | Redis password | | | CND_REDIS_TTL | Time-To-Live for cached object | 360000 | | CND_LOG_LEVEL | Logging level (debug, info, warn, error) | info |

Configuration Methods

  1. Environment Variables: Set directly in your environment
  2. Dotenv File: Create a .env file based on .env.example
  3. Docker Environment: Pass as environment variables to Docker

Usage & How It Works

  1. Interception: When a user clicks a Click'n'Load button on a website, instead of sending the encrypted package to the default CNL port (9666), it's sent to ClicknDebrid running on the same port.

  2. Decryption: ClicknDebrid decrypts the Click'n'Load package to extract the original links.

  3. Link Conversion: The extracted links are sent to configured debrid service (e.g., Real-Debrid) which returns unrestricted links with direct access to the files. This converts premium-only links into direct download links accessible at full speed.

  4. Forwarding: ClicknDebrid forwards these unrestricted links to your configured download manager (e.g., PyLoad, JDownloader, etc.).

  5. Storage: Package information and processing results are stored in Redis (or memory cache if Redis is disabled) for management via the admin interface.

Admin Interface

Access the admin interface at /admin to:

  • View all packages
  • Delete packages
  • Re-Process packages with debrid service
  • Re-Submit packages to your download manager

Development

# Start development server with hot reloading
npm run dev

# Build the production version
npm run build

# Run tests
npm test

# Format code
npm run format

# Run linter
npm run lint

Architecture

See Architecture Documentation for details on the project structure and components.

Contributing

  1. Fork the repository
  2. Create your feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes using conventional commits: git commit -m "feat: add amazing feature"
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.