sobra.be/lab

Lab.

This is where I try things out: old CodePens getting a second life, and ideas that don’t fit anywhere else yet. Everything runs right in your browser, so go ahead and play.

Looking for real games? Those are on games.sobra.be (opens in a new tab).

Experiments
12
Last change
Build
17dd48c7
Frameworks
0
  1. EXP-001 · Stable

    Gravitron

    A solar system in your browser, with the orange dot as its sun. Tap to add planets, drag to fling them, and save what long exposure makes of it.

    Origin
    CodePen, rewritten in 2026
    Tech
    Canvas 2D · requestAnimationFrame · n-body gravity · Pointer Events · Web Share
    Input
    Tap · drag · keyboard
    Source
    566 lines · 23.4 kB
  2. EXP-002 · Stable

    Googly Eyes

    Plastic eyes with loose pupils. Drag them, shake them, tilt your phone, or turn on the camera and wear a pair yourself.

    Origin
    CodePen, rewritten in 2026
    Tech
    Canvas 2D · Pointer Events · Device Motion · getUserMedia · MediaPipe face detection
    Input
    Drag · tilt · camera
    Source
    2230 lines · 91.2 kB
  3. EXP-003 · Stable

    Overhead

    The sky over you, drawn from live open data. Wind, temperature, clouds and rain set the lines; the sun, the moon and the ISS sit where they really are.

    Origin
    New in 2026
    Tech
    WebGL2 · Canvas 2D · Flow field · Open-Meteo · USGS · Geolocation · Device Orientation
    Input
    Pointer · touch · compass · location
    Source
    1674 lines · 71.3 kB
  4. EXP-004 · Stable

    Ludicrous Desk

    A tiny roadster with rocket thrusters races around a very big desk. Boost, kickflip over traffic, stick the loop, and land your stunts in bullet time.

    Origin
    New in 2026
    Tech
    three.js · WebGL · Arcade physics · Bullet time · Pointer Events
    Input
    Keyboard · touch
    Source
    6435 lines · 279.5 kB
  5. EXP-005 · Stable

    Roadster Landing

    A Roadster flies off a half loop, upside down and spinning. Flip it back onto its wheels with a few thrusters and land it on one of three pads, the further the better. Or watch it all go up.

    Origin
    New in 2026
    Tech
    three.js · WebGL · Rigid-body flight · Pointer Events
    Input
    Keyboard · touch
    Source
    3100 lines · 132.0 kB
  6. EXP-006 · Beta

    Cartoon Street

    Walk through a cartoon version of your street, built from open data. Type your address and find your house. Flanders only. Other regions are untested.

    Origin
    New in 2026
    Tech
    three.js · WebGL · OGC API Features · WCS · WMS · Geolocation · Device Orientation · Pointer Events
    Input
    Keyboard · touch · phone orientation · location
    Source
    2297 lines · 115.3 kB
  7. EXP-007 · Stable

    Bath Time

    Your screen is the edge of a bath, with rubber ducks in the water behind it. Tilt your phone to make waves, and poke a duck to hear it squeak.

    Origin
    New in 2026
    Tech
    three.js · WebGL · Shallow-water simulation · Device Motion · Web Audio · Pointer Events
    Input
    Tilt · shake · touch · keyboard
    Source
    5419 lines · 246.3 kB
  8. EXP-008 · Beta

    Unplug

    A small creature with a language model for a brain, running on your own phone or computer. Feed it, throw it a ball, talk to it, or pull its plug.

    Origin
    New in 2026
    Tech
    WebLLM · WebGPU · llama.cpp (wllama) · Prompt API · SVG · Pointer Events · Vibration API
    Input
    Touch · keyboard · typing
    Source
    2485 lines · 114.0 kB
  9. EXP-009 · Beta

    Tether

    Swing from ring to ring on a cable. Hold to grab, let go to fly, and get to the last block as fast as you can. Every run is a new world.

    Origin
    New in 2026
    Tech
    Canvas 2D · Verlet integration · Web Audio · Pointer Events
    Input
    Touch · mouse · keyboard
    Source
    1196 lines · 50.1 kB
  10. EXP-010 · Beta

    Onlooker

    A curious little thing in your computer that looks at you through the camera. It follows your face, hands and body, guesses your mood and names what you hold up.

    Origin
    New in 2026
    Tech
    MediaPipe · Segment Anything · Transformers.js · WebGPU · Web Workers · Canvas 2D · getUserMedia
    Input
    Camera · tap · drag
    Source
    2150 lines · 105.9 kB
  11. EXP-011 · Beta

    Bones

    A Halloween X-ray. Turn on the camera and see yourself as a real skeleton, under a bed sheet or as a pale cloud. Open your mouth and the jaw drops.

    Origin
    New in 2026, for Halloween
    Tech
    three.js · WebGL · Bloom · MediaPipe pose, face and hand landmarkers · Selfie segmentation · Web Workers · getUserMedia
    Input
    Camera · pointer
    Source
    2546 lines · 123.7 kB
  12. EXP-012 · Beta

    Gather

    A few hundred dots, each thrown somewhere by the new CSS random() function. Scroll or drag and they gather into whatever you type. Throw them again for a different mess.

    Origin
    New in 2026
    Tech
    CSS random() · @property · color-mix() · Container query units · Canvas 2D · Pointer Events
    Input
    Scroll · drag · typing
    Source
    553 lines · 24.6 kB
  13. EXP-013 · In the works

    The next experiment is still on the drawing board.

Logbook

The latest changes to the lab, straight from git.

  1. 17dd48c7 fix: one jaw and one neck on the Bones skeleton
  2. c2ea88ec feat: Onlooker follows up to four faces on a computer, three on a phone
  3. 7be46595 fix: load Googly Eyes' face model from Google instead of sobra.be
  4. e67796c1 fix: Onlooker's silhouette and face tracking on phones
  5. 97037757 fix: Onlooker's back camera on Android, and no SAM on phones
  6. 9b2b4a69 feat: Onlooker sees more things and names what you hold
  7. b1ca86d5 feat: Onlooker studies a thing once, and can use the back camera
  8. daa8e080 perf: Onlooker's tracking and SAM leave the main thread