COMPARISON · STATE MANAGEMENT

jotai vs. recoil

Side-by-side comparison · 9 metrics · 14 criteria

jotai v3.0.2 · MIT
Weekly Downloads
10.7M
Stars
21.4K
Gzip Size
6.6 kB
License
MIT
Last Updated
9mo ago
Open Issues
3
Forks
728
Unpacked Size
112.9 kB
Dependencies
2
recoil v0.7.7 · MIT · ARCHIVED
Weekly Downloads
596.5K
Stars
19.4K
Gzip Size
29.5 kB
License
MIT
Last Updated
2y ago
Open Issues
320
Forks
1.2K
Unpacked Size
2.2 MB
Dependencies
3
DOWNLOAD TRENDS

jotai vs recoil downloads · last 12 months

Download trends for jotai and recoil2 download series from Nov 2025 to Oct 2026. Use left and right arrow keys to inspect monthly values.08.0M15.9M23.9M31.9MNov 2025FebMayAugOct 2026
jotai
recoil
FEATURE COMPARISON

Criteria · jotai vs recoil

Learning Curve
jotai ✓
A direct atom model supports incremental adoption
recoil
Requires learning atom, selector, and root conventions
Migration Effort
jotai
Recoil selectors and hooks require conversion to jotai patterns
recoil
Existing recoil conventions avoid migration work
Package Footprint
jotai ✓
Reported gzip bundle is 6.6 kB and unpacked size is 112.9 kB
recoil
Reported gzip bundle is 29.5 kB and unpacked size is 2.2 MB
Debugging Workflow
jotai
No comparative debugging details supplied
recoil
No comparative debugging details supplied
TypeScript Support
jotai
Not established by the supplied data
recoil
Not established by the supplied data
Maintenance Signals
jotai ✓
3 open issues and updated 2026-11-09 in supplied data
recoil
320 open issues and updated 2025-01-01 in supplied data
React State Boundary
jotai
Atom identities support feature-level state organization
recoil
RecoilRoot defines a clear graph boundary
Component Consumption
jotai
Components read and update atoms through hooks
recoil
Components consume atoms and selectors through recoil conventions
Provider Architecture
jotai
State can be organized around atom consumption
recoil
RecoilRoot establishes the state context
Derived State Modeling
jotai
Derived atoms combine or transform atom values
recoil
Selectors explicitly represent computed state
State Composition Model
jotai
Composable atoms support state organized in small units
recoil
Atoms and selectors form an explicit state graph
Feature-Level Organization
jotai
Small composable atoms suit independently owned features
recoil
Explicit graph suits centrally organized shared state
Established Application Fit
jotai
Suitable for incremental adoption of composable atoms
recoil
Avoids disruption in applications already built around recoil
Stored Versus Derived State
jotai
Derived atoms compose stored and computed values
recoil ✓
Separate atom and selector roles clarify the distinction
VERDICT

jotai is oriented around composing React state from small atoms: a component can read or update the particular atom it needs, while derived atoms express relationships between values. That makes jotai a natural fit for teams that want local, incrementally shared state without introducing a central application-wide state shape, especially when state grows through independently owned features. Its primitive approach keeps the core mental model close to React components and values.

recoil also models state as a graph of atoms and derived selectors, but presents that graph as a coordinated state layer for React applications. Its central RecoilRoot provides the context in which atoms and selectors participate, and its model is useful when a team wants named shared values and computed dependencies to form an explicit application state graph. The package is a more substantial choice for teams already organized around recoil’s conventions and APIs.

The main architectural contrast is in how developers define and consume that graph. jotai uses atom definitions as composable units, with derived atoms connecting or transforming other atoms; components subscribe by reading those atoms through React hooks. recoil distinguishes writable atoms from selectors that derive values, so its API makes the division between stored state and computed state especially explicit. In either case, choosing the library means adopting its state vocabulary throughout the parts of the application that share data.

Their React integration also differs in the scope of the state boundary. jotai supports organizing state around atom identities and consuming only the values a component reads, which encourages feature-level composition rather than requiring one broad state container. recoil’s RecoilRoot establishes a recognizable boundary for the state graph, and its atom-and-selector organization can suit applications that want that graph described explicitly. These are different ways to structure ownership and dependencies, not evidence that one automatically fits every rendering pattern.

For developer experience, jotai’s smaller set of core concepts can make a gradual start straightforward: define an atom, read or update it in a component, and introduce derived atoms where relationships emerge. recoil’s separate atom and selector roles can offer a clear vocabulary for stored versus computed state, while asking developers to learn and maintain its graph conventions. The supplied package information does not establish comparative TypeScript or debugging capabilities, so those should be checked against the specific APIs and workflows the team intends to use rather than assumed from the package statistics.

The published size figures favor jotai for applications where shipped JavaScript matters: its reported gzip bundle is 6.6 kB, compared with 29.5 kB for recoil, and its unpacked package is 112.9 kB rather than 2.2 MB. That is a concrete reason to prefer jotai when a smaller dependency footprint is a priority, though actual application output depends on how the package is used and bundled. These figures alone do not establish runtime performance, rendering behavior, or memory use, so they should not be treated as a benchmark for those concerns.

For a new React feature that needs shared state across a limited set of components, jotai is the more direct starting point: define focused atoms and add derived state only where the feature needs it. Consider recoil when the application already uses its atom-and-selector conventions or when the team deliberately wants a centralized RecoilRoot boundary and an explicit graph of stored and computed values. For a fresh adoption, jotai’s lower reported package footprint and substantially fewer open issues make it the more practical default on the supplied evidence, while neither metric by itself guarantees suitability for a particular application.

Migration deserves separate consideration because the shared atom vocabulary can make the two libraries sound more interchangeable than their APIs are. Moving from recoil to jotai would still require rewriting state declarations, replacing selector patterns with derived atoms, and updating component hooks and provider assumptions; it is not simply a package substitution. Recoil’s reported 320 open issues and last update of 2025-01-01, compared with jotai’s 3 open issues and 2026-11-09 update, are relevant maintenance signals when selecting a dependency, but they do not reveal issue severity, roadmap, or future support.

The edge case is an established recoil application whose state graph and team knowledge already deliver value: replacing it solely to reduce package size may not justify migration work or regression risk. Conversely, a new project with many feature-owned state units may find jotai’s composable atoms align with its ownership boundaries and make incremental adoption easier. Neither package’s supplied details establish a particular extension ecosystem or specialized capability, so evaluate those requirements directly before making them the deciding factor.

CORRECTIONS

Spot wrong data here?

A short note helps us fix it.

Anonymous · No account · No email back

RELATED COMPARISONS 8
@reduxjs/toolkit vs jotai ★ 32.6K · 61.7M/wk jotai vs redux ★ 82.8K · 78.6M/wk jotai vs nanostores ★ 29.0K · 31.7M/wk jotai vs valtio ★ 31.6K · 13.9M/wk jotai vs zustand ★ 80.4K · 105.6M/wk jotai vs mobx ★ 49.6K · 15.4M/wk jotai vs xstate ★ 51.9K · 19.4M/wk recoil vs redux ★ 80.8K · 68.5M/wk