From a One-Room Dungeon to Relay Gate

By TJ Murphy ·

The gate room, with glowing gates to Orsay, Bilbao, Uffizi, Guggenheim NY and the Hyperspace Realm

I hung my paintings in a torch-lit dungeon, and then machine elves started climbing out of them. That dungeon took me about a week. What came out of it is bigger: Relay Gate, an open-source tool that will let any artist turn their website into a gallery people can walk through, with gates to other artists' galleries.

Two first rooms

My first 3D gallery went live on tjm.art on Oct 10, a single room built with Babylon. The dungeon at tjm.art/play was a separate build. I launched it on Oct 15. It's Doom-style, meaning you walk through it in first person like the old 1990s shooter, and it started from a three.js example, with my paintings pulled from my shop pages and pixel-art textures, torches and elves made in code. The two ran side by side until I retired the Babylon room and pointed it to /play.

The entrance of the TJM Gallery dungeon hall, with a hologram of me and the checkout gate

Next I gave it two tool slots, a Paint Gun and a Buy Wand. On Oct 16 I gave it a more realistic look, with quality settings that adjust to your device. The same day I added video holograms of myself in all four rooms, hologram volume that changes with distance, a mute button, a button back to tjm.art, and my three art books on lecterns that you can open and read.

A torch-lit stone hall lined with my paintings

Adding things, then making them better

Oct 17 is when it turned into a game. I added paint splats and machine elves: little floppy-hat creatures with arms and legs that swarm out of the art. Some of the early game text had edgy wording, and I took all of it out. Now the screen says "Machine elves deployed."

A swarm of machine elves climbing out of the paintings

At first the elves froze you in place. I didn't like that, so I made them chase you instead, and later made the chase fairer: they now climb out of the paintings behind you. Every third swarm drags you into the Hyperspace Realm, an other-world you visit for about 18 seconds before landing back in the gallery.

A giant machine elf erupts from the floor on the way into the Hyperspace Realm

The gravity gun lets you grab paintings, hang them and launch them. When I hang them, the layout saves, so I can rearrange my own gallery from inside it. A soup thermos replaced the paint gun. I added a glitter cannon and a leaf blower, and later gave the leaf blower enough force to knock elves back.

The gravity gun in front of a wall of sunset paintings
The glitter cannon spraying confetti in the Burning Man and Bass Coast room

The tool I care about most is the Buy Scanner. The wand became the Buy Scanner on Oct 17. Right now you point it at a painting to add it to your cart. I decided it should be on by default, with Esc opening the cart. I took prices off the plaques and the cart list, and plaques go beside paintings.

The Buy Scanner in hand, aimed at a wall of paintings

Small things mattered too: sprinting (Shift, or a RUN toggle on phones), quiet footsteps that change with the floor, and a guide drone that finds its way through doorways.

Easter eggs

There are more than a dozen. You can find a money printer, bobbleheads, a pizza, a banana, a cardboard box, a starship, a slender figure, a guide bot that waits nearby with your cart, and more.

Easter egg: Satoshi's desk with a laptop and a newspaper
Easter egg: a purple ostrich next to the soup thermos

Gates to other museums

Early on Oct 18 I added a gate room. Down a hallway, glowing gates lead to the Hyperspace Realm and to versions of the gallery set in the Musée d'Orsay, the Guggenheim Bilbao, the Uffizi and the Guggenheim in New York. Walking through one plays a hyperspace tunnel and drops you in the next place.

The Musée d'Orsay version of the gallery, under the great clock

Under the hood, every gallery now runs on one shared codebase as a single app under tjm.art/play, with its own link for each museum, such as /play/orsay/. Images load from my own image server, and the site deploys through Cloudflare.

Chase Toole's dungeon

Chase and I had talked about a 3D walkthrough gallery for a long time, and he'd mentioned you could build one with something like three.js. When I showed him the dungeon, he said he wanted one, that it was awesome and a really useful tool.

So I built him a version. His dungeon went live on Oct 17 with 82 works in five rooms, running from his own website on his own Cloudflare account. It kept growing alongside mine: a sci-fi restyle, a Montreal Museum of Fine Arts gallery built from the real campus plan, an elf pianist at the Bourgie piano, sprint and footsteps, the gate room, and on Oct 19 the shared gallery code with the Buy Scanner and phone controls. Montreal uses Chase's own cart.

That was the moment it clicked. If the same gallery can run from my site and from Chase's, it can run for any artist.

Relay Gate

Relay Gate is an open-source project I'm working on, under the MIT license. The way I described it on Oct 18: a simple, very lightweight gallery that's populated just by giving a URL. Put the URL in, walk through the slipgate, and the paintings are on the walls.

The other half is connection, and that's built on Nostr. Nostr is an open network where your identity is a key you own, not an account a company can take away. Your gallery is signed with that key, so it stays yours wherever it's hosted. Relays are the servers that pass Nostr posts around, and anyone can run one, so galleries can be found without one central directory. A gate is a link from one artist's gallery to another's, tied to the artist's key rather than a web address.

The Bitcoin half is about getting paid directly. Lightning zaps are small Bitcoin tips sent straight from a viewer to the artist. Sales would go through the artist's own BTCPay or existing shop.

Visitors will open an ordinary link and see the art without an account or a wallet. The first visit will be calm: just the art, with the game parts behind a deliberate choice.

The plan also includes a forum: a shared place where artists show their work and talk with each other, and where anyone can come walk through and view art.

Right now the site importer works. Publishing to Nostr, the viewer, payments and the forum are planned, not built. Relay Gate is what I want to turn into something big: a network of artists who host their own galleries, link to each other, and get paid without a middleman.

Two things you can do now:

Follow along here on my blog, on Nostr and on X.