MCPcopy Index your code
hub / github.com/Yomguithereal/mnemonist

github.com/Yomguithereal/mnemonist @0.40.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.40.4 ↗ · + Follow
356 symbols 959 edges 174 files 118 documented · 33% 10 cross-repo links updated 2mo ago0.40.4 · 2026-04-30★ 2,42564 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Build Status

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

Low-level & structures for very specific use cases

Information retrieval & Natural language processing

Space & time indexation

Metric space indexation

Probabilistic & succinct data structures

Utility classes


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 git@github.com:Yomguithereal/mnemonist.git
cd mnemonist
npm install

# Linting
npm run lint

# Running the unit tests
npm test

License

MIT

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 223
Class 110
Method 19
Interface 4

Languages

TypeScript100%

Modules by API surface

vector.d.ts24 symbols
multi-map.d.ts20 symbols
experiments/critbit.js14 symbols
heap.js12 symbols
passjoin-index.js9 symbols
fibonacci-heap.js9 symbols
benchmark/misc/hashmap.js9 symbols
test/vp-tree.js7 symbols
symspell.js7 symbols
suffix-array.js6 symbols
heap.d.ts6 symbols
fibonacci-heap.d.ts6 symbols

For agents

$ claude mcp add mnemonist \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page