Debounce Function
Prevents a function from firing too frequently by waiting for a pause before calling it. Commonly used to optimize input...
Prevents a function from firing too frequently by waiting for a pause before calling it. Commonly used to optimize input...
A React custom hook that copies text to the clipboard and sets a state to provide user feedback. Useful for buttons that...
Caches results of expensive function calls to improve performance when the same input is provided repeatedly. Example: m...
A lightweight utility function for adding delays in async JavaScript/TypeScript code. Commonly used for testing and retr...
Smooth fade-in animation using CSS keyframes. Perfect for loading states, modal entrances, or any element that needs to...
Efficient O(log n) search algorithm for sorted arrays. Returns the index of the target element or -1 if not found.
Generates a random UUID v4 string. Useful for creating unique identifiers in frontend applications without external depe...
React hook that tracks when an element enters or leaves the viewport. Perfect for lazy loading, infinite scroll, or trig...
Efficient O(n log n) sorting algorithm using divide-and-conquer. Sorts array in-place with good average performance.
Subtle pulsing animation for buttons, notifications, or status indicators. Creates a breathing effect that draws attenti...
Retries a function with exponential backoff. Useful for API calls, database operations, or any operation that might fail...
Least Recently Used cache with O(1) get and put operations. Automatically evicts oldest items when capacity is exceeded.
Attention-grabbing shake animation for error states, invalid inputs, or notifications. Creates a side-to-side wobble eff...
Creates a deep copy of an object, handling nested objects, arrays, and circular references. More robust than JSON.parse/...
Smooth slide-in animation from different directions. Perfect for sidebars, modals, or any element that needs to enter fr...
Formats numbers with proper thousand separators and decimal places. Handles currencies, percentages, and large numbers.
Efficient prefix tree for string operations. Great for autocomplete, spell checkers, or any prefix-based search function...
Playful bounce animation for buttons, icons, or interactive elements. Creates a spring-like effect that feels responsive...
Token bucket rate limiter to control API usage or prevent spam. Allows bursts but maintains average rate over time.
Finds shortest path between nodes in a weighted graph. Essential for routing, navigation, and network optimization probl...
Simulates typing effect for text. Perfect for hero sections, loading messages, or any text that needs to appear letter b...
Lightweight event system for decoupled communication between components. Useful for custom events and pub-sub patterns.
Memory-efficient generator for Fibonacci numbers. Produces infinite sequence without storing all values in memory.
Ethereal glow animation for buttons, cards, or special elements. Creates a pulsing light effect that adds premium feel.