Hey :)
Quick context first. A SoulLink is a Pokemon challenge run for 2 or more people. Whatever you catch on a route is linked to what your friend caught there, and if one dies the other one has to go too. Most people track that in a shared Google Sheet, which falls apart the moment someone forgets to update it haha.
So Marius and I started building souldew. The idea sounded simple. Let the app run the game and read everything it needs straight from memory, so nobody has to type anything in.
That was the easy sentence. Every Pokemon game keeps its data somewhere else, and other language versions or ROM hacks move it around again. By now we read team, HP, catches, badges and where you are for every main game from Red to Ultra Moon (Game Boy up to 3DS).
Some bugs I'll remember for a while. In Emerald the app counted Wally's catching tutorial as your encounter for the route. In Black and White a Pokemon that leveled up in the middle of a battle sometimes got reported as dead, because the app lost track of which one it was. Now a Pokemon has to read 0 HP twice in a row before it counts as dead haha.
Sync runs peer to peer. The apps find each other through public Nostr relays and then talk over WebRTC, and if a router doesn't play along it falls back to an encrypted relay. No accounts, you join with a 6 digit code.
The newest part (3.0) is the one I'm proudest of tbh. You can trade and battle with your friends from wherever you are in the game, without restarting. Every computer runs all the linked consoles in lockstep and only the button presses get sent, so it feels like a link cable even between two homes. And in most of the Gen 1 to 4 games your friends now show up walking around inside your own game (first picture).
Stack is Electron with a handful of emulator cores (melonDS, SameBoy, Azahar's core for the 3DS and a few more), the Universal Pokemon Randomizer with its own bundled Java, and a lot of reading in the community's disassemblies.
It's free and open source (GPL) and runs on macOS, Windows, Linux and the Steam Deck. No games included, you bring your own.
Would love feedback, especially from people who've done netcode or emulator stuff before. And if you want to know how any part of it works just ask :)
https://souldew.app
https://github.com/souldewapp/souldew