The JavaScript Developer Hub
npm packages · head-to-head comparisons · code snippets — everything you need in one place
Featured
Browse by Category
Popular Packages
View all →Terminal string styling done right
Tiny millisecond conversion utility
A cache object that deletes the least-recently-used items.
the complete solution for node.js command-line programs
the most correct and second fastest glob implementation in JavaScript
RFC9562 UUIDs
Popular Comparisons
View all →Code Snippets
View all →A generic React hook that debounces any value by a specified delay in milliseconds, perfect for optimizing search inputs, API calls, and other performance-sensitive operations.
A production-ready DataFetcher<T> component implementing the render props pattern in TypeScript React, with full type safety for loading, error, and success states.
A generic React hook that stores and returns the value from the previous render cycle, useful for comparing state changes and triggering animations.
A complete implementation of the compound component pattern in React TypeScript, demonstrating how to build a flexible Tabs component (Tabs, Tabs.List, Tabs.Tab, Tabs.Panel) using Context API to share state without prop drilling.
A custom React hook that fetches data with automatic request cancellation on unmount and race condition prevention using AbortController.
A TypeScript function that recursively merges two objects with full type safety. Arrays are concatenated, primitives are overwritten by the source, and nested objects are merged recursively.