@streetjs/edge adapts a StreetApp to serverless and edge runtimes by mapping
each platform’s request shape to a Web Fetch Request, dispatching through
handleEdgeRequest, and converting the Response back to the platform result.
Platform
Adapter
Status
Tests
AWS Lambda (API Gateway v1 + v2)
createLambdaHandler(app)
VERIFIED
lambda.test.ts (5)
Azure Functions (v4 HTTP)
createAzureHandler(app)
VERIFIED
cloud-adapters.test.ts (3)
Google Cloud Functions (HTTP)
createGcfHandler(app)
VERIFIED
cloud-adapters.test.ts (3)
Cloudflare Workers / Vercel Edge / Deno Deploy
handleEdgeRequest(request, app)
VERIFIED
adapter.test.ts (3)
All adapters are dependency-free (no aws-sdk, @azure/functions, or
functions-framework runtime dependency) and accept minimal structural request
types, so they are testable without the cloud runtime installed.
AWS Lambda
1
2
3
4
5
import{streetApp}from'streetjs';import{createLambdaHandler}from'@streetjs/edge';constapp=streetApp();app.use(async (ctx)=>ctx.json({ok:true}));exportconsthandler=createLambdaHandler(app);// API Gateway v1 or v2