Typera helps you build backends in a type-safe manner by leveraging io-ts and some TypeScript type inference magic. It works with both Express and Koa.

Features

  • A purer approach to building your apps: Each route handler is an async function that takes a request and returns a response
  • Automatically parses request inputs like route params, query params, headers and request body into typed values
  • Infer the types of responses (status code, body, headers), allow type checking them according to your expectations
  • Middleware are fully typed. This means that you no longer have to guess what's available in req, or whether a middleware short-circuits and returns a response. Instead, everything is type checked
  • It's straightforward to start adding fully typed routes to an existing Express or Koa app. Old routes can be migrated gradually
  • Built-in support for automatically generating an OpenAPI definition from your app with typera-openapi

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow typera

typera Web Site

Other Useful Business Software
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of typera!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Frameworks

Registered

2024-01-11