See the docs and live playground here
I googled how to do this, and found https://github.com/smaccoun/servant-ts. It doesn't seem to be on Stackage however. How do I work around this, or does another package exist?
Convert stack projects to cabal.project + cabal.project.freeze
run stack2cabal --no-pin-ghc (there are binaries here)
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 www.getonboard.dev.
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: https://github.com/haskell-servant/servant/issues/1547; two packages were talked about. One of the folks from Well Typed replied, and said they tried it recently (and worked fine).
TypeScript client generation for Servant
You can find it on Hackage and GitHub.
An alternative front end for Haskell?
3 projects | news.ycombinator.com | 7 Oct 2023
Any open source projects to contribute to for beginners
8 projects | /r/haskell | 13 Feb 2023
My Module Structure Does Not Feel Haskell-like
2 projects | /r/haskell | 13 Dec 2022
Question: Servant with NamedRoutes and Swagger
1 project | /r/haskell | 25 Nov 2022
Monthly Hask Anything (November 2022)
3 projects | /r/haskell | 1 Nov 2022