toss

es-toolkit: Modern JavaScript Utility Functions

es-toolkit is a TypeScript-first JavaScript utility library built for smaller bundles and performance in modern environments. Use it for everyday helpers or as a compatibility-oriented alternative when replacing Lodash.

View on GitHub Compare
Stars
11.4k
Forks
623
Stars, last 30 days
+32

Our take

Health score

68/100

How it is scored
Activity
78
Community
86
Issues
54
Pull requests
53

+32 stars in the last 30 days

  • Merges more pull requests than 85% of the projects we track
  • More contributors than 78% of the projects we track

Project history

Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

11,398

Forks

641

Change since Nov 17, 2026: +1 stars·+1 forks

Overview

es-toolkit is a collection of JavaScript utility functions, including helpers for arrays, objects, math, promises, and function behavior. It addresses the need for commonly used utilities without requiring a large general-purpose dependency in application bundles.

It is suited to TypeScript and JavaScript projects that value tree shaking, typed APIs, and modern runtime performance. Its compatibility package can also help teams migrate code that relies on Lodash.

Key Features

  • Everyday utilities such as chunk, sum, pick, delay, and debounce.
  • Tree-shaking support to include only the functions a project uses.
  • TypeScript support and type guards such as isNotNil.
  • A compatibility layer at es-toolkit/compat for replacing Lodash APIs.
  • Performance-oriented implementations for modern JavaScript environments.
  • Agent Skills for AI coding tools, with installation instructions in the project documentation.

Use Cases

  • Frontend developers can use individual helpers while keeping shipped JavaScript bundles lean through tree shaking.
  • TypeScript teams can standardize common operations with typed utility functions and type guards.
  • Teams replacing Lodash can assess the compatibility layer as a migration path.
  • Application developers can avoid writing and maintaining small, recurring helpers for arrays, objects, timing, and math.

Getting Started

Install from npm:

npm install es-toolkit

See the README for usage, compatibility, and other installation details.

Considerations

  • The compatibility layer is a separate import path, so check its documented coverage before planning a Lodash replacement.
  • Bundle-size and performance benefits depend on which functions are imported and the project’s runtime and build setup.
  • The repository provides a library rather than an application, so users need a JavaScript or TypeScript project and package setup.

Found this useful?

Share it with someone who would like es-toolkit.