# true-myth/true-myth

Safe and idiomatic TypeScript types to handle null, error, and async code handling: Maybe, Result, and Task types that are really nice.

Repository: https://github.com/true-myth/true-myth
Canonical: https://ross.abutalabs.com/products/true-myth
Homepage: https://true-myth.dev
Language: TypeScript
License: MIT
License Family: permissive
Topics: typescript, typescript-library, typescript-definitions, functional-programming, javascript, monads, functors, applicatives
Last push: 2026-08-15T21:36:12+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 85, longevity 100
- inputs: {"age_days": 3268, "days_push": 18, "days_rel": 100, "gap_med": 13, "n_releases_24m": 16}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1361, forks 37 (observed 2026-08-28T04:04:30.007113+00:00)

## What it is
True Myth is a TypeScript library providing type-safe Maybe, Result, and Task types for handling null values, errors, and async operations in a functional style. It offers well-tested wrappers and helper functions inspired by Rust's Option and Result types.

## Use cases
- avoid null and undefined errors in TypeScript
- handle errors with type safety instead of exceptions
- make async error handling explicit with a safer Promise
- adopt functional programming patterns like Maybe and Result in JavaScript
- model optional values explicitly in an API
- pipe data through composable transformations

## When to choose
- you want Rust-like Option and Result ergonomics in TypeScript
- your team struggles with null pointer errors and unhandled promise rejections
- you want a small, well-tested, zero-dependency functional core
- you prefer explicit error handling over try/catch exceptions

## When to avoid
- you prefer exception-based error handling idioms
- your project cannot use strict TypeScript with ES modules
- you need a full functional programming toolkit like fp-ts with advanced type-level features

## Facets
- artifact type: library
- maturity: active
- function: error-handling, concurrency
- domain: developer-tools, programming-languages, web-development
- platform: browser, bun, cross-platform
- tags: typescript, functional-programming, maybe, result, task, monads, null-safety, async, nodejs, deno

## Member repositories
- true-myth/true-myth (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:30.007113+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:41:36.680625+00:00, confidence not recorded.
  - readme: https://github.com/true-myth/true-myth (fetched 2026-08-28T04:04:30.007113+00:00, sha 34305d7f6133)
  - homepage: https://true-myth.dev (fetched 2026-08-29T11:59:42.025740+00:00, sha 9bfe971bcdbd)
  - site_page: https://true-myth.dev/guide/introduction (fetched 2026-08-29T11:59:42.038455+00:00, sha 18ab1092cfc3)
  - registry_npm: https://registry.npmjs.org/true-myth (fetched 2026-08-29T11:59:42.040375+00:00, sha 74b6d1076fa1)
  - site_page: https://true-myth.dev/api (fetched 2026-08-29T11:59:42.035215+00:00, sha ec17179b9780)
- Data as of 2026-08-30T08:39:29.467469+00:00.
