es-toolkit README

The project's README from github.com/toss/es-toolkit. As one markdown file: README.md.

es-toolkit · MIT License codecov NPM badge JSR badge Discord Badge

English | 한국어 | 简体中文 | 日本語

es-toolkit is a state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

Examples

// import from '@es-toolkit/es-toolkit' in jsr.
import { chunk, debounce } from 'es-toolkit';

const debouncedLog = debounce(message => {
  console.log(message);
}, 300);

// This call will be debounced
debouncedLog('Hello, world!');

const array = [1, 2, 3, 4, 5, 6];
const chunkedArray = chunk(array, 2);

console.log(chunkedArray);
// Output: [[1, 2], [3, 4], [5, 6]]

AI Integration

es-toolkit provides Agent Skills for AI coding tools like Claude Code, Cursor, and Copilot.

npx skills add toss/es-toolkit

For Claude Code, you can also install via the plugin marketplace:

/plugin marketplace add toss/es-toolkit
/plugin install es-toolkit@es-toolkit-plugin

For more details, see the AI Integration guide.

Contributing

We welcome contributions from everyone in the community. Read below for a detailed contribution guide.

CONTRIBUTING

License

MIT © Viva Republica, Inc. See LICENSE for details.

Toss

es-toolkit (toss/es-toolkit)

Searching Database…

What is this?A modern, high-performance JavaScript utility library — everyday helper functions with a small bundle size and strong types. The README calls it a major upgrade to lodash.
Is this a fork of lodash, or its own library?Its own standalone library with modern implementations, not a fork. For migration there is a separate entry, es-toolkit/compat — a complete compatibility layer that lets you seamlessly replace Lodash.
How do I add it to my project?Install the npm package (npm install es-toolkit) and import only the functions you use — tree shaking is supported out of the box, cutting bundle size by up to 97% versus other libraries.
Will it drag a pile of other packages into node_modules?No. The package has zero runtime dependencies, so installing it is the entire setup.
Which utilities does it include?Everyday helpers such as debounce, delay, chunk, sum and pick, written as modern implementations of the functions you know from lodash-style libraries.
How much faster is it than lodash, really?The README claims 2-3x better performance in modern JavaScript environments. It is battle-tested with 100% test coverage, and popular open-source projects like Storybook, Recharts, ink and CKEditor rely on it.
How is the TypeScript support?First-class: types are built in and described as straightforward yet robust, and useful type guards such as isNotNil come bundled.
Can AI coding assistants help me use it?Yes — es-toolkit ships Agent Skills for AI coding tools like Claude Code, Cursor and Copilot, and Claude Code users can also install them via the plugin marketplace.
What are similar projects?ramda, lollipop-css, rxjs, sharp, date-fns, hono, million, hooks
Creator
toss
Size
20.8 MB
Stars
11.4K
Age
2y
Commits · 90 Days