Nucleus is a modular, developer-friendly core library of reusable React components, regular expressions and custom hooks—designed to be the foundation of clean, scalable React applications.
Whether you're building a small prototype or a large-scale SPA, Nucleus provides essential UI building blocks and logic abstractions out of the box, helping you ship faster with consistent design and logic.
npm install @dosullivan557/nucleus
# or
yarn add @dosullivan557/nucleus👉 Full documentation & live examples
- Component and hook API reference
- Usage examples
- Installation tips
- Contribution guide
- Changelog
- useAsyncHook: Async state management (docs)
- useDebounce: Debounce side effects (docs)
- useFetch: Data fetching (docs)
- useLocalStorage: State sync with localStorage (docs)
- useScreenDimensions: Window size (docs)
- useTimeout: Timeout management (docs)
- useToggle: Boolean toggle (docs)
We export both a wrapper function for simplicity, as well as the raw regular expression for more complicated workflows
- email
- isValidEmail
- emailRegex
- Run tests:
npm test - Lint:
npm run lint - Format:
npm run format - Storybook:
npm run storybook
See CONTRIBUTING.md for guidelines.
MIT © Danny O'Sullivan