Browser Surface

Browser Runtime and Local App Surface

The browser app is a local control surface for model selection, verified bytes, WASM transfer, generation, transcript state, and diagnostics.

01

Local-origin policy

TinyRustLM is presented as a loopback/local static app. The browser fetches local WASM, local .slm files, local manifests, local receipts, and optional selector registry entries. It does not silently call remote model APIs.

  • Local WASM
  • Local models
  • Local manifests
  • No remote inference

02

Selector registry

A selector registry declares which admitted model routes are eligible in the browser. The registry must carry model byte counts, selector budgets, manifests, adapter-family fields, module-plan receipt routes, and default strategy metadata before entries become selectable.

  • selector_model_byte_budget=33554432
  • Text sidecar budgets
  • q4 default in combined roots
  • Route drift rejection

03

Transcript and reset

The visible transcript is browser UI state. Runtime Reset clears model generation context. Clear removes transcript display. Keeping those separate prevents UI cleanup from pretending to be a runtime reset, and vice versa.

  • Clear transcript
  • Reset runtime context
  • Free loaded model
  • Step-token continuation

Plain PHP deployment notes

No WordPress bootstrap, theme system, database requirement, composer package, npm build, CDN script, Bootstrap class dependency, or jQuery dependency.

Routes are handled by index.php and server rewrites. Core content lives in data/pages.php. HTML and Markdown share the same page data.

Upload the package to the subdomain root, point Apache/Nginx to the folder, and keep .htaccess enabled for clean routes on Apache.