Wiktrix

Wiktrix shows every edit to English Wikipedia as Matrix digital rain, live, in green phosphor on black. Try the demo or read the code on GitHub.
Reflection
My reflection while building this was really serendipitous. Dan Vega (Spring Developer Advocate) was showing a new library being used in Spring for handling streams. Dan showed how Project Loom and structured concurrency now enable what the reactive streams (async) style couldn’t: those were often harder to follow and debug. I didn’t dive much into stream-source, but it gave me an epiphany for an idea I’ve had for a long time: seeing events or activities, such as news events from around the world, as Matrix digital rain, slowly dropping them down.
As I iterated, I saw more and more, and realised I could make it more immersive: instead of opening links in a new tab, we can have a built-in virtual browser.

AI was incredibly helpful, even suggesting whether I should use some kind of green phosphorous glowing look for the images (plan mode was key for this).
In my opinion, and an opinion many other developers hold, the idea of building will always be there, even when AI makes it possible for us to delegate coding. I had a lot of fun building this, and it cements the idea in me that building was what we really did enjoy. That’s hard for others to swallow. I too do enjoy writing code by hand; however, focusing on realising an idea I’ve had, and AI making it more approachable, is one of the best experiences.
I acted more like a creative director for this project, and that is the point. I saw it more like a creative outlet. This was a fun weekend project.
I had lots of fun going down the rabbit hole with Wiktrix. It indeed was a fun way to quench curiosity. Building is iterative, and sometimes you don’t know everything upfront. You nudge the machine a bit to your vision. It was like this even before AI; the feedback cycles were just longer.
Decisions
- GraalVM native image. I turned this into a GraalVM native image because my server is resource constrained.
- Fetching pages from the backend. Due to some CORS/iframe issues, I fetch web page content for the built-in browser from the backend.
Under the hood
- Wiktrix is a fork of Dan Vega’s
stream-source-live-editsdemo. The edits come from the public Wikimedia EventStreams service. - The backend reads the stream with stream-source: a plain blocking
whileloop on a virtual thread that writes each edit to the browser as a Server-Sent Event. - Each column is one edit: the article title, the editor, the type of change and the bytes added or removed. Hover a column to unfold it into a line you can read, and click it to open the article in the built-in browser.
- Because the backend fetches pages for the built-in browser, it acts as a small proxy. It only fetches public http(s) pages, checks every host and redirect so nobody can point it at localhost or the private network, caps the page size, and only returns HTML.
- The native binary is deployed behind nginx. Server-Sent Events need buffering turned off, or nginx holds edits back and the rain stutters.