Will Varner
2026 · in progress

Open-Attorney

I really like Ace Attorney, and there hasn't been a new one in about ten years. So this is a courtroom mystery game that runs in the browser, with an editor for writing your own cases and sharing them.

TypeScriptReact

I really like Ace Attorney. You poke around a crime scene, pick up evidence, then stand in court and catch a witness lying with the one thing that proves it. But the last new game came out about ten years ago. Since then it’s mostly been re-releases. I wanted more cases.

So I made Open-Attorney. It’s a courtroom mystery game that runs in a browser tab, plus the tools to write your own cases and share them. Nothing in it comes from those games. The characters, the art, the music and the two cases it comes with are all original.

The Open-Attorney title screen: a defense lawyer in a blue suit and a prosecutor in a maroon coat on either side of the logo, with a menu reading Play, Case Select, Make a Case and For AI Agents
the title screen

Playing a case

A case has two halves. First you investigate: look around a room, talk to whoever is there, show them things, then move on to the next place. Then you go to court. A witness testifies one statement at a time and you can press them on any of it. When a statement doesn’t match the evidence, you present the evidence. Present the wrong thing too many times and it’s over.

A cross-examination: a café owner with red curly hair on the witness stand says 'Quarter to midnight on the dot, honeybun. I looked straight at my cat clock.' with Press and Present buttons below her
she says quarter to midnight. her own receipt says 11:36
A big red and white OBJECTION! burst across the courtroom
so

The case you start with is The Vanishing Gourd. A small town’s golden squash goes missing the night before the Harvest Festival, and the night guard says he only stepped out for pie. It takes about ten minutes, and it plays fine on a phone.

An investigation scene in a small-town café: the owner behind the counter, a cat clock on the wall, a plum coat on the coat rack, and her line of dialogue in a box at the bottom
the café across the street. keep an eye on the cat clock

Writing one

A case is one text file that reads like a script: who’s talking, what face they’re making, what they say, and where it goes next. The editor shows that same file as a flowchart. Every scene, room and testimony is a node, and the lines between them are the ways a player can get from one to another. Change the script and the flowchart follows. Add a node in the flowchart and it shows up in the script.

The editor with The Vanishing Gourd open: the script on the left, the case as a flowchart of small nodes in the middle, and the game running in a panel on the right
the script, the same case as nodes, and the game running from the node I clicked

Click any node, hit play, and the game starts right there. So you can test the ending without clicking through the first ten minutes again.

The flowchart zoomed in on the first testimony: a yellow node with dashed blue lines out to five press nodes and red lines to two present nodes, one of which leads on to the next part of the trial
zoomed in on one testimony. blue dashes are presses, red is presenting evidence

It checks that you can finish

Before you can export a case, the editor walks the node tree and makes sure a player can actually get to the ending. Every testimony needs a contradiction you can really find, and you can’t walk into court without the evidence you’ll need once you’re in there.

Say the door to the courtroom asks for a receipt, and nothing in the case ever gives you one. The editor says so, points at the line, and won’t export until you fix it. It runs while you type, so most of the time it’s just a green badge in the corner.

Sharing

The goal is to make this easy enough that a lot more people make cases. A finished case is one file. Put it anywhere that hosts files and send a link, and whoever opens the link is playing your case. There are no accounts and nothing to upload to.

A list of cases is just a JSON file, and anyone can keep one. You add the lists you like and their cases show up on your shelf. Or skip all that and drag a case file onto the page.

Your own art and sound

Everything built in is drawn in code and the music is synthesized, so it ships without a single image or audio file. You can still bring your own. Drop in character sprites, backgrounds and music as a folder or a zip, and use them in your case. It reads packs laid out the way Attorney Online lays them out, and there are a lot of those around. So if you happen to have a folder of courtroom sprites lying around, it’ll probably just work.

Whatever you import stays in your browser. It never gets uploaded anywhere.

Agents can write cases too

There’s a command-line tool that runs the same check, and two docs that explain the script format. That’s enough for a coding agent to write a whole case and know when it’s done. The second case it comes with, The Velvet Alibi, started out that way: an agent got the docs and the tool, and nothing else.

What’s next

More cases, and more built-in rooms and characters to write them with. And putting it online somewhere, so this page can have a play button.

NXRemixAgent Stress Testing