how ruby works
this is ruby's whole engine: everything that runs on your pc behind the screens you click. how your login is stored, every site ruby talks to, how a game starts, how each mod changes roblox's files and puts them back, and the installer. 37 files, 9,340 lines. the screens themselves and the build setup aren't here.
wondering if it's a cookie logger? start with where your session is sent, then everything the screens can ask for. if ruby can't do something in that list, it can't do it at all.
from version 1.0.4. the code is shown so you can check it, not so you can reuse it: © 2026 disk, all rights reserved. please don't copy, rebuild or redistribute it.
signing in
The sign-in window is roblox.com itself. Ruby picks up the cookie Roblox sets after you log in.
src-tauri/src/roblox/login.rs
//! Sign-in window: opens roblox.com/login in a private webview and captures//! `.ROBLOSECURITY` once the user finishes signing in. use crate::roblox::auth::set_cookie_from_embed;use crate::state::AppState;use serde_json::{json, Value};use std::sync::Arc;use tauri::{AppHandle, Emitter, Manager, WebviewUrl, WebviewWindowBuilder}; const LABEL: &str = "login"; pub fn open_login_window(app: &AppHandle, state: &Arc<AppState>) -> Result<Value, String> { if let Some(w) = app.get_webview_window(LABEL) { let _ = w.show(); let _ = w.set_focus(); return Ok(json!({ "ok": true })); } let url: url::Url = "https://www.roblox.com/login" .parse() .map_err(|e: url::ParseError| e.to_string())?; let window = WebviewWindowBuilder::new(app, LABEL, WebviewUrl::External(url)) .title("Sign in to Roblox") .inner_size(480.0, 720.0) .resizable(true) .center() // Private session so "add account" never reuses the last account's cookies. .incognito(true) .build() .map_err(|e| e.to_string())?; let app2 = app.clone(); let state2 = Arc::clone(state); tauri::async_runtime::spawn(async move { let roblox: url::Url = "https://www.roblox.com/".parse().expect("static url"); loop { tokio::time::sleep(std::time::Duration::from_millis(1000)).await; if app2.get_webview_window(LABEL).is_none() { let _ = app2.emit("login-window-closed", json!({ "signedIn": false })); break; } let Ok(cookies) = window.cookies_for_url(roblox.clone()) else { continue; }; let Some(sec) = cookies .iter() .find(|c| c.name() == ".ROBLOSECURITY" && !c.value().is_empty()) else { continue; }; set_cookie_from_embed(&app2, &state2, sec.value().to_string()); let _ = window.close(); let _ = app2.emit("login-window-closed", json!({ "signedIn": true })); break; } }); Ok(json!({ "ok": true }))}