Skip to content

Glossary

The terms that these docs use, in alphabetical order. Each term links the page that explains it.

_meta
The route GET /api/v1/_meta. It gives the library version, the protocol version, and the tabs that have an OpenAPI document. Agents start here. See OpenAPI and wire protocol.
Built-in tab
The Network tab, the one tab in lustro itself. The other tabs that Lustro has are plugins. See OkHttp capture setup.
Capture
The Network tab's record of an HTTP request and its response, or of a WebSocket connection and its messages. The app's OkHttp interceptor, webSocketFactory, or networkCaptureSink() makes it. Captures stay in memory and end with the process. See OkHttp capture setup.
Capture budget
The memory that the Network tab can use for the bodies that it keeps: 50 MiB by default, set with captureBudgetBytes. Past it, the oldest finished transactions go first. WebSocket payloads have a budget of their own, webSocketCaptureBudgetBytes. See Configuration.
Capture filter
A NetworkCaptureFilter that the app gives to NetworkDebugTab.create. The Network tab does not record a request that the filter leaves out. See OkHttp capture setup.
Category
A label that the app's NetworkClassifier gives a request, such as Auth or Media. The Network tab shows it in the Cat column and as a filter button. See Redaction and categories.
Chrome
The parts of the console that the server sends without a token: the tab bar, the empty content area, shared.css, and shared.js. It has no tab content and no captured data. See How Lustro works.
Console
The web page at http://localhost:8080 that shows the tabs in a desktop browser. It is a client of the same JSON API that agents use. See Accessing the UI.
Cursor
An opaque string in a response of a polled route. The client sends it back with its next poll, and the server answers with what changed since then. A client must not parse it. See OpenAPI and wire protocol.
Cursor envelope
The response shape of a polled list: { cursor, status, items?, state? }. status is reset or delta with the whole list in items, or unchanged without items. A tab makes it with DebugResponse.cursorEnvelope. See OpenAPI and wire protocol and Write a tab.
DebugTab
The class that every tab extends: the Network tab, the plugins, and your own tabs. See Custom tabs.
Debuggable check
The check in Lustro.start() that refuses to open the server in a build without android:debuggable. See Release safety.
Error envelope
The response shape of every error: { error, message, code?, field?, hint? }. See OpenAPI and wire protocol.
Headless tab
A tab with showInTabBar = false. It has no link in the tab bar and no page (/tab/<id> is a 404), but its routes work, and _meta lists it with its title when it has an OpenAPI document. See How Lustro works.
Lint check
LustroDebugUsageInRelease, which lustro and lustro-noop ship. It reports a DebugTab subclass in a source set whose name does not end with debug, such as src/main or src/release, and its severity is fatal, so a release build with such a class fails. src/debug and src/<flavor>Debug pass, and it does not check test sources. See Release safety.
LustroToken line
The log line Lustro ready endpoint=http://127.0.0.1:8080 token=<token>, at the LustroToken tag. The server logs it after each bind. The CLI and agents read the address and the token from it. See Accessing the UI.
MCP server
lustro mcp, a Model Context Protocol server in the CLI, for an agent that can only call tools. The agent's client starts it for a session, and its tools call the app's routes. See With a coding agent.
Mock rule
A rule of the Network tab that answers a matching request with the response that the rule gives, or fails it with a connection error, such as a timeout. The request does not leave the device. See Mock rules.
No-op half
The release artifact of a pair, such as lustro-noop for lustro, or lustro-logs-noop for lustro-logs. It has the same public API with empty bodies, so the app's code compiles in a release build and does nothing. See Release safety.
OpenAPI document
The JSON file that describes a tab's routes: assets/lustro/<id>.openapi.json, or the return value of DebugTab.schema(), which is the document of the declared routes for a tab that declares them in routes(). The server serves it at /api/v1/<id>/_schema. Only a tab with a document is in _meta. See OpenAPI and wire protocol.
Origin check
The check that refuses a browser request from another web origin with a 403, on every method. The server's own origin, and the origins in allowedOrigins, pass it. See Security model.
Plugin
A tab in an artifact of its own, with a no-op half: Logs, Preferences, SQLite, WorkManager, and Screen. The Network tab is not a plugin: it is the built-in tab, in lustro itself. See Modules.
Port forward
An adb forward tcp:8080 tcp:8080, which connects a port on the computer to the same port on the device. The server binds a loopback address, so the computer reaches it only this way. lustro open makes the forward. See Accessing the UI and LAN exposure and port forwarding.
Redactor
A Redactor masks the sensitive headers, query parameters, and body fields of a request before the Network tab stores it. It goes by name, so it cannot find a secret under a name that it does not know. See Redaction and categories and Security model.
Runtime
The debug artifact of a pair, such as lustro or lustro-logs, which the app adds with debugImplementation. See Modules.
Sender
A named client that the Network tab's Send form sends through, made with OkHttpSender.create. See Send Request.
Shared capability
The Gradle capability that the runtime and its no-op half both declare, such as io.github.twinsen81:lustro-runtime. Gradle refuses to put both halves on one configuration. See Release safety.
Stream envelope
The response shape of a polled list that only grows at its end, such as a log: { cursor, status, items?, dropped?, state? }. A delta has only the entries after the client's cursor, and dropped counts the entries that the list removed before the client got them. A tab makes it with DebugResponse.streamEnvelope. See OpenAPI and wire protocol.
Tab
One tool of the console, such as Network or SQLite, and its JSON routes under /api/v1/<id>/. A tab is a DebugTab in the app's process. See How Lustro works.
Token
The random 256-bit secret that every API request needs, as Authorization: Bearer <token> or as the console's lustro_token cookie. The app makes it once and keeps it until its data is cleared, or with LAN exposure makes a new one in each of its processes. See How Lustro works.
Value policy
How much of a value the Preferences and SQLite tabs show. VISIBLE shows every value. MASK_SENSITIVE, the default, masks the values whose key or column name looks like a secret, such as password or access_token. The Preferences tab also has KEYS_ONLY, which shows no values. See Preferences and SQLite.
Wire protocol
The shapes that every tab shares: the error envelope, the list pagination envelope, the cursor envelope, and the stream envelope, with their JSON Schemas and versioning rules. See OpenAPI and wire protocol.