ErrorScript

Typed Errors in TypeScript

Explicit error handling in TypeScript without verbosity and complexity.

Effective Error Handling

Effect is great. t not only gives missing errors-as-values but also provides production-ready architecture.

It deserves all the love and praise, but it is undeniable that it forces you to adopt it entirely if you want to benefit from it and trade simplicity for robustness.

And that's the price you have to pay to get typed errors. Or have you?

ErrorScript offers a simpler alternative that utilizes the blazing fast Oxc compiler and statically analyzes every function call and figures out the exact errors it can throw.

It sounds impossible, and there's a reason why nobody has achieved it so far, but it actually can be done. In fact, I did it.

Currently ErrorScript is in the prototype stage, but it is already apparent that it will work. All that's left is a ton of work, but nowadays it's not a problem, right?

Interested? Contact me on X.

Sasha