shortkit

18/01/2026 • 1 min read

shortkit is a set of tiny JavaScript utilities, published one package per job.

The rule

Every package follows the same constraints:

  • One job. A package does one thing. If you need two, you install two.
  • No dependencies. Nothing gets pulled in behind your back, so your lockfile stays clear of anything you did not ask for.
  • Small enough to read. You can open the source and understand it in a sitting instead of taking it on faith.

These aren't hard problems. They just shouldn't cost you a dependency tree, or an afternoon spent working out what the code does.

The packages

PackageWhat it does
@shortkit/cnMerges strings and condition objects into a class name string.Read
@shortkit/debounce-throttleExecutor-style debounce and throttle, called directly rather than wrapping.Read
@shortkit/make-lazyDefers a function until something reads its result.Read

@shortkit/cn and @shortkit/debounce-throttle run this site. @shortkit/make-lazy is published but not used here.

Where to start

Each package page is its readme, install line and all. If you're picking between debouncing and throttling, @shortkit/debounce-throttle compares the two at the end.

#javascript, #npm, #readme, #web-development

Loading comments...