Nova Break
- 3 Devlogs
- 5 Total hours
Nova Break
Nova Break
Last time, I built the background automation engine for NOVA Break — the lightweight, non-blocking browser extension that visually suggests breaks by injecting a miniature, Interstellar-style anomaly directly over your active tab.
My goal today: upgrade that basic overlay into a stunning, hardware-accelerated Three.js raymarching canvas layer.
Easy, right? …Right?
The moment I pushed my gravitational lens formulas into a standard 3D bounding sphere, everything broke.
The fragment shader executed the raymarching math twice — once on the front face, once on the back face.
The Fallout:
No matter what I tried, the effect stuttered, broke apart, or turned into a weird golden mustache clipping at the edges.
The double-image artifact gave it away. The math wasn’t wrong — the geometry container was simply too deep.
Treating the simulation as a full 3D sphere volume meant computing spatial warping across layers of empty air. Worse, the canvas matched the entire 100vw layout, becoming an invisible wall that swallowed every click and text selection underneath.
I tore out the 3D bounding geometry entirely and engineered a 2D plane geometry pass, restricted to a floating 450px × 450px container centered on screen.
Optimization Breakdown:
pointer-events: none.#blackhole-canvas-root {
position: fixed;
top: 50%;
left: 50%;
width: 450px;
height: 450px;
transform: translate(-50%, -50%) scale(1.0);
transition: transform 4.5s cubic-bezier(0.34, 1.56, 0.64, 1);
pointer-events: none;
z-index: 100000;
}
The Result:
Ghosting gone. The black hole now grows from zero, drifting at a flawless 60 FPS, while every background link, button, and text field stays fully interactive.
And this masterpiece won the Hack Club Showcase! 🎉
Take a look at the before-and-after photos below. Would love your feedback in the comments!
Zero frame drops. Zero laptop sacrifices.
Live Demo:
For anyone new to the project:
•It is an Browser extension for people who hate productivity apps.
• Creates a cinematic 3D black hole after a period of work.
• No popups, notifications, or screen locks.
• Can be completely ignored.
• Slowly grows if you keep working as a gentle reminder to take a break.
The live demo is a quick web sandbox built so anyone can test the 3D black hole mechanics instantly without installing the extension. The actual project is a full Chrome extension that runs the exact same script to inject the anomaly into your real browser tabs!
pointer-events: none so the effect never interferes with the page. Finding the right growth rate took a lot of tweaking too—too fast and it’s annoying, too slow and nobody notices it.My goal isn’t to make another productivity app—it’s to create a small sci-fi experience that reminds you to take a break without getting in your way.