atmn is TypeScript library for managing application state with a focus on immutability and type safety. The current stable version is 1.1.8, released with weekly updates. It provides a simple atom-based state management pattern, similar to Recoil or Jotai, but with full TypeScript inference and minimal boilerplate. It supports both React and vanilla JavaScript, and includes built-in devtools for debugging.
npm install atmnNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a simple counter with an atom and useAtom hook, demonstrating basic state management in React.
Upgrade to v1.1.0+ or provide initial value explicitly.
Replace `useAtomValue(atom)` with `const [value] = useAtom(atom)`.
Use the setter function returned by useAtom or the `set` method on atom store.
Install package: npm install atmn; use import syntax.
Use setter from useAtom or atom's set method.
Use useAtom instead.
No dependency data recorded yet.