Git Product home page Git Product logo

matechs-effect's Introduction

Introduction

codecov.io

Matechs Effect is a typescript library inspired by scala's ZIO and Haskell's RIO architecture.

Docs at https://mikearnaldi.github.io/matechs-effect/

It aims to provide a strong foundational block to build typescript code in a more testable and standardized way.

This library is composed at its core by the @matechs/effect package that exposes:

  • trifunctor Effect<R, E, A>, istances effectMonad & concurrentEffectMonad
  • trifunctor Managed<R, E, A>, istances managedMonad
  • trifunctor Stream<R, E, A>, instances streamMonad

You can think of this types as a computations that requires an environment R to run.

Interesting integrations and usage examples can be found in

  • packages/orm
  • packages/http
  • packages/rpc
  • packages/tracing
  • packages/express
  • packages/graceful
  • packages/rxjs
  • packages/effect
  • packages/epics

Details

For details about the additional types and overloads please refer to documentation in packages/effect

Notes

This package is a work in progress syntax and functions might change, feedback are welcome and contributions even more!

Ecosystem

  • @matechs/orm : provides integration with typeorm
  • @matechs/http : provides integration with axios
  • @matechs/rpc : no boilerplate rpc for your effects
  • @matechs/tracing : provides integration with opentracing-js
  • @matechs/express: provides integration with express
  • @matechs/graceful : utility to handle graceful exit
  • @matechs/rxjs : provides integration with rxjs
  • @matechs/effect : core provides Effect, Managed, Stream, Ref, Queue, Semaphore
  • @matechs/epics : provides integration with redux-observable

Thanks

This library would have not been feasibly possible without the strong foundations of fp-ts and Waveguide from which we have forked the base bifunctor and execution runtime, huge thanks to the Authors.

This library was initially based on Fluture, huge thanks to the Authors.

Another huge thanks goes to both the scala community (ZIO in specific) and the haskell community (RIO & Polysemy) from which inspiration is taken.

All of the above projects are advised!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.