seamapi / edgespec

☃️ an API framework for everywhere.
MIT License
5 stars 2 forks source link
maintained

☃️ edgespec

EdgeSpec is an opinionated HTTP framework for TypeScript. Out of the box, it:

EdgeSpec primarily targets the common minimum API described by WinterCG, but it can also target Node.js, Bun, and Deno. Currently, the two main "edge"/WinterCG-compatible platforms targeted are Cloudflare Workers and Vercel Edge Functions.

Regardless of your target, EdgeSpec provides a consistent API and encourages emulation of the WinterCG runtime when developing.

Getting Started

To start a new project:

npm create edgespec@latest # [soon]

npm run dev

If you want to add EdgeSpec to an existing project, check out this recipe

Usage

Alternatives

EdgeSpec may not be the right choice for your project. This list is not exhaustive, but here are some alternatives: