Spiceflow is a lightweight, type-safe API framework for building web services using modern web standards, featuring Zod validation, OpenAPI spec generation, and Fern support for documentation and SDKs.
Spiceflow is a lightweight API framework designed for building web services with type safety and modern web standards. It leverages Zod for schema validation and can generate OpenAPI specifications for your routes. Native Fern support enables documentation and SDK generation.
Key features include Model Context Protocol (MCP) support for LLM integration, type-safe RPC client generation, and async generator support for server-sent events (SSE). The framework uses standard web Request and Response objects, offering a modular design with .use()
for sub-app mounting and base path support.
Spiceflow simplifies API development by automatically serializing route handler outputs to JSON. It provides utilities for handling requests with body schemas and defining response schemas. The framework also supports middleware for tasks like error handling, request logging, and response modification. It can be used to generate Fern docs and SDKs.
remorses/spiceflow
July 24, 2023
March 26, 2025
TypeScript