Skip to content

Introduction

Toolblox is a desktop app for managing and launching Roblox accounts. It’s built with Tauri 2: a Rust host owns every privileged operation, and a React, TypeScript, and Vite interface renders the window. Windows is the primary platform and macOS is supported. The source is public under the MIT license at github.com/BakedAleska/Toolblox.

The core app is deliberately small. It signs accounts in through Roblox’s own login page, keeps their sessions in the operating system’s credential store, launches Roblox with a chosen account and place, shows which accounts are in game, and can rejoin accounts that disconnect. Everything game-specific is meant to live in widgets: community packages that extend or reshape the app.

These docs are written for widget authors who want to go further than a small add-on panel. A module widget runs inside the app window with the same reach as the app’s own source, so building an ambitious widget means understanding the whole app: how it starts, where state lives, which Rust commands exist, how the interface is composed, and which background services run alongside it.

The docs are a guided tour of the source rather than a replacement for it. Each page explains what a part of the app does, why it’s built that way, how data moves through it, and links the exact files on GitHub. The Rust host’s item-level documentation is generated from its doc comments and published at the API reference.

Toolblox supports two kinds of widget surface, declared in the widget’s widget.json manifest:

  • Module widgets declare a module file, an ES module that Toolblox imports into the main window. Its activate export receives the host API. Module widgets are full-trust.
  • Iframe widgets declare HTML entry pages (entry, settingsEntry, dashboardEntry) that render in sandboxed iframes and talk to the host only through permission-checked messages.

A module widget can:

Capability How Reference
Add its own page registerPage(Component) renders at /widgets/<id> Pages and screens
Add a settings page registerSettings(Component) renders at /widgets/<id>/settings Host API
Replace a core screen replaceScreen("dashboard" | "accounts" | "widgets", Component) Pages and screens
Extend existing screens addToSlot(slot, Component, { order }) for accounts.row, accounts.toolbar, dashboard.stats, dashboard.sections, and sidebar.footer Slots
Restyle the whole app addStyles(css) adopts a stylesheet on the document, for example to override theme tokens Slots and styles
Use the app’s components toolblox.React and toolblox.ui expose the app’s React instance and shared components Host API
Read and react to app state getState(), useAppState(), onStateChange() Storage and state
Drive app actions navigate, notify, refresh, and join, which runs the normal Join flow Host API
Keep data storage.get/set for one JSON value, plus per-account widgetData.get/set Storage and state
Call every IPC method request(method, params) with all permissions granted, including network.fetch and process.spawn IPC
Run native helpers Declared sidecar processes under optional-bin/, fed over stdin and read from stdout Processes
Write to the diagnostic log log.debug/info/warn/error under widget:<id> Logs and failures

Toolblox’s own Settings screen is the one screen a widget can’t replace, so the app’s settings and diagnostics stay reachable whatever widgets are installed.

Every capability that needs a session, such as checking presence or joining a game, is a Rust command that uses the session internally and returns only the outcome. Widgets build on those commands instead of handling credentials. The architecture page explains this boundary in detail.

How safety works without sandboxing modules

Section titled “How safety works without sandboxing modules”

Because module widgets are full-trust, safety doesn’t come from limiting the API. It comes from:

  • Review. Release builds install widgets only from a signed catalogue, and only widgets that pass review are listed. Unpacked, unreviewed widgets load only in development builds.
  • Pinned packages. Each catalogue entry pins the package’s SHA-256 and the exact permissions its manifest must declare. Packages are verified before extraction.
  • Safe mode. Starting with --safe-mode opens Toolblox for one session without loading any widget.
  • Error boundaries. Every widget contribution renders inside an error boundary, so a crashing widget shows an inline error instead of taking down the screen around it.

Start here

How the Rust host and React interface fit together, a tour of the repository, and how to run, test, and debug Toolblox from source.

The app

Each subsystem in depth: startup and updates, accounts, commands and state, the interface, and background services.

Widget tutorials

Step-by-step guides from a first module widget to pages, slots, styles, storage, and processes.

Widget reference

The manifest, host API, slots, IPC methods, permissions, iframe widgets, and how logs and failures surface.