Our great sponsors
-
hkts
Discontinued Functional programming tools: option, either, task, state, optics, etc. (by nullpub)
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
We need to be able to generate json schema for our response types. This is done in jsonschema.
We need to be able to parse incoming json/xml/etc into typescript types. This is done or doable with the hkts decoder which is a partial port of io-ts.
We need to be able to parse the url string into a route like fp-ts-routing where we can pull out typed information like express does with routes like "/users/{userId}". Here is where you might be able to help. The goal is to build up route strings like we do with decoder but to type the output properly. Additionally, we'll need to generate openapi parameter specs from the same api that generates the parser.
Well, there is a project I've been putting off that you might take a stab at. I've been meaning to implement yet another webserver framework along the lines of dropshot. The basic idea with drop shot is to ditch the middleware approach and flatten out the framework. Some of the features that dropshot pushes are first class support for openapi (meaning specifications should be auto-generated from code) and to make the framework guide the developer towards not hiding parsing or functionality in a middleware that may or may not be wired up right (ie. did the body parser actually run?).