Skip to content
> bensibjarna
  • HOME
  • PROJECTS
  • LAB
  • GALLERY
  • BLOG
  • CONTACT
  • SUPPORT
  • EN/IS
  • HOME
  • PROJECTS
  • > LAB
  • GALLERY
  • BLOG
  • CONTACT
  • SUPPORT
  • EN/IS

bensi@portfolio:~$ ls ./lab

Lab

Small experiments with what a browser can do today, and with showing how a page is designed. Each one is a single page, made to be poked at.

> CAMERA

One permission for all of them, and the camera stays on while you move between them. Everything runs in your browser; no video is uploaded.

open the camera lab →
  • ./camera/palettePalette from the world→Point the camera at anything, a jacket, a sunset, a shopfront, and pull out a palette. A sample site restyles itself in those colours.getUserMedia · Color quantizingCamera, no modelCameraDesign
  • ./camera/windowHead window→The screen becomes a window into a room. Move your head and you see around the corners; lean in and the room opens up.MediaPipe face · CanvasCamera, runs on deviceCamera
  • ./camera/slitscanSlit-scan→Your camera cut into thin bands, each from a slightly different moment, so anything that moves bends through time.getUserMedia · CanvasCamera, no modelCamera
  • ./camera/exposureNEWLong exposure→The camera as a shutter that never closes. Paint with your phone's torch, or keep only what moves and watch the room vanish around you.getUserMedia · Canvas blend modesCamera, no modelCameraDesign
  • ./camera/handsCrush it→Your hands on camera: pinch a block to pick it up, throw it, close your fist on it and it shatters into glyphs.MediaPipe hands · getUserMedia · CanvasCamera, runs on deviceCameraPlay
  • ./camera/asciiASCII mirror→Your webcam drawn live in characters: plain ASCII, matrix katakana or blocks. Save a snapshot.getUserMedia · CanvasCamera, runs on deviceCamera

> EVERYTHING ELSE

  • ./raceTyping race→Race a ghost through a sentence, with the recorded keyboard under your fingers. Pick the ghost's speed and beat your best.Input events · Web AudioBest with a keyboardPlaySound
  • ./invadersNEWType invaders→Words fall out of the sky and the keyboard is the gun. Type a word to lock on, finish it to blow it apart, and survive the waves.Canvas · Keyboard events · Web AudioKeyboard, or the phone'sPlaySound
  • ./flashlightFlashlight→A dark attic page and a torch. Sweep the light around to find the notes hidden in the margins.clip-path · Pointer EventsWorks everywherePlay
  • ./fogBreathe on it→Blow into the microphone and the screen fogs up like a cold window. Draw in it with your finger; it slowly mists over again.Microphone · Canvas compositingMicrophone, or hold to breathePlaySound
  • ./osBJARNA OS→The portfolio as a little desktop: drag and resize windows for projects, photos, notes, a shell and a trash can full of the 2000s.Pointer Events · Window managerBest on a computerPlayDesign
  • ./cordPull cord→A real dangling cord in the corner. Tug it and the screen powers down like a tube: to a line, to a dot, to dark.Verlet physics · CanvasWorks everywherePhysics
  • ./clothNEWTear the flag→An Icelandic flag made of a thousand points on a pole in the wind. Grab it, pull it, and if you pull hard enough it tears.Verlet cloth · CanvasWorks everywherePhysicsPlay
  • ./hoverHover index→Projects as big type. A preview follows the cursor on a spring and leans as you move; names decode as you pass them.Springs · Text scrambleBest with a mouseDesign
  • ./weatherLive weather→Reykjavík's weather falls on the page. Snow settles on the tops of real elements, rain splashes off them, the pointer is an umbrella.Open-Meteo · Canvas · Layout measuringWorks everywhereLive dataPhysics
  • ./windNEWWind over Iceland→Live wind from sixty points around the country, drawn as thousands of particles streaming over the island. Hear it pick up.Open-Meteo · Flow field · Web AudioWorks everywhereLive dataPhysics
  • ./glitchGlitch darkroom→Gallery photos, or your own, run through pixel sorting, torn VHS slices, RGB shift and crush. Save the result.Canvas pixels · Next image optimizerWorks everywhereDesign
  • ./boardReykjavík board→A split-flap board with live Reykjavík data: weather, sun, aurora forecast and the latest earthquake, clacking into place.Fetch · Open data · Web AudioSound onLive dataSound
  • ./beatsNEWDrum machine→Sixteen steps, six voices: synthesized drums next to the homepage's real keyboard and pen. Swing it, and the pattern lives in the link.Web Audio scheduling · URL state · Web ShareSound onSoundPlay
  • ./postcardPostcard link→Write a card and the link becomes the card: paste it in a chat and the preview image shows your message.Open Graph · next/og · Web ShareSend it to someonePlay
  • ./breakoutBreak the page→The words of a real paragraph are the bricks. Bounce a ball off a paddle and clear the page, one word at a time.DOM measuring · TransformsWorks everywherePlayPhysics
  • ./particlesParticle name→The name made of particles that run from your pointer and find their way back. Double-tap to blow it apart.Canvas · SpringsWorks everywherePhysics
  • ./terminalTerminal→A shell that slides up over any page: cd between pages, open projects, check the weather in Reykjavík, find the hidden commands.Keyboard events · FetchPress ` or /, or tap the buttonPlayLive data
  • ./guestbookGuestbook→Sign with your finger or mouse. The wall replays every signature at the speed it was written, with a real pen sound.Pointer Events · Coalesced events · Web AudioBest with a finger or penPlaySound
  • ./lettersFalling letters→The headline is plain text until you let it fall. Then every letter has weight: grab one, throw it, tilt the phone.Physics · Transforms · DeviceOrientationWorks everywherePhysics
  • ./containerContainer queries→One card component that redesigns itself to fit the box it is in, from a chip in a sidebar to a full-width feature.@container · TailwindWorks everywhereDesign
  • ./redesignBefore / after→Drag across a redesign pitch: the old site on the left, the new one on the right, and what changed underneath.clip-path · Pointer EventsWorks everywhereDesign
  • ./xrayX-ray mode→Press X and the page shows its own design: grid, spacing, type sizes, colors and easing curves, read live from the CSS.getComputedStyle · ResizeObserverWorks everywhereDesign
  • ./scrollyNEWScroll-driven→A redesign pitch that builds itself as you scroll: a phone that changes screens, numbers that count up, type that lands. Not one line of JavaScript moves.animation-timeline · view() · @propertyChrome, Edge, Safari 26Design
  • ./cursorsLive cursors→Other visitors' cursors on the same page. Open it in two windows side by side and move around in one.BroadcastChannel · Pointer EventsOpen two tabs or windowsLive dataPlay
  • ./crtCRT shader→A real tube on the GPU: curved glass, phosphor afterglow, color fringing and a glare that follows your pointer.WebGPU · WGSL · CanvasChrome, Edge, Safari 26Design
  • ./skyIcelandic light→Colors that follow the real sun over Reykjavík. Scrub to a dark December afternoon or the midnight sun in June.Solar math · CanvasWorks everywhereLive dataDesign
  • ./tiltTilt the rain→Tilt your phone and the rain falls the way gravity pulls. On a computer, your pointer is gravity.DeviceOrientation · CanvasBest on a phonePhysics
  • ./morphMorphing views→A card grows into its own detail page and back again, with the browser animating between the two layouts.View TransitionsChrome, Edge, Safari 18+Design
  • ./synthKeyboard synth→The keyboard and pen sounds from the homepage, turned into an instrument with an oscilloscope.Web Audio · AnalyserNodeSound onSoundPlay