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

n8n-nodes-remote-desktop

v2.0.24

Published

n8n node for Remote Desktop automation - single Action node with auto-session

Readme

n8n-nodes-remote-desktop

Custom n8n nodes for automating remote desktops via the Remote Desktop Client API.

Nodes

Remote Desktop Session

Manages the lifecycle of remote desktop sessions.

Operations:

  • Start: Create a new session with optional configuration
  • Info: Get session details, status, and executed actions
  • Close: Close session and cleanup resources (stops recordings, kills processes)

Remote Desktop Action (Sync)

Execute a single action immediately within a session.

  • Waits for the action to complete
  • Returns the action result
  • Supports all available actions (app, screen, system, playwright)

Remote Desktop Action (Async)

Build and execute action workflows using a builder pattern.

Operations:

  • Add Action: Queue an action for later execution (accumulated in workflow data)
  • Execute: Run all queued actions, optionally waiting for completion

Installation

For Development

cd n8n_nodes
npm install
npm run build

Link to n8n

# In this directory
npm link

# In your n8n installation
npm link n8n-nodes-remote-desktop

For Production

# In your n8n custom nodes directory
npm install /path/to/n8n_nodes

Usage

Sync Workflow Example

[Session: Start] → [Action Sync: app.launch] → [Action Sync: screen.screenshot] → [Session: Close]
  1. Session (Start): Creates a new session, outputs sessionId
  2. Action Sync: Picks up sessionId automatically, executes action
  3. Action Sync: Chains another action in the same session
  4. Session (Close): Closes session and cleans up resources

Async Builder Workflow Example

[Session: Start] → [Action Async: Add] → [Action Async: Add] → [Action Async: Execute] → [Session: Close]
  1. Session (Start): Creates session
  2. Action Async (Add): Adds first action to queue
  3. Action Async (Add): Adds second action to queue
  4. Action Async (Execute): Sends all queued actions, waits for completion
  5. Session (Close): Cleanup

Available Actions

Actions are fetched dynamically from the API. Categories include:

  • app.*: Application management (launch, close, list)
  • screen.*: Screen recording and screenshots
  • system.*: System info, stats, wait
  • playwright.*: Browser automation (navigate, click, fill, etc.)

Configuration

Credentials

Set up the Remote Desktop API credentials:

  1. In n8n, go to CredentialsNew
  2. Search for "Remote Desktop API"
  3. Enter your API URL (e.g., http://localhost:8000)
  4. Test the connection (calls /health endpoint)

Session Options

When starting a session, you can configure:

  • Max Action Retries: Number of retry attempts per action (default: 3)
  • Retry Delay: Seconds between retries (default: 1)
  • Action Timeout: Default timeout per action in seconds (default: 60)

Data Flow

Each node preserves data from previous nodes and adds its own output:

// After Session (Start)
{ sessionId: "abc123", status: "idle" }

// After Action Sync (app.launch)
{ sessionId: "abc123", pid: 1234, success: true, lastAction: {...} }

// After Action Sync (screen.screenshot)  
{ sessionId: "abc123", pid: 1234, filename: "shot.png", lastAction: {...} }

The sessionId flows through automatically, so you don't need to manually wire it.

Development

# Install dependencies
npm install

# Generate action properties (requires API to be running)
# Set REMOTE_DESKTOP_API_URL if API is not on localhost:8000
REMOTE_DESKTOP_API_URL=http://your-api:8000 npm run generate:properties

# Build (automatically runs generate:properties first)
npm run build

# Watch mode
npm run dev

# Lint
npm run lint
npm run lint:fix

Building Action Properties

The nodes use build-time property generation to create dynamic form fields for each action. This means:

  1. At build time, the generate:properties script fetches all actions from your API
  2. Generates TypeScript code with properties for each action parameter
  3. Properties are shown/hidden based on selected action using displayOptions

To regenerate properties:

# With API running on localhost:8000
npm run generate:properties

# With custom API URL
REMOTE_DESKTOP_API_URL=http://your-api:8000 npm run generate:properties

The generated file nodes/RemoteDesktop/generated-action-properties.ts is committed to git so builds work without requiring the API to be available.

License

MIT