Upload a photo, get back what the machine sees: objects, text, and the scene, drawn right on top of your image.
There are two ways to run the same app, and they can run at the same time.
| Server | Browser | |
|---|---|---|
| Run | bun run index.ts |
bun run wasm-app/serve.ts |
| Open | http://localhost:3000 | http://localhost:3001 |
| Inference | cactus CLI on your machine |
WebAssembly in the tab |
Needs cactus installed |
yes | no |
The browser version downloads the engine and weights on first use (~23 MB), then caches them. Nothing is uploaded: the image is read in the tab.
- Bun: the JavaScript runtime (bun.sh)
- cactus: with the
mirage describecommand available on your PATH (server version only) -pip install -U cactus-compute
bun install
bun run index.tsThen open http://localhost:3000 in your browser.
For the browser version:
bun run start:wasmThen open http://localhost:3001.
The browser version is plain static files: no server code runs after page
load. Anything that serves files works: python3 -m http.server
cd wasm-app && python3 -m http.server 8000- Drop an image onto the page (or click to browse).
- Hit Describe image.
- Browse the results:
- Boxes, masks, and labels overlaid on your photo
- Object and text lists in the right panel: hover to highlight, click to pin
- A Min confidence slider to hide weak detections
- Raw JSON output at the bottom of the middle column
- Clear resets everything for the next image.