I created a package that adds Rust-like features to TypeScript

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • result

    A TypeScript result type taking cues from Rust's Result and Haskell's Either types (by badrap)

  • I'm using https://github.com/badrap/result for this purpose right now. I'll have to take a closer look at the API to see how your library differs, but I skimmed through the README and it looked promising. Good stuff :)

  • ts-results

    A typescript implementation of Rust's Result object.

  • This looks fantastic! I’ve been using the types from ts-results in a project for work and it’s been so nice, but I’ve been getting frustrated by the outdated documentation and lack of responses to PRs that have been opened. I was considering writing one of these libraries myself, but this looks like a perfect replacement!

  • 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.

    SurveyJS logo
  • dbg-expr

    A helper for evalutating and logging an expression at the same time.

  • functional-conditionals

    A library for writing if / else if / else in a functional way.

  • oxide.ts

    Rust's Option<T> and Result<T, E>, implemented for TypeScript.

  • neverthrow

    Type-Safe Errors for JS & TypeScript

  • You might also be interested in neverthrow https://github.com/supermacro/neverthrow

  • fp-ts

    Functional programming in TypeScript

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts