universal-javascript-runtimes

Explain building universal JavaScript across Node.js, Cloudflare Workers, Deno, and Bun.

35|5|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/Kinfe123/fm-skills --skill universal-javascript-runtimes
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: universal-javascript-runtimes
Source: https://github.com/Kinfe123/fm-skills/tree/main/universal-javascript-runtimes
Command: npx skills add https://github.com/Kinfe123/fm-skills --skill universal-javascript-runtimes

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill clarifies how to write JavaScript that runs across diverse runtimes (Node.js, Cloudflare Workers, Deno, Bun, and other edge/serverless environments) by embracing web standards and adapters, eliminating runtime fragmentation.

Core Features & Use Cases

  • Web standards-based portability: Use Fetch, Request, Response, URL, Streams, and Web Crypto to write code that works on all target runtimes.
  • Adapters and polyfills: Leverage Nitro/H3 style adapters and unenv polyfills to bridge differences between server and edge environments.
  • Use cases: Build cross-runtime APIs, edge functions, and universal libraries that deploy to cloud functions, edge networks, and traditional servers.

Quick Start

Create a minimal universal app using Nitro and H3, choose a target preset (Node.js, Cloudflare, Deno, or Bun), and implement a basic HTTP handler that uses web standards. Then integrate unenv polyfills where necessary and test across supported environments.

Frequently Asked Questions about universal-javascript-runtimes

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write JavaScript that runs on both Node.js and Cloudflare Workers?▼

Universal runtimes use web standards APIs like Fetch, Request, Response, and Streams to execute JavaScript consistently across Node.js, Deno, Bun, and edge environments, eliminating runtime fragmentation.

How do I use Nitro and H3 to build cross-runtime serverless backends?▼

Create a minimal app with Nitro and H3, choose a target preset like Cloudflare or Deno, implement an HTTP handler using web standards, and apply unenv polyfills to bridge server and edge environment differences.

Can I use Node.js modules in edge functions with unenv polyfills?▼

Yes, unenv polyfills bridge differences between server and edge environments, allowing you to adapt Node.js specific module behaviors for cross-runtime code execution in edge functions and serverless backends.

What are the limitations of using web standards APIs for cross-runtime apps?▼

While web standards provide portability across diverse runtimes, you may encounter environment-specific constraints requiring unenv polyfills and Nitro/H3 adapters to bridge functionality gaps between edge networks and traditional servers.

Does Bun support the same web standards APIs as Deno and Vercel?▼

Universal JavaScript leverages shared web standards like Web Crypto, URL, and Streams to ensure code works across Bun, Deno, and Vercel, using adapters to normalize any remaining runtime execution differences.