okapi
Suave.IO
okapi | Suave.IO | |
---|---|---|
4 | 5 | |
103 | 1,313 | |
1.9% | 0.3% | |
8.7 | 4.8 | |
4 months ago | about 2 months ago | |
Haskell | F# | |
BSD 3-clause "New" or "Revised" License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
okapi
-
Okapi: From Monad to Applicative
TL;DR - Okapi, a web framework that I started working on last year, now uses an Applicative instead of a Monad. This has made the framework a lot more consistent and easier to understand. It also makes it possible to automatically generate OpenAPI specifications from your endpoint definitions. It should be possible to generate clients as well, but I haven't worked on this yet. You can learn more at the new documentation website: https://okapi.wiki/. Would you use Okapi? What do you think? I'd love to hear it.
-
New server-side framework based on monadic parsing
Me showing off Okapi (hopefully): Okapi is simple. A functor can do this, applicative can do this, a monad can do this. Learn this small set of functions. Sequence them with do. Branch them with <|>. You need to learn the structure of an HTTP request, but that's good because you need to know that anyway if you want to develop Web apps. Here's the documentation. Look at how simple and compact this is compared to this.
Suave.IO
- The combined power of F# and C#
-
New server-side framework based on monadic parsing
This is cool. I just want to give a shoutout to Suave, which is the original inspiration for Giraffe, and is still my go-to web server in F#.
-
Building a Webpack alternative in F#
This shouldn't be that hard, I just needed a server that well... served the HTML/CSS/JS files right? I went to my desktop, created an F# script added a couple of libraries like Suave and CliWrap so I could call the dotnet fable command from my F# code and make it compile my Fable files.
-
Introducing Giraffe.Htmx
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.
- Suave 2.6.1 Released 🚀
What are some alternatives?
fastapi-realworld-example-app - Backend logic implementation for https://github.com/gothinkster/realworld with awesome FastAPI
Giraffe - A native functional ASP.NET Core web framework for F# developers.
nested-routes - Declarative, Compositional Url Handling for WAI
Saturn - Opinionated, web development framework for F# which implements the server-side, functional MVC pattern
wai-middleware-content-type - Route to different middlewares based on the incoming Accept header detected.
ASP.NET MVC
obelisk - Functional reactive web and mobile applications, with batteries included.
DotVVM - Open source MVVM framework for Web Apps
Freya - Freya Web Stack - Meta-Package
dotNetify - Simple, lightweight, yet powerful way to build real-time web apps.
IISNode - Hosting node.js applications in IIS on Windows
ASP.NET Core - ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.