Matechs Effect
  • How to use Effect!
  • Core
    • The Effect System
    • Play with Effect
    • Play with Environment
    • Play with Exit
    • Play with Ref
    • Play with Queue
    • Play with Managed
    • Play with Semaphore
    • Play with Streams
  • HTTP
    • The HTTP Client Module
    • The Express Module
    • The RPC Module
Powered by GitBook
On this page
  • Getting Super Powers
  • Installation
  • License
  • Notes
  • Project Config

Was this helpful?

How to use Effect!

And write better end to end software, so you can sleep at night!

NextThe Effect System

Last updated 5 years ago

Was this helpful?

Getting Super Powers

You will aquire knowledge on how to build software in a purely functional manner, you will leverage a particular kind of algebraic effects called environmental effects in order to structure your code in a better way enabling you to test each individual component in an isolated way and making your modules reusable and composable.

We are not cheating, neither using magic tricks! By leveraging functional programming principles we have developed a set of libraries that enrich the ecosystem with the functionalities that you may find in a library like in the Scala ecosystem.

The latest development in the core TypeScript language allow us to take environment usage even further compared to what ZIO can achieve, namely TypeScript has a very good support for intersection types and this makes environment usage wonderful.

Installation

So let's get the superpowers, bootstrap a new yarn project and install basic dependencies:

$ mkdir my-project
$ yarn init -y
$ yarn add @matechs/aio
$ yarn add -D typescript

Note that @matechs/aio (all-in-one) includes all the required dependencies plus a rich set of optional libraries like io-ts, morphic-ts, newtype-ts, monocle-ts that makes development in typescript extremely productive

License

The library is released with under MIT license and the codebase is fully open-source at:

As with any good library there is a commercial project that support the development and maintainance, if you want to know more find us at we are a digital accelerator looking for smart founders & projects to build!

Notes

Docs are meant to be only for introduction to the architecture but are still outdated, for proper usage refer to the test & demo packages in each package in the github repo.

Project Config

You will need to bootstrap a classic npm package with TypeScript configured in "strict" mode.

fp-ts
ZIO
https://github.com/Matechs-Garage/matechs-effect
https://www.matechs.com/