
<img width="600" src="https://github.com/MuongKimhong/famiq/raw/v0.3.1/record.gif">
fn setup_ui( mut fa_query: FaQuery, mut famiq_res: ResMut<FamiqResource>) {
fa_query.insert_num("count", 0);
fa_query.insert_str("name", "");
FamiqBuilder::new(&mut fa_query, &mut famiq_res).inject();
container!(
id: "#container",
children: [
text!(text: "$[name]", class: "my-2"),
text_input!(placeholder: "Enter name", model: "name", class: "my-1"),
button!(text: "Press me $[count]", id: "#btn")
]
);
}
fn on_btn_press(mut events: EventReader<FaMouseEvent>, mut fa_query: FaQuery) {
for e in events.read() {
if e.is_button_pressed("#btn") {
let count = fa_query.get_data_mut("count").unwrap().as_num_mut();
*count += 1;
}
}
}
[!WARNING] - Famiq is new, many useful features are missing. - It's not there yet.... but feel free to try it and share your feedback!
Get latest version of Famiq
cargo add famiq
or in Cargo.toml
famiq = "0.3.0"
Famiq needs your contributions. Please see contributing.
Currently, it supports only bevy 0.16.x onward.
Famiq is released under the MIT License.
$ claude mcp add famiq \
-- python -m otcore.mcp_server <graph>