Show HN: Schema Gateway v0.1 – type-safe API gateway with metrics

  • Posted 15 hours ago by iCeGaming
  • 1 points
https://github.com/AncientiCe/schema-gateway
Hi HN!

A few weeks ago I shared Schema Gateway, a small API gateway I built to enforce type-safe APIs with schema-driven routing and validation. At the time, it was mainly about reducing boilerplate and keeping strong API contracts across microservices.

Since then, I hit a wall in debugging issues in production—even with type safety, requests were failing silently or services were misbehaving. That forced me to build full metrics and observability, so now the gateway exposes:

Request/response counts by endpoint

Validation failures per service

Latency and error tracking for each route

The v0.1 release also formalizes the schema-driven design into a stable package. The goal is still the same: let the schema define the API surface, not handwritten validators, but now you can actually see what’s happening in real time.

Some lessons learned along the way:

Type safety is not enough – without metrics, bugs in downstream services can silently break your API contracts.

Observability + schema-first is surprisingly lightweight – you can automatically generate dashboards without extra code in your services.

Schema-first helps enforce contracts – but real confidence comes from seeing traffic and failures in production.

Repo & docs: https://github.com/AncientiCe/schema-gateway

I’d love feedback on:

API patterns you’ve found useful for schema-driven systems

Approaches to lightweight observability in microservices

Pitfalls I might not have noticed

Thanks for checking it out!

0 comments