# cerebral

> A state controller with its own debugger

Latest version **6.0.0** (published 2026-03-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install cerebral
pnpm add cerebral
yarn add cerebral
bun add cerebral
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; has provenance; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 6.0.0 |
| Published | 2026-03-20 |
| First published | 2015-05-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 963.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1994 |
| Author | Christian Alfoni |
| Maintainers | cerebral.js, christianalfoni, guria, gbucher, henri-hulski, fweinb |

## Links

- npm: https://www.npmjs.com/package/cerebral
- Repository: https://github.com/cerebral/cerebral
- Homepage: https://www.cerebraljs.com
- Issues: https://github.com/cerebral/cerebral/issues
- npm.io page: https://npm.io/package/cerebral

## Dependencies (2)

- [es6-error](https://npm.io/package/es6-error.md) ^4.1.1
- [function-tree](https://npm.io/package/function-tree.md) 3.3.4

## Recent versions

- 6.0.0 (latest) — 2026-03-20
- 6.0.0-1773966503163 (next) — 2026-03-20
- 5.0.0-1527708491686 (canary) — 2018-05-30
- 2.0.0-beta.3 (beta) — 2017-05-29
- 2.0.0-b-alpha.3aa44815 (test) — 2017-02-08
- 6.0.0-1773965871085 — 2026-03-20
- 5.2.5 — 2025-06-06
- 5.2.5-1749198282070 — 2025-06-06
- 5.2.4 — 2025-03-25
- 5.2.4-1742935454856 — 2025-03-25
- 5.2.4-1742933933075 — 2025-03-25
- 5.2.4-1742500971365 — 2025-03-20
- 5.2.3-1742494391537 — 2025-03-20
- 5.2.3 — 2025-03-20
- 5.2.3-1742471549064 — 2025-03-20
- … 646 more at https://npm.io/package/cerebral/versions

## README

# Cerebral

A declarative state and side effects management solution for popular JavaScript frameworks

[![NPM version][npm-image]][npm-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][codecov-image]][codecov-url]
[![bitHound Score][bithound-image]][bithound-url]
[![Commitizen friendly][commitizen-image]][commitizen-url]
[![Semantic Release][semantic-release-image]][semantic-release-url]
[![Discord][discord-image]][discord-url]

<img src="images/logo.png" width="300" align="center">

### Install

`npm install cerebral`

## Documentation

Go to [https://www.cerebraljs.com](https://www.cerebraljs.com)

[npm-image]: https://img.shields.io/npm/v/cerebral.svg?style=flat
[npm-url]: https://npmjs.org/package/cerebral
[travis-image]: https://img.shields.io/travis/cerebral/cerebral.svg?style=flat
[travis-url]: https://travis-ci.org/cerebral/cerebral
[codecov-image]: https://img.shields.io/codecov/c/github/cerebral/cerebral/master.svg?maxAge=2592000?style=flat-square
[codecov-url]: https://codecov.io/gh/cerebral/cerebral
[bithound-image]: https://www.bithound.io/github/cerebral/cerebral/badges/score.svg
[bithound-url]: https://www.bithound.io/github/cerebral/cerebral
[commitizen-image]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
[commitizen-url]: http://commitizen.github.io/cz-cli/
[semantic-release-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square
[semantic-release-url]: https://github.com/semantic-release/semantic-release
[discord-image]: https://img.shields.io/badge/discord-join%20chat-blue.svg
[discord-url]: https://discord.gg/0kIweV4bd2bwwsvH

---
_Source: https://npm.io/package/cerebral · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
