Developer Tools to power-up Recoil development workflow.
Recoil DevTools provides a complete set of debugging tools for Recoil-based applications, including:
- Logger, to log state changes to console
- Log Monitor, to visualize state history with time-travel
- Dock Monitor, to display devtools in a resizable panel
- Time-travel debugging - Navigate through state history
- State diffing - Visualize what changed between states
- Action toggle - Enable/disable actions to test scenarios
- Keyboard shortcuts - Quick access to toggle visibility and more
- Persistent state - Remember dock position between sessions
- Modern stack - Built with React 18, TypeScript 5, and Vite
This is a monorepo containing the following packages:
| Package | Version | Downloads | Description |
|---|---|---|---|
recoil-devtools |
Wrapper component RecoilDevtools; currently passes its children through unchanged |
||
recoil-devtools-dock |
Resizable and movable dock (DockMonitor) |
||
recoil-devtools-log-monitor |
State and action history with time-travel (LogMonitor) |
| Package | Version | Downloads | Description |
|---|---|---|---|
recoil-devtools-logger |
Logs state changes and actions to the browser console (RecoilLogger) |
||
recoil-devtools-themes |
Eight color themes for the monitors |
π Live demo: https://ulises-jeremias.github.io/recoil-devtools/
# Install all packages
pnpm install
# Run the demo locally
pnpm --filter recoil-devtools-demo devimport { RecoilRoot } from 'recoil';
import { DockMonitor } from 'recoil-devtools-dock';
import { LogMonitor } from 'recoil-devtools-log-monitor';
function App() {
return (
<RecoilRoot>
<DockMonitor>
<LogMonitor />
</DockMonitor>
{/* Your app */}
</RecoilRoot>
);
}| Shortcut | Action |
|---|---|
Ctrl+H |
Toggle visibility |
Ctrl+Q |
Change dock position |
Ctrl+M |
Change monitor (when multiple) |
The workspace in pnpm-workspace.yaml contains five
published packages under packages/* and the private demo app.
Arrows point from a workspace package to a dependency declared in its
package.json. Third-party and peer dependencies are omitted.
flowchart LR
demo["recoil-devtools-demo"]
subgraph packages["packages/*"]
composite["recoil-devtools"]
dock["recoil-devtools-dock"]
monitor["recoil-devtools-log-monitor"]
logger["recoil-devtools-logger"]
themes["recoil-devtools-themes"]
monitor --> themes
end
demo --> composite
demo --> dock
demo --> monitor
demo --> logger
demo --> themes
The demo composes RecoilLogger, DockMonitor, and LogMonitor inside
RecoilRoot. The history hook captures an initial snapshot and observes
transactions; RecoilLogger registers its own transaction observer for console
logging. DockMonitor provides the panel that contains the log monitor.
flowchart TD
subgraph app["React app inside RecoilRoot"]
state["Recoil atoms and selectors"]
initial["useRecoilSnapshot"]
historyObserver["History transaction observer"]
loggerObserver["Logger transaction observer"]
history["useRecoilTransactionsHistory"]
logger["RecoilLogger"]
monitor["LogMonitor inside DockMonitor"]
state -->|snapshot on mount| initial
initial --> history
state -->|transactions| historyObserver
historyObserver --> history
state -->|transactions| loggerObserver
loggerObserver --> logger
history -->|history and controls| monitor
monitor -->|Reset via useGotoRecoilSnapshot| state
end
logger --> console["Console output"]
RecoilDevtools currently passes its children through unchanged; it does not
forward values to them. Set values on LogMonitor or RecoilLogger itself to
observe selected atoms.
- Node.js 18+
- React 17 or 18 (not React 19 β Recoil still depends on React internals removed in 19)
- Recoil 0.7+
Heads-up about Recoil
Meta archived the upstream Recoil repository in early 2025. Recoil itself still works on React 18, but it no longer receives upstream updates.
This monorepo continues as an independent, community-maintained set of devtools for projects that are still on Recoil. There is no ongoing dependency on upstream Recoil development.
If you are starting a new project, consider modern alternatives such as Jotai, Zustand, or React's built-in primitives. If you already use Recoil, these devtools are designed to keep your debugging story productive.
Pull requests, bug reports, and feedback are welcome. See CONTRIBUTING.md and the Code of Conduct.
Made with contributors-img.