Learn how to automatically generate type-safe API clients from curl commands using three tools: curl-to-json-schema converts curl commands into OpenAPI schemas, massimo-cli generates type-safe client code from those schemas, and massimo provides the runtime library. The guide covers the complete workflow from capturing network requests to production-ready clients with TypeScript support, validation, and error handling. Includes practical examples for reverse engineering APIs, documentation-driven development, incremental schema discovery, and both Node.js and browser-based implementations.
Table of contents
Permalink The Problem: APIs Without TypesPermalink The Solution: A Three-Step PipelinePermalink Step 1: Generate OpenAPI Schema from curl CommandsPermalink Step 2: Generate Type-Safe Client with massimo-cliPermalink Frontend Client UsagePermalink Real-World WorkflowsPermalink Advanced: Custom Client ConfigurationPermalink Comparison: Before and AfterPermalink Best PracticesPermalink TroubleshootingPermalink ConclusionPermalink ResourcesPermalink Try It NowSort: