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 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 editorJavaScript 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
Write your code in
main.jsabove. - 2 Press Run. It runs with Node.js and the output appears in the terminal.
-
3
Need a package? Run
npm install package-namein the terminal. - 4 Building a server? Start from the Express or Fastify project and press Run to open the live preview.
Node.js example projects
Report Card
Turn command-line arguments like CS101=78 into a formatted report card.
Open in PlaygroundMatrix Calculator
Add, multiply, invert and solve matrices across CommonJS modules.
Open in PlaygroundKitchen Rush Simulation
A busy restaurant simulated with EventEmitters, timers and promises.
Open in PlaygroundBook Exchange API (Express)
A REST API and page for swapping used course books.
Open in PlaygroundConnect Four Online (Fastify)
Multiplayer rooms, chat and a minimax computer player.
Open in PlaygroundTeamBoard Project Manager
Accounts, roles, a drag-and-drop task board and an activity feed.
Open in PlaygroundOnline 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 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.