{
 "kind": "tool",
 "slug": "jotai",
 "path": "tools/jotai/",
 "name": "Jotai",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "State and data fetching",
   "tools/state-data/"
  ]
 ],
 "lead": "Minimal React state management with atoms as primitive building blocks for flexibility.",
 "chips": [
  {
   "label": "State and data fetching",
   "path": "tools/state-data/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install jotai"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/pmndrs/jotai"
  },
  {
   "label": "Website",
   "href": "https://github.com/pmndrs/jotai"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/pmndrs/jotai"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 24, 2026",
   "note": "Latest GitHub release Nov 9, 2026. ",
   "src": "https://github.com/pmndrs/jotai"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "35 projects",
   "status": "info",
   "sub": "#10 of 53 in its category",
   "note": "Dependency in 35 public GitHub projects set up for AI coding agents that we scanned (0.6%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Jotai does",
   "parts": [
    {
     "t": "prose",
     "text": "Jotai builds React state from small atoms that compose into derived, writable or async atoms, and the site says renders \"are automatically optimized based on atom dependency.\""
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Jotai popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "72",
       "of": "/ 100",
       "l": "Gid Score, #306 overall"
      },
      {
       "n": "11M",
       "l": "downloads a week, npm"
      },
      {
       "n": "21.3K",
       "l": "GitHub stars"
      },
      {
       "n": "35",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Jotai is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Jotai is a dependency in 35 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (0.7% of the 4,867 JavaScript/TypeScript ones), #10 of 53 in state and data fetching.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 195; those are left out of every share on this page.",
      "The most used alternative in our scan is Zustand (366 projects).",
      "Projects that use it most often also use Radix UI (77.1%), date-fns (74.3%), React (97.1%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "19 projects, 0.6%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "18 projects, 0.7%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "17 projects, 0.6%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "5 projects, 1.1%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 77.1% of its projects",
       "v": "Radix UI",
       "path": "tools/radix-ui/"
      },
      {
       "l": "In 74.3% of its projects",
       "v": "date-fns",
       "path": "tools/date-fns/"
      },
      {
       "l": "In 97.1% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 82.9% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 65.7% of its projects",
       "v": "Class Variance Authority",
       "path": "tools/class-variance-authority/"
      },
      {
       "l": "In 68.6% of its projects",
       "v": "Tailwind Merge",
       "path": "tools/tailwind-merge/"
      },
      {
       "l": "In 62.9% of its projects",
       "v": "React Hook Form",
       "path": "tools/react-hook-form/"
      },
      {
       "l": "In 68.6% of its projects",
       "v": "clsx",
       "path": "tools/clsx/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "Jotai in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Aimed at React context's extra re-renders",
       "v": "The site says the atom model \"solves the extra re-render issue of React context\" and \"eliminates the need for memoization\". It also claims a developer experience similar to signals while staying declarative."
      },
      {
       "l": "README claims a 2kb core and no string keys",
       "v": "The README lists a \"Minimal core API (2kb)\" and \"No string keys (compared to Recoil)\". Both are the maintainers' own claims."
      },
      {
       "l": "One primitive for derived, writable and write-only state",
       "v": "Derived state uses the same <code>atom()</code> call. A read function as the first argument makes a read-only atom, and a write function as the second argument makes it writable. Leave out the read function and you get a write-only atom."
      },
      {
       "l": "Async reads and async actions",
       "v": "Read functions can be async, so an atom can fetch from a URL held in another atom. Write functions can be async too: you call <code>set</code> once the data arrives."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "README flags async atoms as needing Suspense",
       "v": "The README marks derived async atoms with a \"needs suspense\" badge that links to React's Suspense docs."
      },
      {
       "l": "SSR requires a Provider at the root",
       "v": "For server-side rendering with a framework such as Next.js or Waku, the docs say to add a Jotai <code>Provider</code> at the root of the app."
      },
      {
       "l": "Extra client-component file in the Next.js app directory",
       "v": "In the Next.js app directory, the provider goes in its own <code>'use client'</code> component. That component is then imported into the server-side root layout."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Primitive, derived and write-only atoms"
    },
    {
     "t": "tabs",
     "label": "Example",
     "items": [
      {
       "tab": "Jsx",
       "code": "import { atom } from 'jotai'\n\nconst countAtom = atom(0)\nconst countryAtom = atom('Japan')\nconst citiesAtom = atom(['Tokyo', 'Kyoto', 'Osaka'])\n\nimport { useAtom } from 'jotai'\n\nconst doubledCountAtom = atom((get) => get(countAtom) * 2)\n\nfunction DoubleCounter() {\n  const [doubledCount] = useAtom(doubledCountAtom)\n  return <h2>{doubledCount}</h2>\n}\n\nconst multiplyCountAtom = atom(null, (get, set, by) =>\n  set(countAtom, get(countAtom) * by),\n)\n\nfunction Controls() {\n  const [, multiply] = useAtom(multiplyCountAtom)\n  return <button onClick={() => multiply(3)}>triple</button>\n}"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about Jotai",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/dai-shi",
        "Open Collective: https://opencollective.com/jotai",
        "Own page: https://daishi.gumroad.com/l/learn-jotai",
        "21 GitHub sponsors"
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "@tanstack/react-query: Server-state fetching and caching",
        "tailwindcss: Utility-first CSS",
        "react: UI library Jotai is built for",
        "@radix-ui: Unstyled accessible UI primitives",
        "next: React framework",
        "class-variance-authority: Component variant class helper"
       ]
      },
      {
       "title": "More in State and data fetching",
       "path": "tools/state-data/",
       "items": [
        {
         "text": "TanStack Query",
         "path": "tools/tanstack-react-query/"
        },
        {
         "text": "RxJS",
         "path": "tools/rxjs/"
        },
        {
         "text": "Pinia",
         "path": "tools/pinia/"
        },
        {
         "text": "SWR",
         "path": "tools/swr/"
        },
        {
         "text": "nuqs",
         "path": "tools/nuqs/"
        },
        {
         "text": "Immer",
         "path": "tools/immer/"
        },
        {
         "text": "React Redux",
         "path": "tools/react-redux/"
        },
        {
         "text": "Lit Signals",
         "path": "tools/lit-labs-signals/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Jotai",
       "me": true,
       "facts": [
        "MIT",
        "Gid 72",
        "11M/wk"
       ]
      },
      {
       "name": "Zustand",
       "why": "Lightweight state management for React with minimal boilerplate.",
       "path": "tools/zustand/",
       "facts": [
        "MIT",
        "Gid 88",
        "96.9M/wk"
       ]
      },
      {
       "name": "Redux Toolkit",
       "why": "Official Redux library with built-in best practices and reduced boilerplate for state management.",
       "path": "tools/reduxjs/",
       "facts": [
        "MIT",
        "Gid 74",
        "52.6M/wk"
       ]
      }
     ],
     "more": "Compare Jotai with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install jotai"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## Jotai\n- Define state as atoms with `atom(initialValue)`. Compute dependent values with derived atoms such as `atom((get) => ...)`.\n- When a component only reads an atom, use `useAtomValue`. When it only writes, use `useSetAtom`. Use `useAtom` when the same component does both.\n- For actions, use a write-only atom (`atom(null, (get, set, arg) => ...)`). For async actions, make the write function async and call `set` when the data is ready.\n- The README marks derived async atoms as needing React Suspense, so plan for a Suspense boundary when you use them.\n- With SSR in Next.js or Waku, add a Jotai `Provider` at the root. In the Next.js app directory, put it in a separate `'use client'` component and import it into the root layout.js server component.\n- For persisting an atom in localStorage, `jotai/utils` provides `atomWithStorage(key, initialValue)`.\n- v3.0.1 fixes a `useAtomValue` regression introduced in v3.0.0, and the release note says \"Please update.\"\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm jotai"
  ],
  [
   "Category",
   "State and data fetching"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "v3.0.1, September 29, 2026"
  ],
  [
   "On GitHub since",
   "August 2020"
  ],
  [
   "Gid Score",
   "72.2"
  ],
  [
   "Rank in category",
   "#10 of 53"
  ],
  [
   "GitHub",
   "pmndrs/jotai"
  ],
  [
   "Last change",
   "Nov 24, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/pmndrs.png"
}