Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

mnemonist

> 编程语言
Open source

Curated collection of data structures for the JavaScript/TypeScript language.

2.4K stars0 likes1 views
WebsiteGitHub

About

Curated collection of data structures for the JavaScript/TypeScript language.

Mnemonist

Mnemonist is a curated collection of data structures for the JavaScript language.

It gathers classic data structures (think heap, trie etc.) as well as more exotic ones such as Buckhard-Keller trees etc.

It strives at being:

  • As performant as possible for a high-level language.
  • Completely modular (don't need to import the whole library just to use a simple heap).
  • Simple & straightforward to use and consistent with JavaScript standard objects' API.
  • Completely typed and comfortably usable with Typescript.

Installation

npm install --save mnemonist

Documentation

Full documentation for the library can be found here.

Classics

  • Heap
  • Linked List
  • LRUCache, LRUMap
  • MultiMap
  • MultiSet
  • Queue
  • Set (helpers)
  • Stack
  • Trie
  • TrieMap

Low-level & structures for very specific use cases

  • Circular Buffer
  • Fixed Deque
  • Fibonacci Heap
  • Fixed Reverse Heap
  • Fixed Stack
  • Hashed Array Tree
  • Static DisjointSet
  • SparseQueueSet
  • SparseMap
  • SparseSet
  • Suffix Array
  • Generalized Suffix Array
  • Vector

Information retrieval & Natural language processing

  • Fuzzy Map
  • Fuzzy MultiMap
  • Inverted Index
  • Passjoin Index
  • SymSpell

Space & time indexation

  • Static IntervalTree
  • KD-Tree

Metric space indexation

  • Burkhard-Keller Tree
  • Vantage Point Tree

Probabilistic & succinct data structures

  • BitSet
  • BitVector
  • Bloom Filter

Utility classes

  • BiMap
  • DefaultMap
  • DefaultWeakMap

Note that this list does not include a Graph data structure, whose implementation is usually far too complex for the scope of this library.

However, we advise the reader to take a look at the graphology library instead.

Don't find the data structure you need? Maybe we can work it out together.

Contribution

Contributions are obviously welcome. Be sure to lint the code & add relevant unit tests.

# Installing
git clone [email protected]:Yomguithereal/mnemonist.git
cd mnemonist
npm install

# Linting
npm run lint

# Running the unit tests
npm test

License

MIT

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptdata-structure

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言