Rajt (v0.0.106, pre-1.0) is a TypeScript-native, fully typed serverless framework (not a runtime) that acts as a bundler layer for AWS Lambda (Node.js ≥18, LLRT) and Cloudflare Workers. It provides a router, middleware, and type-safe request/response handling with zero external runtime dependencies. Its key differentiators: single interface across Lambda and Workers, tree-shakable bundler integration, and strict typing that catches misconfigurations at compile time. Active development with frequent releases; not stable yet. Consider alternatives like @aws-lambda-powertools, Hono, or Itty Router for production.
npm install rajtVerified import paths — ran on the pinned version, not inferred.
Creates a basic HTTP server using Rajt's router and exports the handler for AWS Lambda or Cloudflare Workers.
Lock version and watch changelog. Do not use for production-critical applications.
Call app.use(router) instead of router.use(middleware).
Import types: import { LambdaContext } from 'rajt/types/aws';Test thoroughly on LLRT; file issues if missing features.
Return a standard Response object, e.g., new Response(body, { status: 200 }).Ensure package.json has 'type': 'module' and use import syntax. Node.js >=18 required.
Use app.use(router) on the Rajt instance.
Import and use types from 'rajt/types/aws' as type assertion.
Switch to ESM syntax: import { Rajt } from 'rajt'.No dependency data recorded yet.