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-wsl-exec

v1.0.0

Published

A n8n node to execute commands in a WSL2 container from a Windows-based n8n instance.

Readme

n8n WSL Exec Node

This community node for n8n allows you to execute commands within a Windows Subsystem for Linux (WSL2) container directly from your n8n workflow. It is designed to be run on an n8n instance hosted on a Windows machine.

Features

  • Execute any command inside a specified WSL container.
  • Automatically discovers and lists available WSL containers.
  • Set a starting directory for your command.
  • Provide arguments for your command.
  • Stream stdout and stderr back to the n8n workflow.
  • Ability to execute tasks under different users such as root, www-data, etc (leave blank for default user).
  • Supports all WSL distros

Installation

  1. Go to Settings > Community Nodes in your n8n instance.
  2. Select Install.
  3. Search for n8n-nodes-wsl-exec and click Install.

Configuration

  • WSL2 Container: Choose from a dropdown list of automatically detected WSL containers, or manually type the name of the container.
  • Start Directory: The directory where the command should be executed. Defaults to ~/ (the user's home directory).
  • Command: The command to execute (e.g., ls, echo "Hello", python3).
  • Arguments: Any arguments to pass to the command, separated by spaces (e.g., -l -a, my_script.py --verbose).
  • Ignore Startup Output: If your .bashrc or other shell startup scripts produce output (like neofetch), enable this option to ignore it and only capture the output of the command itself.

Requirements

  • Windows 10 or Windows 11 with n8n installed on the host machine. n8n should not be installed in a container
  • Windows Subsystem For Linux (WSL/WSL2) Installed and at least one WSL instance setup

Example Usage

To run a Python script inside a WSL container named Ubuntu:

  1. Set WSL2 Container to Ubuntu.
  2. Set Command to python3.
  3. Set Arguments to /path/to/your/script.py.

The node will output the stdout, stderr, and exitCode from the executed command.

Source Code

The source code for this node is available on GitHub: https://github.com/KeithIMyers/n8n-wsl-exec