Which Package Do I Need?
achievements-react
For React 19+ applicationsIncludes the core engine plus React Provider, hooks, and factory. This is the only package you need for React projects.
achievements
For everything elseFramework-agnostic core engine for vanilla JS, Vue, Svelte, server-side, or any non-React environment.
If you’re in a React app, install
achievements-react - it includes the core. If you’re working outside React (vanilla JS, a server, Svelte, Vue…) install achievements directly.Installing for React
For React 19+ applications, install theachievements-react package:
Peer Requirements
The React package requires React >= 19.0.0 as a peer dependency. Theachievements core is bundled - no separate install needed.
package.json
Installing for Vanilla JS / Other Frameworks
For vanilla JavaScript, Vue, Svelte, or any other framework, install the coreachievements package:
Zero Dependencies
The core package has zero runtime dependencies. It ships only ESM format and requires a modern bundler or environment that supports ES modules.package.json
TypeScript Support
Both packages are written in TypeScript and ship with complete type definitions. No additional@types packages are needed.
tsconfig.json
Package Exports
Both packages use modern ESM exports:achievements (core)
achievements-react
achievements-react re-exports everything from achievements, so you rarely need to import from two packages.Verifying Installation
After installation, verify the packages are available:Next Steps
Quick Start
Get up and running with a complete working example for React and vanilla JavaScript
