Skip to main content
Frontend card methods handle user configuration changes, parse terminal feeds for server URLs, and populate description fields in card details modals.

Server URL detection

LynxHub launches a companion browser tab automatically when a card starts its server process. To enable this, your card must inspect the console stream and locate the active address.
  • Method: catchAddress(line: string): string | undefined
  • Responsibility: Checks each incoming line of terminal output. Returns the web address (URL) if discovered.

Example


Arguments serialization

If your card supports custom parameters, you must implement serialization methods. These serialize argument states into command parameters and reconstruct argument views from saved commands.
  • Methods: parseArgsToString(args: ChosenArgument[]): string and parseStringToArgs(args: string): ChosenArgument[]
  • Responsibility: Converts the React UI arguments state array into a single execution string, and parses configuration strings back into the UI state.

Example


Card details modal

You can populate metadata and status details dynamically when users open a card’s info dialog.
  • Method: cardInfo(api: CardInfoApi, callback: CardInfoCallback): void
  • Responsibility: Queries the local environment using the helper api parameter and pushes formatted fields to the view via the callback interface.

Example

Last modified on June 21, 2026