Skip to content

Instantly share code, notes, and snippets.

@christophemarois
Last active February 21, 2024 15:44
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christophemarois/3da087e523a7fa32d3afe7e57c26b022 to your computer and use it in GitHub Desktop.
Save christophemarois/3da087e523a7fa32d3afe7e57c26b022 to your computer and use it in GitHub Desktop.

TS/JS go-to libs

Updated Jan 2024. For looking up trending newer alternatives, use npmtrends. For Nodejs, nodejstoolbox a precompiled list of trends by category.

Universal

Standard libs

Standard libs extend the runtime with convenience helpers, structures and patterns.

Mixed

System runtimes

React

Testing

CLIs

Recipes

What stdlib to choose

In order, use:

  1. FxTS for async/sync piping, helpers and patterns
  2. modern-async for the synchronization patterns with extras: attempt, js-sdsl
  3. radash/just to fill in the blanks

Reducing time complexity

  • Use data structures from js-sdsl;
    • For optimizing search complexity, OrderedSet and OrderedMap can provide boosts to intersection/difference operations even when identity-sorted on an alphanumeric ID.
    • For optimizing mutability, Stack, Queue, PriorityQueue, LinkList and Deque
  • Use FxTS for operations on sets. All common array operations + lodash-alikes are supported

Online tools

Dev tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment