nma.sh/ docs

JavaScript Runtime & Web APIs

Every JavaScript app runs inside its own dedicated microVM with a modern JS runtime, Web standard APIs, and core Node.js modules—built once, snapshotted, and restored on demand.

Handler formats

Both concise serve() and standard Workers-style module exports work identically:

js
// Style 1: serve()
serve(async (req) => {
  const body = await req.json();
  return Response.json({ ok: true, got: body });
});

// Style 2: ES module default export
export default {
  async fetch(request, env, ctx) {
    return new Response("ok");
  }
};

Supported Web & Node APIs

Outbound fetch()

Call any public https:// API (Stripe, Resend, OpenAI, Slack/Discord webhooks, GitHub, Telegram):

Not a fit for nma.sh