{"schemaVersion":1,"id":"signals","name":"Signals","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/signals/","officialUrl":"https://github.com/preactjs/signals","isCatalog":false,"description":"A fine-grained reactive state library with framework adapters: it updates dependent values and UI without recomputing the entire tree.","tasks":["Add fine-grained reactive state to a UI","Connect derived values and UI to signals and test dependent element updates"],"categoryIds":["frontend"],"subcategoryIds":["frontend.utilities"],"tags":["Signals","web","Development"],"aliases":["preactjs/signals","preact-signals","signals"],"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":"Add fine-grained reactive state to a UI","chooseWhen":["Add fine-grained reactive state to a UI","Connect derived values and UI to signals and test dependent element updates"],"considerInstead":[],"requirements":["In React, connect @preact/signals-react and the Babel transform, or explicitly call useSignals in the reading component."],"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.","React integration does not support passing a signal directly as a DOM attribute; render props require correct tracking of the reading component."],"faq":[{"question":"What can you use for free in Signals?","answer":"Code and local use under MIT."},{"question":"What additional costs might arise with Signals?","answer":"Computing resources, self-hosting, and external services are paid for separately if used."},{"question":"What terms of use matter for Signals?","answer":"MIT for the code; dependencies have separate licenses."},{"question":"How do you get started with Signals?","answer":"Define signals for the selected component's state. Connect derived values and UI to signals and test dependent element updates. Add real data and error handling; check the production build."},{"question":"Is the Babel transform mandatory?","answer":"It is the recommended automatic tracking path. If the transform is unavailable, the documentation suggests useSignals; useSignal/useComputed/useSignalEffect create local state and computations."},{"question":"Why might reading a signal through a render prop fail to update the UI?","answer":"The component invoking the render prop reads the value, and the transform may not recognize it. The README suggests mode: all or a separate component explicitly reading the signal."}],"related":[],"sources":["https://github.com/preactjs/signals","https://raw.githubusercontent.com/preactjs/signals/HEAD/README.md","https://raw.githubusercontent.com/preactjs/signals/HEAD/LICENSE","https://www.open-source-tools.com/","https://raw.githubusercontent.com/preactjs/signals/HEAD/packages/react/README.md"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Add fine-grained reactive state to a UI.","inputs":["Web application source code and the intended workflow.","The project's framework and runtime version."],"steps":["Define signals for the selected component's state.","Connect derived values and UI to signals and test dependent element updates.","Add real data and error handling; check the production build."],"checks":["The workflow works after a page refresh and with invalid data.","The bundle, server rendering, and supported browsers suit the project."]},"sources":["https://github.com/preactjs/signals","https://raw.githubusercontent.com/preactjs/signals/HEAD/README.md","https://raw.githubusercontent.com/preactjs/signals/HEAD/LICENSE","https://www.open-source-tools.com/","https://raw.githubusercontent.com/preactjs/signals/HEAD/packages/react/README.md"],"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":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Web framework / 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/preactjs/signals","label":"Official source"},{"url":"https://raw.githubusercontent.com/preactjs/signals/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/preactjs/signals/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"},{"url":"https://raw.githubusercontent.com/preactjs/signals/HEAD/packages/react/README.md","label":"Official 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}