Installation
Install the core package
Section titled “Install the core package”@hurum/core is the framework-agnostic foundation. It has zero runtime dependencies.
npm install @hurum/corepnpm add @hurum/coreyarn add @hurum/coreAdd React bindings (optional)
Section titled “Add React bindings (optional)”If you are using React, install @hurum/react for hooks, Provider, and the Store.use.* API.
npm install @hurum/reactpnpm add @hurum/reactyarn add @hurum/react@hurum/react only peer-depends on react — no other dependencies are pulled in.
Requirements
Section titled “Requirements”| Requirement | Version |
|---|---|
| TypeScript | 5.0+ |
React (for @hurum/react) | 18+ |
Hurum relies on TypeScript features like const type parameters and template literal types for full type inference. TypeScript 5.0 or later is required.
@hurum/core works in any JavaScript runtime — Node.js, Deno, Bun, browsers, React Native. No framework dependency at all.
Build formats
Section titled “Build formats”Both packages ship as CJS + ESM dual builds, so they work with any bundler or runtime without configuration.
Next steps
Section titled “Next steps”You are ready to go. Head to the Quick Start to build your first Hurum store.