Show HN: Usehooks.io – A CLI-first React hook library with 30 utilities
I’ve built usehooks.io – a CLI-first React hook library with 30+ production-ready hooks for modern frontend development.
Why I built it React hooks are incredibly powerful, but I found myself constantly rewriting the same utilities—like useCounter, useDebounce, useGeolocation, etc. Many libraries felt too opinionated, under-documented, or weren’t keeping up with new APIs like Web Share, Vibration, or Bluetooth.
So I decided to create:
A comprehensive, modern hook library
With a zero-config CLI to install, remove, and explore hooks directly from the terminal
Fully typed with TypeScript-first DX
Documented with real-world examples
What’s inside 30+ reusable hooks across categories:
State & Lifecycle: useCounter, useToggle, usePrevious
Sensors & Devices: useAudioRecorder, useGeolocation, useVibration, useIsMobile
Browser APIs: useClipboard, useFullscreen, useWebShare
Network: useFetch, useNetworkInformation
And more...
A powerful CLI (npx usehooks-cli) with:
init, add, remove, list, info, update commands
Smart search by name, category, or description
MIT licensed. Built with a monorepo setup using pnpm workspaces.
Links Website: https://usehooks.io
GitHub: https://github.com/small-lab-io/usehooks.io
Try CLI: npx usehooks-cli@latest
Feedback
I’d love your feedback!
Are the hooks useful to you? Are there any you'd like to see added? Would you use the CLI in your projects?Also open to contributors, ideas, or critiques. Thanks for reading!
No comments yet