[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108674":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":32,"updatedAt":33,"readmeContent":34,"aiSummary":35,"trendingCount":16,"starSnapshotCount":16,"syncStatus":36,"lastSyncTime":37,"discoverSource":38},108674,"rake","1bye\u002Frake","1bye","Rust framework for GPUI with native and browser apps, runtime inspection, and agent control.","https:\u002F\u002Fgithub.com\u002F1bye\u002Frake#readme",null,"Rust",206,4,1,20,0,7,10,115,21,71.1,"Apache License 2.0",false,"main",[26,27,28,29,30,31],"ai-agents","developer-tools","gpui","gui","rust","webassembly","2026-11-23 19:27:41","2026-11-23 19:43:21","# Rake\n\nRake is a framework that provides an out-of-the-box experience with\n[GPUI](https:\u002F\u002Fgithub.com\u002Fzed-industries\u002Fzed\u002Ftree\u002Fmain\u002Fcrates\u002Fgpui) in the agentic era.\nBuild desktop and browser apps from one Rust codebase, with tools that let you and your\nAI agents inspect and control the running app.\n\n> **Alpha.** APIs can change between revisions. See [what's supported](docs\u002Fsupport.md).\n\n## What you get\n\n- **One app, two targets.** One application factory for native and WebAssembly, with\n  direct GPUI access through `rake::gpui`.\n- **App structure.** Typed routes, independent tabs and histories, native multi-window\n  support, and save\u002Fdiscard\u002Fcancel guards.\n- **Managed async work.** Route loaders, retries, and tasks owned by tabs or the app.\n- **Shared services.** HTTP, storage, diagnostics, files, clipboard and preferences\n  behind one `rake` dependency.\n- **Agent tooling.** Commands with JSON schemas, JSON CLI output, element inspection and\n  Chrome DevTools.\n- **Development and shipping.** Watched builds, checkpointed reloads, packaging,\n  signing and update controllers.\n- **UI options.** The `view!` syntax on [GPUI Base](docs\u002Fgpui-kit.md), optional\n  GPUI Kit components (native only), and [AppKit controls](crates\u002Frake-native\u002FREADME.md).\n\n## Quick start\n\nRake needs Rust 1.98.0, native development tools and Python 3.11+. Install the CLI\nand create a desktop\u002Fbrowser app:\n\n```sh\ncargo install rake-app-cli --version 0.1.0-alpha.3 --locked\nrake new hello-rake\ncd hello-rake\nrake dev\n```\n\nThe generated app has two pages, a persistent layout, a theme and an agent-callable\ncommand. For the browser, use `rake dev --target web` with a WebGPU-capable browser\nand the matching `wasm-bindgen-cli` (the builder prints the install command).\nThe first dev run creates `Cargo.lock`; commit it. `rake new` pins Rake to the\nversion of the installed CLI.\n\nUI uses `view!` (it's comptime). A complete Hello window looks like this:\n\n```rust\nuse rake::gpui::{Context, Window, prelude::*};\nuse rake::prelude::*;\n\nstruct Hello;\n\nimpl Render for Hello {\n    fn render(&mut self, _: &mut Window, _: &mut Context\u003CSelf>) -> impl IntoElement {\n        rake::view! { \n          \u003Cmain class=\"size-full p-6\">\n            \u003Ch1>\"Hello, Rake!\"\u003C\u002Fh1>\n          \u003C\u002Fmain> \n        }\n    }\n}\n\n#[rake::app]\nfn app() -> App {\n    App::new(\"com.example.hello-rake\")\n        .root(|_, _, cx| cx.new(|_| Hello).into())\n}\n```\n\nTo add Rake to an existing crate, use `cargo add rake-app@0.1.0-alpha.3 --rename rake`\nand then use the Hello entry above. `view!`, themes and style\npresets are included by default; Kit and DevTools remain optional.\n\n[Getting started](docs\u002Fgetting-started.md) covers browser prerequisites, local\nRake development and agents. On macOS, check that `which rake` selects Cargo's CLI\nrather than the system Ruby tool.\n\n## Tiny examples\n\nShort snippets for what comes after the Hello window. Plain GPUI elements also work\neverywhere through `rake::gpui`.\n\n### State and events\n\nA view keeps its state in ordinary fields. Mount it the same way as the Hello window:\n\n```rust\nstruct Counter {\n    count: usize,\n}\n\nimpl Render for Counter {\n    fn render(&mut self, _: &mut Window, cx: &mut Context\u003CSelf>) -> impl IntoElement {\n        rake::view! {\n            \u003Cmain class=\"size-full p-6 gap-4\">\n                \u003Cp>{format!(\"Count: {}\", self.count)}\u003C\u002Fp>\n                \u003Cbutton id=\"increment\" on:click={cx.listener(|this, _, _, cx| {\n                    this.count += 1;\n                    cx.notify();\n                })}>\n                    Increment\n                \u003C\u002Fbutton>\n            \u003C\u002Fmain>\n        }\n    }\n}\n```\n\n### Async data\n\nThe loader belongs to the view: it redraws on completion and cancels with the view.\n\n```rust\n\u002F\u002F When creating the view, with `root_with` providing `runtime`:\nlet text = runtime.load(cx, |load| async move {\n    load.background_executor()\n        .spawn(async { std::fs::read_to_string(\"welcome.txt\") })\n        .await\n});\n\n\u002F\u002F In `render`:\nlet label = match self.text.state(cx) {\n    LoadStatus::Ready(text) => text.clone(),\n    LoadStatus::Failed(error) => error.to_string(),\n    _ => \"Loading…\".into(),\n};\n```\n\n### Typed routes\n\nA destination with no registered page fails to compile:\n\n```rust\n#[derive(Clone, Route)]\nenum Destination {\n    #[route(id = \"home\", path = \"\u002F\")]\n    Home,\n    #[route(id = \"document\", path = \"\u002Fdocuments\u002F{id}\")]\n    Document(u64),\n}\n\nApp::new(\"com.example.documents\")\n    .routes(rake::routes! {\n        Destination::Home => Home,\n        Destination::Document(..) => DocumentPage,\n    })\n    .initial(Destination::Home)\n```\n\n`Home` and `DocumentPage` implement `Page\u003CDestination>`. See [routing](docs\u002Frouting.md).\n\n### Driving a running app from the CLI\n\nAn AI agent can use the same terminal commands as you. An app opts in with\n`.control(rake::control::ControlConfig::FromEnvironment)`. `rake ctl` reads and controls\nthe app; point `RAKE_CONTROL_DIR` at the `control` directory of the session printed by\n`rake dev`:\n\n```sh\nrake instances --json\nrake ctl commands list --json\nrake ctl commands run app.greet --args '{\"name\":\"Rake\"}' --json\nrake ctl inspect tree --json\nrake ctl logs list --json\n```\n\n`rake agent` works through Chrome DevTools Protocol (CDP), using the URL printed by\n`rake dev --cdp`. It finds elements, sends real input and waits for the UI to update,\nhere on the counter above:\n\n```sh\nrake agent --url http:\u002F\u002F127.0.0.1:PORT\u002FTOKEN '{\"action\":\"snapshot\"}'\nrake agent --url http:\u002F\u002F127.0.0.1:PORT\u002FTOKEN '{\"action\":\"click\",\"query\":{\"id\":\"increment\"}}'\nrake agent --url http:\u002F\u002F127.0.0.1:PORT\u002FTOKEN '{\"action\":\"waitFor\",\"query\":{\"text\":\"Count: 1\"}}'\nrake agent --url http:\u002F\u002F127.0.0.1:PORT\u002FTOKEN '{\"action\":\"screenshot\",\"path\":\"\u002Ftmp\u002Fapp.png\"}'\n```\n\nScreenshots are native-only and need the adapter started with `--capture`. See\n[connecting an agent](docs\u002Fgetting-started.md#connect-an-agent), [runtime control](docs\u002Fruntime-control.md)\nand the [CDP agent client](docs\u002Fcdp-agents.md).\n\n### Guarding quit\n\nStandalone close, routed apps and update restarts all go through the same check:\n\n```rust\nApp::new(\"com.example.editor\")\n    .quit_guard(|_| async { Err(rake::router::GuardReason(\"export is running\".into())) })\n```\n\nSee [guarded quit](docs\u002Fguarded-quit.md).\n\n### Packaging\n\nDescribe the app in `Cargo.toml` and prepare its resources in `build.rs`:\n\n```toml\n[package.metadata.rake.bundle]\nschema_version = 1\nname = \"My App\"\nidentifier = \"com.example.my-app\"\nicon = \"assets\u002Ficon.svg\"\nresources = [{ from = \"assets\u002Fhelp.txt\", to = \"help.txt\" }]\n```\n\n```rust\n\u002F\u002F build.rs\nfn main() {\n    rake_build::build().expect(\"prepare desktop resources\");\n}\n```\n\nCheck the prerequisites, preview the plan, then build. Desktop bundles default to DMG\non macOS, NSIS on Windows and AppImage on Linux:\n\n```sh\nrake doctor --distribution --package my-app --json\nrake bundle --package my-app --plan --json\nrake bundle --package my-app --json\nrake bundle --target web --package my-app --base-path \u002Fmy-app\u002F --routing path --json\n```\n\nSee [desktop distribution](docs\u002Fdistribution.md) and [packaging](docs\u002Fpackaging.md).\n\n### Updates\n\nUpdates are off by default. Enable them with an HTTPS root and your public keys:\n\n```toml\n[package.metadata.rake.bundle.updates]\nenabled = true\nchannel = \"stable\"\nbase_url = \"https:\u002F\u002Fdownloads.example.com\u002Fmy-app\"\n\n[package.metadata.rake.bundle.updates.public_keys]\nsparkle = \"packaging\u002Fsparkle.pub\"\nvelopack = \"packaging\u002Fvelopack.pub\"\nappimage = \"packaging\u002Fappimage.pub\"\n```\n\n```sh\nrake update-key generate --private-key \u002Fsecure\u002Fmy-app-velopack.key --public-key packaging\u002Fvelopack.pub\n```\n\nWith the `updates` feature, a view binds to the shared controller. Restarting to\nupdate runs your quit guards first:\n\n```rust\n\u002F\u002F When creating the view, with `root_with` providing `runtime`:\nlet updates = runtime.bind_updates(cx);\n\n\u002F\u002F In `render`:\nlet can_check = self.updates.can_check(cx);\nlet can_restart = self.updates.can_restart(cx);\n\nrake::view! {\n    \u003Cdiv class=\"flex flex-row gap-3\">\n        \u003Cbutton disabled={!can_check}\n            on:click={cx.listener(|this, _, _, cx| this.updates.check(cx))}>\n            Check for updates\n        \u003C\u002Fbutton>\n        \u003Cbutton disabled={!can_restart}\n            on:click={cx.listener(|this, _, _, cx| this.updates.restart(cx))}>\n            Restart to update\n        \u003C\u002Fbutton>\n    \u003C\u002Fdiv>\n}\n```\n\n### Publishing a release\n\nName where releases go and which targets each one must include:\n\n```toml\n[package.metadata.rake.bundle.release.publisher]\nkind = \"directory\"\npath = \"release-site\"\npublic_url = \"https:\u002F\u002Fdownloads.example.com\u002Fmy-app\"\n\n[package.metadata.rake.bundle.release.required]\naarch64-apple-darwin = [\"zip\", \"dmg\"]\nx86_64-pc-windows-msvc = [\"velopack\"]\nx86_64-unknown-linux-gnu = [\"appimage\", \"deb\", \"rpm\"]\n```\n\nThe plan loads no signing credentials and publishes nothing. The release signs,\nverifies and publishes, and a failure at any step prevents promotion:\n\n```sh\nrake release --plan --json\nrake release --json\n```\n\nSee [releasing native applications](docs\u002Fdistribution-release.md).\n\n## Try the examples\n\nFrom a clone of this repository:\n\n| Command | Shows |\n| --- | --- |\n| `cargo run -p rake-notes` | Fieldnotes, the [reference app](docs\u002Fnotes.md): search, autosave, crash recovery |\n| `cargo run -p rake-foundation` | App setup, HTTP and diagnostics |\n| `cargo run -p rake-routing` | Tabs, histories, guards and managed work |\n| `cargo run -p rake-view` | The `view!` syntax |\n| `cargo run -p rake-desktop-example` | Pages, layouts, loading and native updates |\n| `cargo run -p rake-files` | Files, clipboard and preferences |\n| `cargo run -p rake-kit-example --features kit,devtools` | GPUI Kit in routed tabs (native) |\n| `cargo run -p rake-app --example native --features native-components` | AppKit controls (macOS) |\n\n## Documentation\n\nStart at the [documentation index](docs\u002FREADME.md).\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## License\n\nLicensed under either the [MIT License](LICENSE-MIT) or the\n[Apache License, Version 2.0](LICENSE-APACHE), at your option.\n\n\n[Tray icons](docs\u002Ftray.md): multiple application-owned native items, typed commands,\nplatform appearance extensions and rich popups. Run `cargo run -p rake-tray-example`.\n","Rake 是一个基于 Rust 的 GPUI 应用框架，支持同时构建原生桌面与 WebAssembly 浏览器应用。其核心功能包括统一的应用工厂、类型化路由与多窗口管理、声明式 UI（view! 语法）、内置服务抽象（HTTP\u002F存储\u002F剪贴板等）以及面向 AI 代理的工具链（JSON Schema 命令、元素检查、Chrome DevTools 集成）。项目强调运行时可观察性与可控性，适用于需兼顾跨端交付、开发者调试效率及 AI 代理协同操作的桌面\u002FWeb 应用开发场景。",2,"2026-11-24 04:34:56","CREATED_QUERY"]