FSharp.SystemTextJson
Npgsql.FSharp
Our great sponsors
FSharp.SystemTextJson | Npgsql.FSharp | |
---|---|---|
3 | 7 | |
313 | 307 | |
- | - | |
6.6 | 3.1 | |
18 days ago | 2 months ago | |
F# | F# | |
MIT License | MIT License |
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.
FSharp.SystemTextJson
-
F# records and DUs to TypeScript types/classes via json
Likewise, it looks like it'll be a while before FSharp.SystemTextJson has Swagger integration too.
-
Why I'm using Falco instead of Saturn/Giraffe for F# Backend | StonkWatch
You can customize it with with https://github.com/Tarmil/FSharp.SystemTextJson
-
Making Http Requests in F#
Let's move on to the Json requests. In F# Json Serialization/Deserialization is an interesting topic because we're used so much to use things like Option, Result, Discriminated Unions and other F# specific constructs that sometimes they don't translate well to plain json or from plain json and that's why often F# libraries leave the that aspect out of scope to other libraries like Thoth.Json or FSharp.SystemTextJson. For now we'll fall back to the BCL and use the System.Text.Json namespace since we are only using primitive types in our model
Npgsql.FSharp
-
Idiomatic way to interact with database
When working with F#, my database layer code has always seemed ugly. It feels like functional languages don't pair well with storage. I've used F# with Dapper, EF, and Npgsql.FSharp. Although Npgsql.FSharp works well, I would still like to use something like EF since it handles inserts and updates so well.
-
Best practices F# API?
Not a big fan of ORMs in general, I've been using https://github.com/Zaid-Ajaj/Npgsql.FSharp for postgres.
- Data Access in Fsharp
-
Best resources for learning F# to write boring apps?
On Postgres, there's a decent low ceremony option by Zaid Ajaj: https://github.com/Zaid-Ajaj/Npgsql.FSharp
-
Recommended libraries / frameworks for web services
For database, I use PostgreSQL with https://github.com/Zaid-Ajaj/Npgsql.FSharp and I like it very much. Writing the services, I do hide database operations behind interfaces like
-
Making Http Requests in F#
Npgsql.FSharp
What are some alternatives?
Giraffe.Swagger - Auto generate an API documentation for Giraffe web applications using Swagger
SqlHydra - SqlHydra is a suite of NuGet packages for working with databases in F# including code generation tools and query expressions.
ClosedXML.SimpleSheets - Easily generate Excel sheets from F#
Dapper.FSharp - Lightweight F# extension for StackOverflow Dapper with support for MSSQL, MySQL, PostgreSQL, and SQLite
ply - High performance System.Threading.(Value)Task computation expressions for F#
Thoth.Json.Net
FsHttp - A lightweight F# HTTP library by @SchlenkR and @dawedawe
FSharp.Data.Npgsql - F# type providers to support statically typed access to input parameters and result set of sql statement in idiomatic F# way. Data modifications via statically typed tables.
AAD.fs - F# WebAPI endpoint protection based on Azure AD roles
TypeLitePlus
Falco - A toolkit for building fast and functional-first web applications using F#.