basarat/typescript-collections
A generically typed set of collections for use with TypeScript observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4864
- days_rel: n/a
- days_push: 1329
- n_releases_24m: 0
Adoption not part of the score
1206 stars · 153 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A complete, fully tested data structure library written in TypeScript with generic typing. It provides classic collections such as linked lists, dictionaries, binary search trees, stacks, queues, sets, bags, heaps, and priority queues, plus array utility functions.
Use cases
- use typed dictionaries and sets in TypeScript
- need a priority queue or binary heap in a TypeScript project
- replace plain JS objects with strongly typed collections
- use data structures in both Node.js and the browser
- get intellisense-checked collection element types
When to choose
- you want generic, compiler-checked data structures in TypeScript
- you need common structures like BST, heap, queue, or multi-dictionary out of the box
- you want a small MIT-licensed dependency usable via npm or UMD script tag
When to avoid
- you need high-performance or immutable/persistent data structures
- your project uses modern JS without TypeScript and doesn't benefit from generics
- you need structures beyond the included set, like graphs or tries
Facets
library · maturity maintenance
developer-tools developer-tools programming-languages browser cross-platform data-structures typescript collections generics npm-package algorithms nodejs
2 sources
- readme: https://github.com/basarat/typescript-collections · fetched 2026-08-28 · 8636e5bd1ccb
- registry_npm: https://registry.npmjs.org/typescript-collections · fetched 2026-08-29 · 303d11e4c35e
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| basarat/typescript-collections | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="basarat/typescript-collections")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem