PocketLAB PocketLAB

Vibe code games and tools for your Brick Pro.

PocketLAB is an open source app library and SDK for the TrimUI Brick Pro. Build a game or tool on your computer, send it over USB, and use it with the Brick’s physical controls.

View on GitHub
TrimUI Brick Pro with the PocketLAB app library on its screen
Drag to rotate
Platform
TrimUI Brick Pro · TG4040
My role
Design, development, and release
Release
v1.1.0 · MIT license · 2026

The library

A handheld you can extend.

OpenAI Supply Co.’s ModRetro Chromatic: Codex Edition release inspired PocketLAB. I wanted to make it possible to try new tools without changing how the Brick starts up. PocketLAB opens from the stock Apps menu and gives the games and tools you make a place alongside the two included apps.

PocketLAB library · 1024 × 768 interface render

Design decisions

Built around the Brick.

Keep the stock operating system.

PocketLAB installs as an app. On a working stock card, the installer writes to PocketLAB’s own folder, so the rest of the handheld stays familiar and existing games and saves stay in place.

Use the computer for building.

The coding agent and compiler run on the computer. The SDK sends the finished app over USB so it can launch from the library and run on the Brick when the computer is unplugged.

Design for the buttons.

The 4:3 display presents two large choices at a time. The row of button labels changes with the screen, so you can see the action and the physical control that goes with it.

Bundled example apps

An instrument and an arcade game.

PocketLAB comes with two examples. ESP32 detector inspects a connected USB board. Starfall is a space shooter you play with the Brick’s buttons and stick.

Inputs and outputs.

  • Controls

    D-pad, A/B/X/Y, dual sticks with L3/R3 clicks, L1/L2/R1/R2, Menu, Select, Start, and Home. System controls include the Fn lock switch, Power, Volume +/−, and Reset.

  • Screen and audio

    1024 × 768 display, stereo speakers, 3.5 mm headphone jack, and microphone.

  • Connections

    Wi‑Fi and Bluetooth. Rear USB‑C for peripherals, bottom USB‑C for app transfers.

Compatibility and SDK details

Use SDL2 for the controls in the SDK’s controller map, plus graphics and sound. Test additional controls, including the right stick, on your Brick. USB data exchange requires a compatible driver and protocol.

Test Wi-Fi and Bluetooth on your device. The microphone, RGB lights, and vibration motor have no documented API in PocketLAB v1.1.0.

Mini app concept

A handheld remote for your coding agent.

“Build me a remote for my coding agent. Let me switch sessions, run tests, and hear when they finish.”
  • D-pad

    Switch between coding sessions.

  • A button

    Run tests for the selected project on your computer.

  • Screen and sound

    See the result and hear a chime when the tests finish.

A companion you build on your computer would relay commands and results over your local network. The agent and tests would run on the computer.

Public release

What shipped.

PocketLAB comes with the app library and two example apps, ESP32 detector and Starfall. The source download includes the SDK, setup tools, and two skills for coding agents.

Use the device setup skill to install, update, or recover PocketLAB, and the mini-app skill to create, build, and run your own apps on the Brick.