Skip to content

Instantly share code, notes, and snippets.

@christophemarois
Last active December 18, 2024 15:08
Show Gist options
  • 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 Aug 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. Use these two in order

  • FxTS functional stdlib with async pipe. Basically, async fp lodash, tree shakable, iterator-based with lazy eval.
  • es-toolkit stdlib; direct lodash successor
  • attempt for retry logic

Others too fill some missing utilities:

Mixed

System runtimes

React

Testing

CLIs

SaaS

  • Payments: Lemon Squeezy, Stripe, Paddle

Recipes

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

Selfhosted tools

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