Run JavaScript
with Web APIs

Limo runs JavaScript in a browser environment with full Web API support, right from your terminal.

A DOM, right in your terminal.

Create elements, handle events, and query a browser document.

const button = document.createElement("button");
button.textContent = "Click me";
button.addEventListener("click", () => {
  console.log("Hello from the DOM!");
});
document.body.append(button);

button.click();
console.log(document.querySelector("button").outerHTML);
limo dom.js
Example output
Hello from the DOM!
<button>Click me</button>

Explore more Web APIs in our examples.

Get Limo

Linux and macOS:

curl -fsSL https://github.com/Spxg/limo/releases/latest/download/limo-installer.sh | sh

Windows:

irm https://github.com/Spxg/limo/releases/latest/download/limo-installer.ps1 | iex

Follow the installer's PATH instructions, then run a script:

limo dom.js
Read the documentation