# montagejs/collections

This package contains JavaScript implementations of common data structures with idiomatic interfaces.

Repository: https://github.com/montagejs/collections
Canonical: https://ross.abutalabs.com/products/montagejs-collections
Homepage: http://www.collectionsjs.com
Language: JavaScript
License: NOASSERTION
License Family: other
Last push: 2023-11-08T10:56:19+00:00

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

## Adoption (not part of the score)
Stars 2091, forks 185 (observed 2026-08-28T04:06:12.500294+00:00)

## What it is
A JavaScript library providing implementations of common data structures such as lists, sets, maps, splay trees, and LRU caches with idiomatic, observable interfaces. It works in Node.js and browsers via CommonJS loaders or a standalone script tag.

## Use cases
- look up values by arbitrary keys in JavaScript
- use an LRU cache that evicts least recently used entries
- observe changes to collections reactively
- keep a collection sorted automatically
- use sets and maps that work with object keys in older JavaScript environments

## When to choose
- you need specialized data structures (splay trees, LRU/LFU caches, observable collections) in Node or the browser
- you need a consistent generic method interface across different collection types
- you must support older JavaScript runtimes lacking native Map/Set

## When to avoid
- you only need native Map, Set, or Array features available in modern JavaScript
- you want a library under active development with frequent updates
- you need strongly typed or immutable collections

## Facets
- artifact type: library
- maturity: maintenance
- function: serialization
- domain: developer-tools
- platform: browser, cross-platform
- tags: data-structures, collections, observable-collections, lru-cache, splay-tree, commonjs, algorithms, nodejs

## Member repositories
- montagejs/collections (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:12.500294+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-30T02:55:33.785955+00:00, confidence not recorded.
  - readme: https://github.com/montagejs/collections (fetched 2026-08-28T04:06:12.500294+00:00, sha d6a759e850bf)
  - homepage: http://www.collectionsjs.com (fetched 2026-08-29T10:35:38.180357+00:00, sha bed341c63e2f)
  - registry_npm: https://registry.npmjs.org/collections (fetched 2026-08-29T10:35:38.189211+00:00, sha e5d3e867ffe8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
