Run the starter to see a real HTTP page. Click its API link to navigate. Simple console programs show their output in Console.
IdlePress Run. No npm install is needed for the starter.
Node.js runtime & usage
Edit index.js and Run. The starter imports greeting.js and opens an HTTP server on port 3000. The preview requests that server inside the browser runtime and renders its response in an isolated frame. Local links make new GET requests; local CSS and JavaScript files can be included. Dynamic browser fetch calls and external assets are blocked in this response preview. Use + to add files, Options to choose another entry point. A console-only program needs no server. Save local keeps files on this device; Export downloads the project.
Experimental WebContainer environment. Requires a supported browser, cross-origin isolation and applicable provider access/licensing. This lab runs Node’s built-in modules without npm installs. Custom npm dependencies are not automatically installed here. It does not execute code on Sukoaa’s web server.
Node.js online compiler
About this Node.js compiler
Run Node.js in your browser using WebContainers. Start an HTTP server, view its page and test API routes. This runtime is experimental and needs a supported browser with HTTPS.
What you can try
- Create an HTTP server with node:http
- Import local ES modules
- Send GET and POST requests to your routes
- Read console output and exit codes
Node.js exercises and challenges · Coding practice · All online compilers
Frequently asked questions
Why does it not start in my browser?
It needs HTTPS, cross-origin isolation and a supported browser. Some privacy settings or extensions block it.
Can I run npm install?
Not in this lab. It supports Node’s built-in modules only.
Does code run on a server?
No. It executes in your browser.
Is it limited?
Projects are limited to 100 KB and requests to a few seconds.