Generate Typescript from Servant API

This page summarizes the projects mentioned and recommended in the original post on /r/haskell

Our great sponsors
  • Onboard AI - Learn any GitHub repo in 59 seconds
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • SaaSHub - Software Alternatives and Reviews
  • servant-ts

    See the docs and live playground here

    I googled how to do this, and found It doesn't seem to be on Stackage however. How do I work around this, or does another package exist?

  • stack2cabal

    Convert stack projects to cabal.project + cabal.project.freeze

    run stack2cabal --no-pin-ghc (there are binaries here)

  • Onboard AI

    Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at

  • servant

    Main repository for the servant libraries — DSL for describing, serving, querying, mocking, documenting web applications and more!

    I asked a somewhat relevant question recently. Maybe you'll find this discussion somewhat helpful:; two packages were talked about. One of the folks from Well Typed replied, and said they tried it recently (and worked fine).

  • servant-typescript

    TypeScript client generation for Servant

    You can find it on Hackage and GitHub.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts