@rexeus/typeweaver-core
v0.10.2
Published
Runtime utilities and shared types to drive type-safe API definitions. Powered by Typeweaver 🧵✨
Maintainers
Readme
🧵✨ @rexeus/typeweaver-core
Typeweaver is a type-safe HTTP API framework built for API-first development with a focus on developer experience. Use typeweaver to specify your HTTP APIs in TypeScript and Zod, and generate clients, validators, routers, and more ✨
📝 Core Package
Core runtime and authoring types for typeweaver. This package provides the HTTP primitives, functional spec helpers, validators, and error types that all generators and plugins build on. Generated code imports these runtime utilities.
📥 Installation
npm install @rexeus/typeweaver-core💡 How to use
This package is typically consumed by generated code. You also use it when authoring specs via
defineSpec, defineOperation, and defineResponse. To get started with generation, see
@rexeus/typeweaver.
🔧 What It Provides
- HTTP primitives:
HttpMethod,HttpStatusCode,IHttpRequest,IHttpResponse,ITypedHttpResponse. - Spec authoring:
defineSpec,defineOperation,defineResponse,defineDerivedResponse— the functional API for declaring your API contracts. - Type guards:
isTypedHttpResponsefor runtime discrimination of typed response objects. - Validation:
IRequestValidator,IResponseValidator, plusRequestValidationErrorandResponseValidationErrorwith structured issues. - Utilities:
UnknownResponseErrorfor unrecognized responses.
This package does not ship framework adapters. Use plugins like @rexeus/typeweaver-hono or
@rexeus/typeweaver-aws-cdk for routers/integrations.
📄 License
Apache 2.0 © Dennis Wentzien 2026
