{"library":"spiceflow","title":"Spiceflow","type":"library","description":"Spiceflow is a TypeScript-first API framework for building type-safe RPC web applications. Version 1.18.0 is the current stable release. It provides a simple, composable API for defining routes, middleware, and error handling with full end-to-end type safety via inferred request and response schemas. Key differentiators include automatic OpenTelemetry integration, server timing headers, type-safe form data parsing, and support for Cloudflare Workers, Vercel, and Node.js environments. It is compatible with the Model Context Protocol SDK and ships its own TypeScript definitions. Release cadence is frequent, with multiple pre-release versions.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install spiceflow"],"cli":null},"imports":["import { Spiceflow } from 'spiceflow'","import { json } from 'spiceflow'","import { parseFormData } from 'spiceflow'"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":"https://spiceflow.dev","github":"https://github.com/remorses/spiceflow","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/spiceflow","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import { Spiceflow, json } from 'spiceflow';\nimport { z } from 'zod';\n\nconst app = new Spiceflow()\n  .get('/hello', () => {\n    return json({ message: 'Hello, world!' })\n  })\n  .post('/echo', async ({ request }) => {\n    const body = await request.json();\n    return json(body, { status: 201 });\n  });\n\n// Start the server (assumes Node.js or Bun)\napp.listen(3000, () => {\n  console.log('Server running on http://localhost:3000');\n});","lang":"typescript","description":"Shows how to create a basic Spiceflow app with two routes, using the json helper for typed responses and Zod for optional schema validation.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}