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

ironrdp-wasm

v1.0.1

Published

WebAssembly build of Marc-André Moreau's IronRDP library for web RDP clients

Readme

IronRDP WASM

This project compiles Marc-André Moreau's IronRDP Web client to WebAssembly (WASM) for use in web projects. It provides a JavaScript module that can be imported into web applications to enable RDP connectivity.

What it is

  • ironrdp-wasm is a WebAssembly build of the IronRDP library, specifically the ironrdp-web crate created by Marc-André Moreau.
  • This package simply compiles the existing IronRDP Rust code to WebAssembly - all credit for the RDP implementation goes to the original IronRDP project.
  • It allows web applications to connect to RDP servers directly from the browser.
  • Combined with lib/rdp-proxy.js (now in the example folder), it provides a complete RDP client solution for web.

Installation

npm install ironrdp-wasm

Usage

import { init, SessionBuilder } from 'ironrdp-wasm';

// Initialize the WASM module
await init();

// Create a session
const session = new SessionBuilder()
  .withUsername('user')
  .withPassword('pass')
  .withDomain('domain')
  .withHost('rdp-server.example.com')
  .build();

// Connect
await session.connect();

Prerequisites

Before building this project, ensure you have the following installed:

Rust Toolchain

Install Rust using rustup:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Add the WebAssembly target:

rustup target add wasm32-unknown-unknown

wasm-pack

Install wasm-pack for building Rust-generated WebAssembly packages:

cargo install wasm-pack

Node.js and npm

Install Node.js (version 16 or later) from nodejs.org or using a version manager like nvm.

Building

To build the WASM module from source:

  1. Clone the repository:

    git clone https://github.com/electerm/ironrdp-wasm.git
    cd ironrdp-wasm
  2. Install dependencies:

    npm install
  3. Build the WASM module:

    npm run build

This command runs wasm-pack build --target web --out-dir pkg --release, which:

  • Compiles the Rust code in src/lib.rs to WebAssembly
  • Generates JavaScript bindings in the pkg/ directory
  • Optimizes the WASM binary for production

The build output will be in the pkg/ folder, containing:

  • rdp_client.js - JavaScript bindings
  • rdp_client_bg.wasm - The compiled WebAssembly module
  • rdp_client.d.ts - TypeScript definitions

Development

For development builds (with debug symbols):

wasm-pack build --target web --out-dir pkg --dev

To clean the build:

rm -rf pkg/

Example

See the example/ folder for a complete demo application that includes:

  • A web-based RDP client UI (index.html)
  • A WebSocket proxy server (server.js) for handling RDP connections
  • Proxy utilities (lib/rdp-proxy.js)

To run the example:

  1. Install example dependencies:

    cd example
    npm install
    cd ..
  2. Build the WASM module (if not already built):

    npm run build
  3. Start the example server:

    npm run example

Then open http://localhost:8080 in your browser.

API

The module exports all functions and classes from the IronRDP Web API. Refer to the IronRDP documentation for detailed API reference.

Credits

This package is a WebAssembly compilation of Marc-André Moreau's IronRDP library. All RDP protocol implementation and core functionality is from the original IronRDP project. This package simply provides the build tooling and JavaScript bindings to make IronRDP available for web projects.

License

MIT