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

amule-ec

v2.25.0

Published

TypeScript client library for aMule's binary External Connections (EC) protocol

Readme

amule-ec

CI codecov npm License: GPL v3 Node

A from-scratch TypeScript client for aMule's binary "External Connections" (EC) protocol - the protocol amuled exposes for remote control (the same one amulecmd, amuleweb and the aMule GUI use).

Zero runtime dependencies - only Node built-ins (node:net, node:crypto, node:zlib, node:events, node:util, node:timers/promises).

Status

All 88 EC opcodes are wrapped. See CHANGELOG.md for release history and TODO.md for open items.

Usage

import * as ec from "amule-ec";

const { port, passwordHash } = /* read from amuled's own amule.conf, [ExternalConnect] section */;

await ec.ECEngine.start({ host: "localhost", port, passwordHash });

const downloads = new ec.Downloads(ec.ECEngine.connection);
await downloads.fetch();
console.log(downloads.files);

ECEngine has no filesystem access of its own and no opinion on where port/passwordHash come from - reading amule.conf is the caller's responsibility.

Observability

Connection loss and failed reconnect attempts are always logged to stderr via console.error/console.log - no opt-in needed. Everything else (wire framing, opcode dispatch, per-request results) is silent by default and opt-in per topic via Node's built-in NODE_DEBUG env var, one topic per feature class, all under the amule-ec: prefix (e.g. amule-ec:downloads, amule-ec:preferences).

NODE_DEBUG=amule-ec:downloads node app.js   # trace only Downloads
NODE_DEBUG=amule-ec:*         node app.js   # trace everything

Development

npm install
npm run lint                     # tsc --noEmit + eslint
npm run build                    # emits dist/ (JS + .d.ts)
npm run test          # mocha
npm run test:coverage # mocha + v8 coverage report

# Interactive REPL against a real local amuled (reads ~/.aMule/amule.conf directly -
# the library itself never touches the filesystem, see ECEngine's doc)
npm run repl
# or via the VS Code launch config "repl" (tests/repl/main.ts), e.g. argv "show dl"

Testing the package locally before publishing

npm run build
npm pack                         # produces amule-ec-<version>.tgz

Then, from another project:

npm install /path/to/amule-ec-<version>.tgz

This installs exactly what a real consumer would get from the npm registry (respecting files/package.json).

Contributing

Bug reports and pull requests are welcome - see CONTRIBUTING.md for the development workflow and CODE_OF_CONDUCT.md for the project's expectations of contributors.

License

GPL-3.0-or-later. See LICENSE.txt.