haskell-servant/servant
Servant is a Haskell DSL for describing, serving, querying, mocking, documenting web applications and more! observed · 2026-08-28
Health v2 · maintenance only
77/100
- Activity 99
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4292
- days_rel: n/a
- days_push: 11
- n_releases_24m: 0
Adoption not part of the score
1966 stars · 426 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Servant is a Haskell DSL for describing web APIs at the type level, from which servers, clients, mocks, and documentation can be derived. It lets you define an API once and automatically get type-safe serving, querying, mocking, and documenting of that API.
Use cases
- build a type-safe REST API server in Haskell
- generate API clients from a single API definition
- auto-generate API documentation from code
- mock a web service for testing
- define an API once and derive server and client
- serve a JSON web service with compile-time route checking
When to choose
- you write Haskell and want compile-time guarantees that server and client match the API
- you want to derive documentation, clients, and mocks from one API type
- you value type-level correctness for routing and serialization
When to avoid
- you need a framework in a non-Haskell language
- your team is not comfortable with advanced Haskell type-level programming
- you want a batteries-included framework with built-in ORM and templating
Facets
framework · maturity active
web-framework api-framework http-server http-client routing mock-api api-documentation type-system web-development backend apis developer-tools cli type-level-dsl rest haskell code-generation openapi web-server
1 source
- readme: https://github.com/haskell-servant/servant · fetched 2026-08-28 · 0b8fc2b6c263
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| haskell-servant/servant | main | 77 |
For agents
markdown · JSON · MCP: product_card(name="haskell-servant/servant")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem