The web is constantly moving forward, that’s why we didn’t want to support old technologies and want to present you only the new releases. Meet the next one! Marble.js is a functional reactive HTTP framework on top of Node.js. Let’s go briefly through the main important things that the newest release introduces.
Marble.js is a functional reactive HTTP framework built on top of Node.js platform, TypeScript and RxJS.
- The core concept of Marble.js assumes that almost everything is a stream. The main building block of the whole framework is an Effect, which is just a function that returns a stream of events. Version 2.0 brings an experimental, type-safe, pipeable API for building HTTP routes that can be optionally used in place of
- From version 2.0, Marble.js introduces a Context — an abstraction over Reader monad.
- Besides the improved way of how the piped data type is inferred inside Effects, the newest release introduces brand new @marblejs/middleware-io package which is deeply integrated with a nifty gcanti io-ts library.
- Body parsing middleware is even more powerful than before. The previous implementation was very basic, limited and it was almost impossible to define custom parsers for given Content-Types.
Find out more detailed and complex use cases here. Keep an eye on that!
And we would like to expand this topic by the description of 58 Node.js meetups that will definitely help you to find out more. Enjoy!
p.s. We believe that you’ll manage to visit at least one of them!