Show HN: F# web server in 3-4 lines of code

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • Giraffe

    A native functional ASP.NET Core web framework for F# developers.

    You don't have to use asp.net directly in F# - there's been a long-standing library wrapping it in a more functional aesthetic with Giraffe: https://github.com/giraffe-fsharp/Giraffe

    Not to discourage you or anything - always good to see alternatives. Personally, for FP web programming, the closer to the "your server as a function" ideal the better - so I'd prefer Giraffe in this case, for things like the router being an HttpHandler instead of being a property on the app. It's just way more intuitive from an FP standpoint and produces neater, more self-contained code, IMO.

  • wiz

    The F# web framework designed for clarity and speed (by samueleaton)

    > Every time I tried to write something quickly, I often had to choose between a heavily functional programming oriented frameworks or extremely tedious ASP.NET Core.

    I had the exact same sentiment last year. made https://wiz.run/

    I hated going through all the microsoft dotnet docs. Wanted something like this: https://wiz.run/api/

  • WorkOS

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

  • WebFrame

    F# framework for rapid prototyping with ASP.NET Core.

  • Saturn

    Opinionated, web development framework for F# which implements the server-side, functional MVC pattern

  • Falco

    A toolkit for building fast and functional-first web applications using F#. (by pimbrouwers)

  • dark

    Darklang main repo, including language, backend, and infra

    This is really nice. For comparison, this is what using ASP.NET directly in F# is like:

    https://github.com/darklang/dark/blob/main/fsharp-backend/sr...

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