Volver a las plantillas

Hono for Node.js

This example shows how to run Hono on Wasmer Edge as an HTTP server.

preview of Hono for Node.js

Hono for Node.js + Wasmer

This example shows how to run Hono on Wasmer Edge as an HTTP server.

Demo

https://<your-subdomain>.wasmer.app/ (deploy to get a live URL)

How it Works

  • server.js creates a Hono app and serves it with @hono/node-server.
  • This is the Node.js server variant; the WinterCG worker variant lives in skip-js-hono-wintercg.
  • Wasmer Edge runs the Node.js process and forwards HTTP traffic to the configured port.

Running Locally

npm install
npm start

Open http://127.0.0.1:8080/ to hit the server locally. Set PORT=... if you want to use a different port.

Deploying to Wasmer (Overview)

  1. Install dependencies and confirm the app starts locally.
  2. Deploy from this example directory with wasmer deploy.
  3. Visit https://<your-subdomain>.wasmer.app/ once the deployment is live.
Frameworkhono
Languagejavascript
Browse all templates →