A Schema-First, Post Only Alternative to Restful API
A Schema-First, Post Only Alternative to Restful API
Hello HN, I am a fan of schema-first API design. I’ve always built APIs by writing Open API Spec by hand and generating server models and client SDKs to get E2E type safety across my server and clients. Writing the spec by hand is a painful process, and setting up CI/CD pipelines or CLIs to run code generation can be time-consuming. So I decided to build a POST request-based, RPC-like, non-Restful API format that treats schema-first design as the first class citizen. My vision is a web app that allows a team of developers to write API spec in the browser with automatic version control. The app would re-generate code every time there is a change in the spec right in the browser for developers to copy and paste into their editor instantly. It will also provide a way to publish the generated code to some package registry for installations. I’ve built a POC to showcase editing the spec and generating code in the browser, and I’d love to invite you all to try it out and leave your feedback!
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Incorrect prediction on native model
Similar products
Vbare – a simple alternative to Protobuf for schema evolution
QDeferred – Alternative for Qt C++ Threading API
Pidove, an Alternative to the Java Streams API
Cara – Capnproto Alternative RPC API
Percona Migrator – online MySQL schema migrations in Rails
GraphQL simple schema stitching with pseudofragments
GDSerialize: Godot 4 schema-based serializer
Schema-enforced AI extraction API with confidence scoring
Enforced, Annotated Schema for Ruby Sequel Models
Schema → live production API in under 5 minutes.