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

jdownloader-connect

v1.0.8

Published

JDownloader client for Node.js and Browser, written in TypeScript.

Downloads

47

Readme

jdownloader-connect

npm version npm downloads License: MIT GitHub stars GitHub issues Build Status TypeScript

A modern TypeScript/JavaScript client for MyJDownloader API

jdownloader-connect is a powerful and easy-to-use library that allows you to interact with JDownloader2 remotely through the MyJDownloader service. Control your downloads, manage link grabber, and monitor your JDownloader instances from Node.js applications or web browsers.

✨ Features

  • 🚀 Modern TypeScript/JavaScript API - Fully typed with excellent IDE support
  • 🌐 Cross-platform - Works in Node.js and modern browsers
  • 🔐 Secure Authentication - Uses MyJDownloader's official encryption protocols
  • 📱 Device Management - List and control multiple JDownloader instances
  • 🔗 Link Management - Add links, manage downloads, and control the link grabber
  • Promise-based - Modern async/await support
  • 🛡️ Type Safety - Complete TypeScript definitions included

📦 Installation

Using npm

npm install jdownloader-connect

Using yarn

yarn add jdownloader-connect

Using pnpm

pnpm add jdownloader-connect

🚀 Quick Start

import connectMyJDownloader from "jdownloader-connect";

async function main() {
	// Connect to MyJDownloader
	const { listDevices, disconnect } = await connectMyJDownloader({
		email: "[email protected]",
		password: "your-password",
	});

	try {
		// Get available devices
		const devices = await listDevices();
		console.log(`Found ${devices.length} device(s)`);

		// Use the first available device
		const device = devices[0];

		// Add links to the link grabber
		await device.linkGrabberAddLinks({
			links: "https://example.com/file.zip",
		});

		console.log("Links added successfully!");
	} finally {
		// Always disconnect when done
		await disconnect();
	}
}

main().catch(console.error);

📚 API Reference

Connection

connectMyJDownloader(options)

Establishes a connection to MyJDownloader service.

Parameters:

  • email (string): Your MyJDownloader email
  • password (string): Your MyJDownloader password
  • appKey (string, optional): Application key (default: "myjdownloader-api-key")
  • apiVer (number, optional): API version (default: 1)

Returns: Promise<MyJDownloaderApis>

Device Management

listDevices()

Lists all available JDownloader devices connected to your account.

Returns: Promise<Device[]>

reconnect()

Reconnects to the MyJDownloader service (useful for handling session timeouts).

Returns: Promise<void>

disconnect()

Cleanly disconnects from the MyJDownloader service.

Returns: Promise<void>

Link Management

device.linkGrabberAddLinks(options)

Adds links to the link grabber.

Parameters:

  • links (string): URLs to add (space or newline separated)
  • packageName (string, optional): Package name for grouping
  • extractPassword (string, optional): Password for archives
  • priority (string, optional): Download priority
  • downloadPassword (string, optional): Download password
  • destinationFolder (string, optional): Destination folder
  • comment (string, optional): Comment for the links

Returns: Promise<void>

device.linkGrabberQueryLinks(query?)

Queries links in the link grabber.

Parameters:

  • query (CrawledLinkQuery, optional): Query parameters for filtering

Returns: Promise<CrawledLink[]>

device.downloadsQueryLinks(query?)

Queries active/completed downloads.

Parameters:

  • query (LinkQuery, optional): Query parameters for filtering

Returns: Promise<DownloadLink[]>

⚙️ Requirements

  • Node.js: 18.0.0 or higher
  • Browser: Modern browsers with Web Crypto API support
    • Chrome 63+, Firefox 57+, Safari 11.1+, Edge 79+
    • Requires HTTPS context for Web Crypto API usage

Platform Compatibility Details

This library requires the following APIs across all platforms:

  • Web Crypto API (crypto.subtle) - for encryption and authentication
  • Fetch API (fetch) - for HTTP requests
  • TextEncoder/TextDecoder - for UTF-8 encoding/decoding
  • URLSearchParams - for URL parameter handling

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some 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 MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Thanks to the JDownloader team for providing the MyJDownloader API
  • Inspired by the need for a modern, type-safe JDownloader client

📞 Support


Note: This library is not officially affiliated with JDownloader. It's a community-created client for the MyJDownloader API.