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
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • Scout APM - Less time debugging, more time building
  • OPS - Build and Run Open Source Unikernels
  • 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/

  • SonarLint

    Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.

  • 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

    Functional-first toolkit for building brilliant ASP.NET Core applications using F#. (by pimbrouwers)

  • dark

    Client, backend, and services for Dark: https://darklang.com

    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