Case study · Open source / Developer tools
@danixsoft/hooksAn open-source, tree-shakeable React hooks library
A TypeScript React hooks library published to npm under the MIT licence: 40+ SSR-safe hooks with no runtime dependencies, shipped as ESM and CommonJS, with a documentation site and generated API reference.

The challenge
Teams re-implement the same browser hooks — storage, media queries, debouncing, observers, timers — in every project, and naïve versions break under server-side rendering in Next.js.
The solution
One well-tested package with isomorphic hooks, React as its only peer dependency, and side-effect-free exports so bundlers keep only what is imported.
What we built
- Hooks for state, storage, events, observers, timers, forms, media, and scrolling
- ESM and CommonJS builds with type definitions (tsup)
- Documentation site at react-hooks.danixsoft.com with guides, comparisons, and interactive examples
- API reference generated from source with TypeDoc, plus llms.txt for AI assistants
- Semantic versioning with a Keep a Changelog history (v0.2.5 at the time of writing)
Architecture
- Package
- TypeScript, tsup (ESM + CJS), React 18+ peer dependency
- Quality
- Vitest, Testing Library, ESLint, coverage in GitHub Actions
- Docs
- Next.js documentation site, TypeDoc API reference
Engineering challenges
- Hooks written to be safe during server rendering in Next.js and other SSR setups
- Vitest and Testing Library tests with coverage reported from GitHub Actions CI
- Zero runtime dependencies; React 18+ as a peer dependency


