hoa-jshoa-jsOfficialยท1 Agent Skills Included

hoa

Build lightweight web servers and APIs for any JavaScript runtime

Builds HTTP servers, APIs, and edge functions with a minimal, zero-dependency web framework based on standard Fetch APIs. Runs the same code on Cloudflare Workers, Deno, Bun, Vercel, AWS Lambda, and Node.js without rewriting or adapters. Provides Koa-style middleware, request parsing, response building, and error handling in a 4.4KB package.
npx skills add hoa-js/hoa --all -g -y

All Skills in This Repository (1)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install Hoa?โ–ผ

Run `npx skills add hoa-js/hoa --all -g -y` in your terminal to install this skill globally for your coding agent.

What is the Hoa web framework?โ–ผ

Hoa is a minimal, zero-dependency JavaScript web framework built on standard Fetch APIs, inspired by Koa and Hono. It lets you write middleware-based HTTP servers in about 4.4KB of code.

Which runtimes does Hoa support?โ–ผ

The same Hoa code runs on Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, AWS Lambda, Lambda@Edge, and Node.js 20 or later with no changes.

Does Hoa include a built-in router?โ–ผ

No. You branch on ctx.req.method and ctx.req.pathname directly, or add an official router middleware like @hoajs/router.

How do I handle errors in a Hoa app?โ–ผ

Use ctx.throw(status, message) or ctx.assert(condition, status) to raise HTTP errors, and override app.onerror to customize the error response.

Related Repositories in Software Engineering

View All in Software Engineeringโ†’