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
lustroitself. 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, ornetworkCaptureSink()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
NetworkCaptureFilterthat the app gives toNetworkDebugTab.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
NetworkClassifiergives a request, such asAuthorMedia. 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, andshared.js. It has no tab content and no captured data. See How Lustro works. - Console
- The web page at
http://localhost:8080that 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? }.statusisresetordeltawith the whole list initems, orunchangedwithoutitems. A tab makes it withDebugResponse.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 withoutandroid: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 a404), but its routes work, and_metalists it with itstitlewhen it has an OpenAPI document. See How Lustro works. - Lint check
LustroDebugUsageInRelease, whichlustroandlustro-noopship. It reports aDebugTabsubclass in a source set whose name does not end withdebug, such assrc/mainorsrc/release, and its severity is fatal, so a release build with such a class fails.src/debugandsrc/<flavor>Debugpass, and it does not check test sources. See Release safety.LustroTokenline- The log line
Lustro ready endpoint=http://127.0.0.1:8080 token=<token>, at theLustroTokentag. 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-noopforlustro, orlustro-logs-noopforlustro-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 ofDebugTab.schema(), which is the document of the declared routes for a tab that declares them inroutes(). 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 inallowedOrigins, 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
lustroitself. 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 openmakes the forward. See Accessing the UI and LAN exposure and port forwarding. - Redactor
- A
Redactormasks 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
lustroorlustro-logs, which the app adds withdebugImplementation. 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? }. Adeltahas only the entries after the client's cursor, anddroppedcounts the entries that the list removed before the client got them. A tab makes it withDebugResponse.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 aDebugTabin 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'slustro_tokencookie. 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.
VISIBLEshows every value.MASK_SENSITIVE, the default, masks the values whose key or column name looks like a secret, such aspasswordoraccess_token. The Preferences tab also hasKEYS_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.