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. observed · 2026-08-28
Health v2 · maintenance only
93/100
- Activity 97
- Release rhythm 85
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 13
- age_days: 3268
- days_rel: 100
- days_push: 18
- n_releases_24m: 16
Adoption not part of the score
1361 stars · 37 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
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
library · maturity active
error-handling concurrency developer-tools programming-languages web-development browser bun cross-platform typescript functional-programming maybe result task monads null-safety async nodejs deno
5 sources
- readme: https://github.com/true-myth/true-myth · fetched 2026-08-28 · 34305d7f6133
- homepage: https://true-myth.dev · fetched 2026-08-29 · 9bfe971bcdbd
- site_page: https://true-myth.dev/guide/introduction · fetched 2026-08-29 · 18ab1092cfc3
- registry_npm: https://registry.npmjs.org/true-myth · fetched 2026-08-29 · 74b6d1076fa1
- site_page: https://true-myth.dev/api · fetched 2026-08-29 · ec17179b9780
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| true-myth/true-myth | main | 93 |
For agents
markdown · JSON · MCP: product_card(name="true-myth/true-myth")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem