Skip to main content

About

Hookstorm is a curated collection of production-ready React custom hooks designed to handle common patterns in modern web applications — from state management and DOM interaction to browser APIs and utility logic.

The goal is simple: ship less boilerplate, write more product.


Philosophy

Zero Dependencies

React is the only runtime requirement. Hookstorm introduces no third-party packages into your bundle. Every hook is built on top of React's standard APIs and native browser capabilities.

TypeScript First

All hooks are written in TypeScript with full type inference. You get accurate IntelliSense, strict return types, and parameter validation without any extra configuration.

Tree-Shakeable

Import only what you use. Modern bundlers (Vite, webpack, Rollup) automatically eliminate unused hooks from your production bundle, keeping your output lean.


What's Included

Hookstorm currently ships 30 hooks grouped by purpose:

CategoryHooks
UI StateuseToggle, useCounter, useDebounce, usePrevious
DOM & BrowseruseWindowSize, useScrollPosition, useMousePosition, useHover, useClickOutside, useDocumentTitle, useLockScroll, useKeyPress, useEventListener, useMediaQuery, useIntersectionObserver, useResizeObserver
StorageuseLocalStorage, useSessionStorage, useCookie
Network & DeviceuseOnlineStatus, useGeoLocation, usePageVisibility, usePrefersTheme
Timers & LifecycleuseCountdown, useIdle
ClipboarduseCopyToClipboard

Each hook is documented with a description, parameters, return values, and a working TypeScript example.


Versioning

Hookstorm follows Semantic Versioning. Breaking changes are introduced only in major releases. Minor releases add new hooks or features without breaking existing APIs. Patch releases contain bug fixes.


License

Released under the MIT License. Free to use in personal and commercial projects.