Haskell Servant

Open-source Haskell projects categorized as Servant

Top 23 Haskell Servant Projects

  • servant

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

    Project mention: An alternative front end for Haskell? | news.ycombinator.com | 2023-10-07

    > do you really have to understand language extensions?

    You do when your code doesn't compile and you're trying to figure out what the error message means, or when the library you want to use makes heavy use of it for even basic functionality.

    > These days one just enables GHC2021

    My experience was pre-GHC2021. I basically had to enable at a minimum 5-6 language extensions in every single file.

    > Mostly they're just about removing unnecessary restrictions from the older standard.

    Yeah, those ones are usually fine. I have zero objection to things like FlexibleInstances or DeriveFoldable.

    > Could you give an example?

    I believe I was trying to implement Central Authentication Service using Servant. However, that required returning a custom HTTP status code. There has been an open Github issue for this since 2017, but it seems to require basically rewriting the entire framework: https://github.com/haskell-servant/servant/issues/732

    Looking back at it now Servant does have "ServerError", but that basically requires giving up all the advantages Servant claims to have and I believe it was not a viable option at the time. Looking at the timeline I was probably also on Servant 0.15, and there seems to have been a rewrite since then.

    I vaguely recall running into a similar issue trying to interact with a database, but I can't remember the details of that.

  • cachix

    Command line client for Nix binary cache hosting:

  • LearnThisRepo.com

    Learn 300+ open source libraries for free using AI. LearnThisRepo lets you learn 300+ open source repos including Postgres, Langchain, VS Code, and more by chatting with them using AI!

  • Hakatime

    Wakatime server implementation & analytics dashboard

  • three-layer

    :three: :cake: Architecture of the Haskell web applications

  • telegram-api

    Telegram Bot API for Haskell

  • PolysemyCleanArchitecture

    Showcasing how the Polysemy library can be used to implement a REST application conforming to the guidelines of the Clean Architecture model.

    Project mention: What is the best web framework in the statically typed functional programming world? | /r/functionalprogramming | 2023-12-05

    Another benefit of its architecture is that it was easy to plug an algebraic effects library on it (Implementing Clean Architecture with Haskell and Polysemy).

  • stripe-core

    :moneybag: Stripe API (by dmjio)

  • WorkOS

    The modern API for authentication & user identity. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • servant-elm

    Automatically derive Elm functions to query servant webservices

  • servant-swagger

    Swagger for Servant

  • servant-purescript

    Translate servant API to purescript code, with the help of purescript-bridge.

    Project mention: Generating a purescript client based on Openapi description | /r/purescript | 2023-03-23

    PS as a plan B I've got servant-purescript (since the api's running on servant)

  • servant-generic

    Specify Servant routes with records

  • servant-checked-exceptions

    type-level errors for Servant APIs.

  • shopping-cart-haskell

    :gem: Haskell version of the Shopping Cart application developed in the book "Practical FP in Scala: A hands-on approach"

  • haskell-realworld-example

    A Haskell implementation of realworld.io

  • google-translate

    :secret: Google Translate API (by dmjio)

  • servant-response

    Moved to http://github.com/haskell-servant (by alpmestan)

  • servant-quickcheck

  • servant-openapi3

    OpenAPI 3.0 for Servant

  • github-webhooks

    Haskell types and instances for decoding GitHub webhook payloads.

  • line-bot-sdk

    🍥Haskell向けLINE Messaging API SDK

  • servant-router

  • servant-cli

    Generate a command line client from a servant API

  • slack-web

    Haskell bindings for the Slack web API

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-12-05.

Haskell Servant related posts


What are some of the best open-source Servant projects in Haskell? This list will help you:

Project Stars
1 servant 1,760
2 cachix 722
3 Hakatime 555
4 three-layer 301
5 telegram-api 198
6 PolysemyCleanArchitecture 186
7 stripe-core 174
8 servant-elm 162
9 servant-swagger 122
10 servant-purescript 105
11 servant-generic 87
12 servant-checked-exceptions 70
13 shopping-cart-haskell 66
14 haskell-realworld-example 51
15 google-translate 51
16 servant-response 50
17 servant-quickcheck 40
18 servant-openapi3 37
19 github-webhooks 34
20 line-bot-sdk 33
21 servant-router 33
22 servant-cli 29
23 slack-web 29
Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.