# cerebral/cerebral

Declarative state and side effects management for popular JavaScript frameworks

Repository: https://github.com/cerebral/cerebral
Canonical: https://ross.abutalabs.com/products/cerebral
Homepage: http://cerebraljs.com
Language: JavaScript
License: MIT
License Family: permissive
Topics: javascript, react, inferno, controller, state-management, firebase, debugger, cerebral, function-tree, npm-module, monorepo
Last push: 2026-03-20T11:04:12+00:00

## Health v2 (maintenance only)
Score: 79/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 73, release rhythm 75, longevity 100
- inputs: {"age_days": 4134, "days_push": 166, "days_rel": 167, "gap_med": 21, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1996, forks 123 (observed 2026-08-28T04:06:03.519144+00:00)

## What it is
Cerebral is a declarative state and side effects management library for JavaScript frontend frameworks like React, Vue, Angular, Preact, and Inferno. It models application logic as composable sequences of actions and ships with a debugger offering time-travel inspection of state and sequences.

## Use cases
- manage state in a React app with declarative side effect sequences
- time-travel debug application state changes
- share state management logic across React, Vue, and Angular
- structure complex async flows as composable action chains
- organize a frontend app into modules with scoped state
- add typed state management to a Vue 3 application

## When to choose
- you want declarative, composable sequences instead of imperative async logic
- you need a debugger with time-travel for state and side effects
- you work across multiple view frameworks and want one state pattern
- you value full type safety in state management

## When to avoid
- you want a library with active feature development - it is in maintenance mode
- your team already uses Redux, Zustand, or Pinia conventions
- you need a large ecosystem of middleware and community extensions
- you prefer minimal unopinionated state containers

## Facets
- artifact type: library
- maturity: maintenance
- function: state-management, frontend-framework, developer-tools
- domain: web-development, frontend, developer-tools
- platform: browser
- tags: declarative-state, side-effects, react, vue, angular, preact, inferno, function-tree, debugger, time-travel-debugging, javascript, nodejs

## Member repositories
- cerebral/cerebral (main) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:03.519144+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:02:28.654309+00:00, confidence not recorded.
  - readme: https://github.com/cerebral/cerebral (fetched 2026-08-28T04:06:03.519144+00:00, sha f19830add0e6)
  - homepage: http://cerebraljs.com (fetched 2026-08-29T10:42:31.747964+00:00, sha a4db80422a19)
  - site_page: https://cerebraljs.com/docs/introduction (fetched 2026-08-29T10:42:31.756817+00:00, sha 27c6e8e004ad)
  - site_page: https://cerebraljs.com/docs/api (fetched 2026-08-29T10:42:31.759002+00:00, sha 8fa2502f4906)
- Data as of 2026-08-30T08:39:29.467469+00:00.
