# yangshun/lago

📕 Data Structures and Algorithms library in TypeScript and JavaScript

Repository: https://github.com/yangshun/lago
Canonical: https://ross.abutalabs.com/products/yangshun-lago
Language: TypeScript
License: MIT
License Family: permissive
Topics: algorithm, data-structures, javascript, typescript
Last push: 2024-05-09T00:49:12+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3352, "days_push": 847, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2871, forks 315 (observed 2026-08-28T04:07:27.135174+00:00)

## What it is
Lago is a collection of common data structures and algorithms implemented in TypeScript and JavaScript, published as an npm library. It serves primarily as an educational reference for learning and practicing data structures and algorithms, particularly for coding interview preparation.

## Use cases
- learn how to implement data structures like heaps, tries, and AVL trees in JavaScript
- study algorithm implementations such as Dijkstra's, merge sort, and binary search
- prepare for frontend coding interviews with reference implementations
- use simple data structure implementations in a JavaScript or TypeScript project
- practice reading well-tested algorithm code in TypeScript

## When to choose
- you want readable, educational implementations of classic data structures and algorithms in JavaScript/TypeScript
- you are preparing for coding interviews and want reference code
- you need lightweight implementations of stacks, queues, heaps, graphs, or sorting/searching algorithms

## When to avoid
- you need a production-grade, performance-optimized algorithms library with ongoing feature development
- you need data structures not covered here, such as segment trees or suffix trees
- you need a comprehensive library comparable to lodash or a full collections framework

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: developer-tools
- domain: education, developer-tools, programming-languages
- platform: -
- tags: data-structures, algorithms, interview-preparation, educational, typescript, javascript, nodejs

## Member repositories
- yangshun/lago (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:27.135174+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-30T07:35:52.562225+00:00, confidence not recorded.
  - readme: https://github.com/yangshun/lago (fetched 2026-08-28T04:07:27.135174+00:00, sha e7678109ec22)
  - registry_npm: https://registry.npmjs.org/lago (fetched 2026-08-29T09:51:52.421214+00:00, sha 70f9eb7ad7fe)
- Data as of 2026-08-30T08:39:29.467469+00:00.
