{"schemaVersion":1,"id":"valtio","name":"Valtio","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/valtio/","officialUrl":"https://github.com/pmndrs/valtio","isCatalog":false,"description":"Manages JavaScript state through proxies and snapshots: lets you modify objects normally and subscribe React components to changes.","tasks":["Update a shared state object through a proxy","Connect snapshots to React UI and check its response to changes"],"categoryIds":["frontend","design"],"subcategoryIds":["frontend.components","design.systems","frontend.state"],"tags":["Valtio","UI","Development"],"aliases":["pmndrs/valtio","valtio","valtio-state","pmndrs-valtio"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Code and local use under MIT.","paidUsage":"Computing resources, self-hosting, and external services are paid for separately if used.","license":"MIT for the code; dependencies have separate licenses.","selectionGuide":{"purpose":"Update a shared state object through a proxy","chooseWhen":["Update a shared state object through a proxy","Connect snapshots to React UI and check its response to changes"],"considerInstead":["When choosing for this topic, compare Valtio with Immer. A candidate to compare under the topic: Design systems, UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.","When choosing for this topic, compare Valtio with Jotai. A candidate to compare under the topic: Design systems, UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."],"requirements":["For Valtio v2 with React, the README specifies React 18+. subscribe returns an unsubscribe function."],"limitations":["Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.","Terms of use: MIT for the code; dependencies have separate licenses.","A snapshot is deeply readonly: a method using this cannot change frozen state when called on a snapshot. The README also notes a useTransition limitation when async data is consumed through use."],"faq":[{"question":"What can you use for free in Valtio?","answer":"Code and local use under MIT."},{"question":"What additional costs might arise with Valtio?","answer":"Computing resources, self-hosting, and external services are paid for separately if used."},{"question":"What terms of use matter for Valtio?","answer":"MIT for the code; dependencies have separate licenses."},{"question":"How do you get started with Valtio?","answer":"Describe proxy state and permitted changes to its fields. Connect snapshots to React UI and check its response to changes. Configure styles and check empty, loading, and error states."},{"question":"Where should you read and update Valtio state?","answer":"proxy tracks object changes. Read useSnapshot during React render and modify the original proxy in handlers; useSnapshot tracks the properties being used. For plain JavaScript, proxy, subscribe, and snapshot are available from valtio/vanilla."}],"related":[{"id":"immer","reason":"A candidate to compare under the topic: Design systems, UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."},{"id":"jotai","reason":"A candidate to compare under the topic: Design systems, UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."},{"id":"zustand","reason":"A candidate to compare under the topic: Design systems, UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."}],"sources":["https://github.com/pmndrs/valtio","https://raw.githubusercontent.com/pmndrs/valtio/HEAD/README.md","https://raw.githubusercontent.com/pmndrs/valtio/HEAD/LICENSE","https://www.open-source-tools.com/"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Update a shared state object through a proxy.","inputs":["The component's design, states, and data.","A compatible framework and the project's styles."],"steps":["Describe proxy state and permitted changes to its fields.","Connect snapshots to React UI and check its response to changes.","Configure styles and check empty, loading, and error states."],"checks":["The keyboard, focus indicators, and a screen reader let users complete the action.","The component works on a narrow screen and with long data values."]},"sources":["https://github.com/pmndrs/valtio","https://raw.githubusercontent.com/pmndrs/valtio/HEAD/README.md","https://raw.githubusercontent.com/pmndrs/valtio/HEAD/LICENSE","https://www.open-source-tools.com/"],"checkedAt":"2026-10-06","reviewScope":"The purpose, current repository license, and separate terms for code, services, and models have been reviewed. The product was not run, and no security audit was performed.","relatedIds":["zustand","jotai","immer","tanstack-query","swr"],"dataVersion":"cbbe7123b47a5ae80983","type":"UI library","kind":"library","pricingNote":"Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.","notes":null,"labeledSources":[{"url":"https://github.com/pmndrs/valtio","label":"Official source"},{"url":"https://raw.githubusercontent.com/pmndrs/valtio/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/pmndrs/valtio/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}