Skip to content
VUBuddy
Node.js · npm · Express · Fastify

Online JavaScript Compiler (Node.js)

Run JavaScript with Node.js right in your browser. See console output instantly, install npm packages, and build Express or Fastify servers you can open in a live preview.

  • Free
  • Nothing to install
  • No sign-up
  • Debugger
  • Terminal
  • IntelliSense
Run Ctrl+Enter

Run opens your code in the VUBuddy Playground in a new tab, with a terminal and a debugger.

Building a web page with HTML and CSS? Use the HTML, CSS & JS editor

JavaScript with a full Node.js runtime

Node.js in your browser

Run scripts with real Node.js 22, including fs, http, events and timers.

npm and pnpm

Install any package from the terminal and require or import it straight away.

Express and Fastify

Start a server and open it in the live preview. Test your routes and JSON APIs without deploying.

Terminal input

Programs that read from the keyboard wait for you to type, like they would in a local terminal.

Debugger

Breakpoints, stepping and variable inspection for Node.js code.

ES modules or CommonJS

Use import or require, whichever your course or project needs, with IntelliSense throughout.

How to run JavaScript online

  1. 1 Write your code in main.js above.
  2. 2 Press Run. It runs with Node.js and the output appears in the terminal.
  3. 3 Need a package? Run npm install package-name in the terminal.
  4. 4 Building a server? Start from the Express or Fastify project and press Run to open the live preview.

Node.js example projects

Node.js Beginner

Report Card

Turn command-line arguments like CS101=78 into a formatted report card.

Open in Playground
Node.js Beginner

Matrix Calculator

Add, multiply, invert and solve matrices across CommonJS modules.

Open in Playground
Node.js Intermediate

Kitchen Rush Simulation

A busy restaurant simulated with EventEmitters, timers and promises.

Open in Playground
Node.js Intermediate

Book Exchange API (Express)

A REST API and page for swapping used course books.

Open in Playground
Node.js Full app

Connect Four Online (Fastify)

Multiplayer rooms, chat and a minimax computer player.

Open in Playground
Node.js Full app

TeamBoard Project Manager

Accounts, roles, a drag-and-drop task board and an activity feed.

Open in Playground

Online Node.js or install it?

Feature Installing Node.js VUBuddy Playground
Setup Download Node.js, set up an editor, fix PATH Opens in a few seconds
npm packages Yes Yes, in the built-in terminal
Run a server localhost on your computer Live preview in the page
Debugger Needs editor setup Included
Cost Free Free
For VU students

For web projects and CS619

Build the back end of your final year project with Express or Fastify and test it before you deploy.

Keyboard shortcuts

Action Shortcut
Run Ctrl+Enter
Start debugging or continue Ctrl+\
Toggle breakpoint Ctrl+B
Step over Ctrl+'
Step into Ctrl+;
Step out Ctrl+Shift+;
Stop debugging Ctrl+Shift+\

On a Mac, use ⌘ in place of Ctrl. Run and debugging never use F-keys, because browsers keep them for themselves.

Questions about the online JavaScript compiler

What's the difference between this and the browser console?

The browser console runs one snippet at a time on a web page. Here you get a real Node.js runtime with files, npm packages, terminal input and a debugger.

Can I install npm packages?

Yes. Run npm install (or pnpm add) in the terminal.

Can I run an Express server online?

Yes. Start from the Express web server project and press Run. It installs Express and opens the live preview.

Does it support import / ES modules?

Yes. Use ES modules or CommonJS.

Is there a debugger?

Yes: breakpoints, stepping and variable inspection.

Which Node.js version is it?

Node.js 22, a long-term support (LTS) release.

Is it free?

Yes, completely free. There's no sign-up and no account: open the page and start coding.

Is this a JavaScript compiler or a Node.js compiler?

Both. JavaScript is the language and Node.js is what runs it outside a web browser. Your code runs on Node.js, so anything that works with node on your own computer works here.

Can I connect to a database?

Yes. Install mysql2 for MySQL or better-sqlite3 for SQLite with npm, then browse your tables in the built-in database viewer.

More free coding tools