Hermes Slots (Slot Pet)
A grimy little slot machine pet for Hermes Desktop. It sits above the app in the bottom right corner, like the Hermes pet, takes no layout space and can be dragged anywhere. It is a sibling of Hermes Plant and is built the same way.

The look is low-resolution pixel art: a rusted cabinet with orange trim, a black five by three screen of bright symbols, and sound that plays slow and low. All of the art is original and drawn in code.
Coins are play money. They cannot be bought, sold or cashed out, and nothing here touches the network.
Using it
- Drag the lever down and let go to spin. Pull it at least most of the way.
- Click the machine to have it pull the lever for you. Drag the machine to move it.
- Click BET to step the bet up: 5, 10, 25, 50, 100.
- Click the pig to open the piggy bank, which is also the settings panel: save coins, take them out, collect interest, set any bet you like (type a number, or use -5, +5 and Max), read the pay table, and switch the sound on or off.
- Click the chip in the status bar to hide or show the machine.
- The command palette has "Slot Pet" rows for all of this, and the lever is on Ctrl/Cmd+Alt+L.

The rules
The screen is five reels wide and three rows tall, and every cell is drawn on its own from 30 stops. Three of the same symbol in a line pays. There are 20 lines: nine across, five down and six diagonal. Lines overlap, so four in a row is two lines and five in a row is three.
| Symbol | Stops out of 30 | A line pays |
|---|---|---|
| Sevens | 1 | 100 times the bet |
| Diamonds | 2 | 15 times |
| Bells | 3 | 5 times |
| Clovers | 4 | 2 times |
| Lemons | 8 | 0.6 of the bet |
| Cherries | 12 | 0.2 of the bet |
- About three pulls in four pay something. Most of those pay less than the bet.
- A whole row of one symbol pays ten more lines' worth on top.
- The pay table returns 93.2% of what is bet. Pays are rounded to whole coins, so very small bets pay nothing for cherries.
- Any bet. Bet any whole number of coins from 1 up to everything in the wallet.
- The piggy bank. Saved coins earn 1% an hour, worked out from saved timestamps, so time away counts. The pig holds up to 24 hours of interest until you collect it.
- Never stuck. With no coins anywhere, the machine spots you 20 on the next pull.
- Spins use
crypto.getRandomValues, and the screen is settled before the reels turn.
Sound
The effects are clunks, ticks, a bell and coins from three of Kenney's CC0 packs (Interface Sounds, Impact Sounds, Casino Audio), played at 0.78 speed so they sound low and worn. There are no jingles and no music in the plugin. They are built into desktop/plugin.js and played with Web Audio, only after a click or key press. The full list is in desktop-src/src/sounds/CREDITS.md.
To mute it, open the piggy bank panel and press the Sound button at the bottom. The command palette has the same switch ("Slot Pet: turn sound on or off"), and the choice is remembered.
Building
desktop/plugin.js is an esbuild bundle of desktop-src/.
cd desktop-src && npm ci && npm test && npm run build
The rules are in desktop-src/src/engine.js (pure functions, with tests), the drawings in art.js, the on-screen machine in overlay.js, and the Hermes wiring in plugin.jsx. The package has no agent tools.
Disclosures
No network requests, no model calls, no background processes. The game is kept in Hermes Desktop plugin storage on this machine. Hermes has no plugin area for a floating element, so the plugin adds its own element and style tag to the page and removes both when unloaded.
README from the reviewed commit c672c96; it updates when the author re-pins.
tuancookiez-hub


