Blokjutsu: a macOS image generator/editor

5 min read Original article ↗

This is another post from Bob that is not about statistics. Last one, I promise.

Like Steve, whose what’s up in NYC app I just blogged about, I’ve taken up the hobby of designing apps and having LLMs build them. It scratches a very different itch than writing performant C++ code for Stan.

Blokjutsu

Here’s what I’ve come up with.

  • Blokjutsu: An open-source native macOS app for generating and editing images locally.

Fair warning: it requires Apple Silicon with at least 32GB RAM. On the plus side, it’s distributed as an Apple-notarized .dmg file and licensed entirely under Apache 2, including the models.

MOSS-Image, the 5 billion parameter model on which it is based, is amazing in its ability to follow text instructions. Having said that, don’t expect it to compete with a frontier model in depth or breadth of knowledge. It also generates images up to 4 megapixels, though that can be slow (20 minutes on my old Mac with an M3 Ultra, 12 on my new MacBook with an M5 Max—they’ve accelerated matrix multiplies!).

What does it do?

The app lets you either work entirely from a prompt, or you can structure your input with bounding boxes that are followed very well for either images or text (though the text is handled with fonts and doesn’t integrate real well with photographic images in my opinion). It uses a language model (Qwen) to process prompts and it can be used to enhance prompts directly or to convert images to text. It includes all the usual image-processing features: image to image, variations of generated images, inpainting (replacing part of an image) and outpainting (extending an image). It lets you plug in LoRAs (low rank adaptations) for styling.

I tried very hard to keep everything simple. If anyone has any feedback on either the doc or the system itself, I’d love to hear it, either via email ([email protected]) or an issue on GitHub.

What does “Blokjutsu” mean?

I made up a word that’s pronounceable, has zero Google hits, and isn’t spell corrected (as Hadley Wickham and I were urging instead of “Stan” for the Stan project). It’s a mashup of Danish “Blok” and Japanese “jutsu”. Same for the GitHub org, which is Danish “Form” mashed with Japanese “do”.

Why?

I built this app in part to see what Claude (Opus 5.5, medium effort) could do, and partly because I subscribe to Claude, which doesn’t do image generation! I like to use images in my other hobby, role-playing games. I was using DiffusionBee with StableDiffusion, but DiffusionBee hasn’t been updated in years, and I wanted to be able to use MOSS-Image. The next section has an example.

The Temple of Shadow

My childhood friends were getting tired of my obsession with fiction-first games (like Blades in the Dark) and wanted a “beer and pretzels” (as this style is known) dungeon crawl. I ran “Caverns of Thracia,” which the grognards describe as among the handful of best modules ever written, but we all found it challenging, and quit after the second TPK (total party kill). Hence the 5th edition module, where it’s a real challenge to kill even one character.


Dungeon Module Z1: The Temple of Shadow

The module text was entirely written by ChatGPT, though I provided a lot of editorial oversight, including a suggestion of how to arrange the four broad zones of the dungeon and asking continually for more concise descriptions with more showing and less telling. Everything else, including the serviceable but rather boring cookie-cutter town, was pure GPT. The LaTeX styling was me with GPT’s help. The maps were random generators available online. The images were Stable Diffusion after a lot of metaphorical hair pulling (literal is challenging for me). It’s all a cliché, just as my players requested. The writing is the usual AI type slop and the images are pretty atrocious. If you look at the writing from Wizards of the Coast, I’d call that “WotC slop,” so the bar is low. It’s hard to find good writing in an RPG, so it really stands out reading, for example, a short module by Will Doyle. I’ve been meaning to give this another go in late 2026 and see how Claude does, but I really don’t like reading AI writing.

What I like

Left to my own devices, I run games like I’m running now, Star Trek: Omega, where the Federation is down to its last Class-D starship pulled out of mothballs, with a skeleton crew of officers and enlisted folks who somehow missed the decisive battle in which the Federation was defeated. Captain K’vok (Klingon) and his motley crew are up against the Chorus, an alien computer intelligence harvesting all the planets in the galaxy for compute centers to achieve the singularity. Their five year mission is to make sure the last embers of humanity don’t burn out. I’m reluctant to link it as I don’t want to get a take-down notice, but you can find the Forged-in-the-Dark rules for it on my own GitHub org, bob-carpenter, as well as the rules for Ready, Steady, Go!, my Fast-and-Furious knockoff set in the 1968 Paris student riots, where the English team races against French, Italian, and German competition (all with their iconic sports cars) for the racing title, Le Roi de Paris. The real prize, of course, is much much bigger, and may be uncovered for the first time since the war. If you’re seriously thinking about playing, I can send along the maps and car tokens I used for Roll20. As a taste, here’s the token I generated for one of my players. I could not for the life of me get GPT to render it with right-side drive—I’m hoping MOSS-Image will be better.

The other player’s character drove an Aston Martin Zagato in British racing green, but of course they could pull out the Land Rover for the chase scene through Père Lachaise.