codelocator-web
v0.1.0
Published
Web workbench for capturing Android CodeLocator layouts and asking Codex about selected views.
Downloads
151
Maintainers
Readme
CodeLocator Web
CodeLocator Web is a browser workbench for Android apps that have integrated the CodeLocator SDK. It captures the current device layout through ADB, renders the screenshot and View tree, and can send selected View context to Codex for analysis or small code changes.
Requirements
- Node.js 20 or newer.
- ADB available in
PATH, or pass it with--adb. - One connected Android device, or pass a device serial with
--serial. - The target app must integrate CodeLocator and expose the layout capture broadcast.
Usage
Run directly with npx:
npx codelocator-web --project-root /path/to/android/projectUseful options:
npx codelocator-web --project-root . --port 5123
npx codelocator-web --project-root . --serial R5CN0000000
npx codelocator-web --project-root . --adb /path/to/adbAfter the server starts, open the printed URL in a browser. By default it listens on:
http://0.0.0.0:5123CLI
codelocator-web --project-root <path> [--serial <deviceSerial>] [--port <port>] [--adb <adbPath>]Development
npm install
npm run dev
npm run build
npm test