Framework for building type-safe web APIs with JavaScript
Top 99.7% on sourcepulse
Instant API is a JavaScript framework for building type-safe web APIs, designed to eliminate the need for separate schema validation libraries. It targets developers building APIs, especially those integrating with LLMs, by automatically generating OpenAPI specifications from JSDoc comments and offering first-class support for Server-Sent Events (SSE) and LLM function calling.
How It Works
Instant API leverages JSDoc comments within JavaScript functions to define API endpoints, parameters, and return types. This approach enforces type safety directly at the HTTP interface, automatically generating OpenAPI (JSON/YAML) and JSON schemas. For LLM integrations, it supports SSE for streaming responses and JSON schema output for function calling.
Quick Start & Requirements
npm i instant.dev -g
instant init
instant serve
or npm start
instant.dev
CLI for project generation and deployment.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The project's license is not clearly stated in the README, which could be a concern for commercial adoption. While it mentions six years of development, it also refers to itself as an "early release."
2 weeks ago
Inactive