Spacemouse

Open source · research prototype

Steer a CT slice with your phone.

Hold your phone like the slice. Press the clutch, tilt, and an oblique MPR plane follows your hand through the CT volume in a browser DICOM viewer. No headset, no app, no special hardware.

The phone is the slice: tilt it and the plane tilts with it.

How it works

Two pages in one small TypeScript app. The viewer runs on your computer and renders with Cornerstone3D. The controller runs in Chrome on your phone and sends only pose, touch and command messages.

1

Open a CT

Load a DICOM series in the viewer on your computer. The files stay in that browser tab.

2

Pair your phone

Connect over USB or wireless debugging and scan the QR code. Everything stays on 127.0.0.1.

3

Hold the clutch and tilt

The plane rotates exactly as the phone does. Swipe to change depth or pan. Let go to freeze the view.

Private by design

Built for imaging data from the start.

  • DICOM files never leave the viewer's browser tab.
  • No upload endpoints anywhere.
  • The relay carries pose, touch and command messages only.
  • The dev server listens on 127.0.0.1 and is not exposed to any network.
  • Phone sensors use relative orientation, so no compass and no calibration dance.

Get started

You need Node 22, Chrome on an Android phone, and Android platform tools for adb. Bring your own anonymised or public CT data.

Read the full guide
git clone https://github.com/Rad-Assistant/Spacemouse.git
cd Spacemouse
npm install
npm run dev

# viewer:     http://127.0.0.1:5173/viewer.html
# controller: npm run phone, then scan the QR code

Roadmap

Contributions are welcome at every stage.

Now

CT oblique MPR

Phone orientation drives a free plane through a CT volume, with touch for depth and pan.

Next

Room-scale position

WebXR on ARCore phones moves the pivot as if the patient lay in front of you.

Later

PET-CT and CT-MR fusion

Steer fused volumes with the same gesture.