Giraffe

A native functional ASP.NET Core web framework for F# developers. (by giraffe-fsharp)

Giraffe Alternatives

Similar projects and alternatives to Giraffe

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better Giraffe alternative or higher similarity.

Giraffe reviews and mentions

Posts with mentions or reviews of Giraffe. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-09-12.
  • Is there any advantage to using F# instead of C#?
    3 projects | reddit.com/r/dotnet | 12 Sep 2022
    If you have an interest in F#, I highly recommend diving in because (1) it has a ton of things you might learn to appreciate in C#; (2) it has things C# cannot have. I do like some of the suggestions people have made regarding mixing your code bases, but I'll also say that building, say, endpoint routing in Giraffe is (to repeat myself) easy, simple, and elegant.
    3 projects | reddit.com/r/dotnet | 12 Sep 2022
    Yep! Like this comment says, you'll have to sprinkle some |> ignore here and there for your startup. We use Giraffe for defining our endpoints; I actively like the explicitness of it, and I think ASP.NET Core's Minimal API's are a step in a great direction.
  • Targeting Node, Bun and Deno With F#
    10 projects | dev.to | 13 Jul 2022
    Bix is a micro-framework designed with F# in mind and that runs on both Deno and Bun! and in theory it also should even run in a service worker! (intercepting fetch requests) although I haven't tested that yet, it offers a general purpose handler that coupled with a set of route definitions it can bring a Giraffe/Saturn like framework to life in JavaScript runtimes which is incredibly awesome! useful? maybe not 😅, but awesome indeed. Let's see some code for it
  • If you were to create a Web API today from scratch how would you do it ?
    7 projects | reddit.com/r/dotnet | 2 Apr 2022
    Backend: Most likely it would be a toss between https://saturnframework.org or https://giraffe.wiki. They both combins the extremely good type system in F# combined with the ease of a minimal API.
  • Overriding JSON serializer in Giraffe
    2 projects | dev.to | 4 Jan 2022
    By default Giraffe, the framework which I use as a web server, uses Newtonsoft.Json to serialize results to JSON. However, for discriminated union, it generates quite a lot of JSON so I've switched to System.Text.Json which is built into newer versions of .Net Core. In combination with FSharp.SystemTextJson package allows serializing discriminated unions more gracefully. All we need is to decorate Branch type with JsonFSharpConverter(JsonUnionEncoding.BareFieldlessTags) attribute.
  • Introducing Giraffe.Htmx
    7 projects | dev.to | 26 Nov 2021
    Giraffe is a library that sits atop ASP.NET Core and allows developers to build web applications in a functional style; dotnet new giraffe is literally my starting point when I begin a new web application project. (Rather than write three more sentences filled with effusive praise, I’ll just leave it at that; it’s great.) It also provides a view engine (that builds upon Suave‘s “experimental” view engine) which uses an F# DSL to define HTML in a strongly-typed way. It has been incredibly efficient for a while, but with .NET’s work over the past two releases at improving performance, and Giraffe’s adoption of those techniques, it is lightning fast.
  • Show HN: F# web server in 3-4 lines of code
    8 projects | news.ycombinator.com | 5 Nov 2021
    Wrapping ASP.NET Core to be easier and more idiomatic with F# seems to be a common domain. Out of curiosity, did you look at any existing projects? If so, what was lacking from them that made you decide to write WebFrame?

    Giraffe: https://github.com/giraffe-fsharp/Giraffe

    8 projects | news.ycombinator.com | 5 Nov 2021
    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.

  • What I wish I knew when learning F#
    10 projects | news.ycombinator.com | 14 Oct 2021
    I was thinking as a strategy that would impact the way all libraries are build. In my example I posted above, there is no dotnet code showing. Its all abstracted. Libraries should create new APIs that are just wrappers around the dotnet library.

    Whereas, if you look at the examples in the Giraffe framework, you need to do a bunch of dotnet boilerplate. https://github.com/giraffe-fsharp/Giraffe#doing-it-manually

      open System
  • Minimal APIs at a glance in .NET 6
    6 projects | news.ycombinator.com | 13 Sep 2021
  • A note from our sponsor - Zigi
    www.zigi.ai | 2 Dec 2022
    Automate the mundane part of your day, with live actionable messages for your GitHub & Jira tasks. Learn more →

Stats

Basic Giraffe repo stats
16
1,843
1.8
11 days ago
Static code analysis for 29 languages.
Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
www.sonarqube.org