🟢 Node.js Playground

Write Node.js code below and click Run. Everything runs in your browser — nothing is sent to our servers. No signup, no install, no nonsense.

🟢

Node.js can't run inline (yet)

Some languages need a real compiler or runtime that doesn't fit in a browser. But you can run Node.js instantly on these free platforms:

Sample Node.js code:

Node.js example
// Express API endpoint
const express = require('express');
const app = express();

app.get('/users/:id', async (req, res) => {
    const user = await db.users.findById(req.params.id);
    res.json(user);
});

Try these Node.js examples

Click any example to load it into the editor:

A note on this playground

Code runs in your browser using open-source engines (Pyodide for Python, native JS for JavaScript, AlaSQL for SQL). Nothing is sent to OneCity's servers. No accounts, no tracking. If you save your work, copy-paste it somewhere else — refreshing the page resets the editor.