Local Development
May 26, 2026 ยท View on GitHub
Use this tutorial to run Lens locally and connect it to your Arc backend.
Prerequisites
- Node.js 20 or later
- Yarn
- Chrome or another Chromium-based browser
- A running Arc application on your machine
1. Install dependencies
From the repository root, install dependencies for the extension:
cd Source
yarn
Yarn should install all dependencies without errors.
2. Build the extension
Build the extension bundle:
yarn build
This generates Source/dist/, including manifest.json.
3. Load Lens in your browser
- Open
chrome://extensions. - Enable Developer mode.
- Select Load unpacked.
- Choose the
Source/distfolder from this repository.
The Lens - Cratis Developer Tools extension should now appear in your extension list.
4. Open Lens on an Arc application page
- Navigate to your Arc application in Chrome.
- Open the Lens extension popup once on that page so Lens can detect Arc context.
- Open the extension options page from the extension details.
- Keep the default Tenant Header Name unless your app expects a different header.
- Select Save Settings.
Lens now uses the detected Arc context and current page location for command and query introspection.
5. Use watch mode while developing
Run this in Source/ during active development:
yarn dev
Vite rebuilds the extension when you change source files. Reload the
extension in chrome://extensions after each rebuild.