MCPcopy Index your code
hub / github.com/brunocodutra/reducer

github.com/brunocodutra/reducer @v3.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.0.1 ↗ · + Follow
78 symbols 146 edges 18 files 11 documented · 14%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Reducer docs.badge codecov.badge

A platform for reactive programming in Rust that can be used to manage the state of any kind of application. It shines when used to drive graphical user interfaces and integrates particularly well with immediate mode GUI frameworks.

Using Reducer

Reducer is available on crates.io, simply add it as a dependency in your Cargo.toml:

[dependencies]
reducer = "3.0"

and import it in your lib.rs:

use reducer::*;

The full API documentation is available on docs.rs

Examples

The examples folder contains the implementation of a simple Todo List app using Reducer and Conrod.

> cargo run --release --example conrod

Contribution

Reducer is an open source project and you're very welcome to contribute to this project by opening issues and/or pull requests, see CONTRIBUTING for general guidelines.

License

Reducer is distributed under the terms of the MIT license, see LICENSE for details.

Extension points exported contracts — how you extend this code

Reactor (Interface)
Trait for types that react to state transitions. Reactors connect the _state_ to the _view_ components. They can implem [5 …
src/reactor.rs
Reducer (Interface)
Trait for types that represent the logical state of an application. Perhaps a more accurate mental model for types that [4 …
src/reducer.rs
Dispatcher (Interface)
Trait for types that allow dispatching actions. [2 implementers]
src/dispatcher.rs

Core symbols most depended-on inside this repo

new
called by 68
src/dispatcher/store.rs
dispatch
called by 7
src/dispatcher/sink.rs
get_filter
called by 6
examples/conrod.rs
reduce
called by 3
src/reducer/rc.rs
into_task
called by 3
src/dispatcher/store.rs
default
called by 3
src/dispatcher/store.rs
react
called by 2
src/reactor/sink.rs
reduce
called by 1
src/reducer/rc.rs

Shape

Method 38
Function 30
Class 4
Enum 3
Interface 3

Languages

Rust100%

Modules by API surface

src/dispatcher/store.rs19 symbols
examples/conrod.rs11 symbols
src/reactor/sink.rs9 symbols
src/dispatcher/sink.rs9 symbols
src/reactor.rs6 symbols
src/dispatcher.rs6 symbols
src/reducer/rc.rs3 symbols
src/reducer/arc.rs3 symbols
src/reducer/boxed.rs2 symbols
src/reducer.rs2 symbols
src/reactor/slice.rs2 symbols
src/reactor/reference.rs2 symbols

For agents

$ claude mcp add reducer \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page