Pick a group
Each group of interpreters is one row in langs/index.js. tools/convert/convert.js reads every group, so shib, the pages and the converter see a new interpreter at once.
| group | folder | languages | use it for |
|---|---|---|---|
classic | langs/ | 19 | the first classics; put a new language in another group |
dialects | langs/dialects/ | 22 | a close relative of a language that has an interpreter, written as its differences |
grid | langs/grid/ | 15 | a two-dimensional language whose pointer walks a grid |
museum | langs/museum/ | 26 | anything else, written from scratch; start here |
stack | langs/stack/ | 31 | a stack language in the Forth and Joy line |
tio | langs/tio/ | 265 | a language TIO runs, checked against TIO's own hello world |
wiki | langs/wiki/ | 1231 | a language TIO does not run, built from its esolangs.org page and checked on the programs and outputs that page gives |
A new spelling of brainfuck or Deadfish is a row in langs/data/languages.json, with no code. It joins Brainfuck in disguise or Deadfish in disguise.
Write it
langs/museum/_template.js is a complete working interpreter. Copy it, write run and fill in the other fields.
cp langs/museum/_template.js langs/museum/tally.js
// A new language in one file: copy this to langs/museum/<id>.js, write run(), fill in the port, and add `<id>: require('./<id>').port,`
// to PORTS in langs/museum/ports.js. This copy is Tally, made up for the docs: one counter, + adds one, - takes one, . prints, , reads.
const { Spent, word } = require('../common');
// source text, input bytes and a step budget in; output bytes out; out of steps, throw Spent
function run(source, input = [], maxSteps = 1e6) {
const out = [];
let counter = 0, next = 0, steps = 0;
for (const c of source) {
if (++steps > maxSteps) throw new Spent();
if (c === '+') counter = (counter + 1) % 256;
else if (c === '-') counter = (counter + 255) % 256;
else if (c === '.') out.push(counter);
else if (c === ',') counter = next < input.length ? input[next++] : 0;
}
return out;
}
const port = {
name: 'Tally',
page: 'Tally',
bytes: 'bytes',
takesInput: true,
flags: ['counter'],
manual: 'One counter from 0 to 255; + adds one, - takes one away, . prints it as a byte, , reads a byte into it (0 once the input is spent).',
// a throw or a spent budget is null: the checks and the pages read that as "did not finish"
run: (source, input, limit) => { try { return { out: run(source, input, limit), features: {} }; } catch { return null; } },
random: rng => ({ source: word(rng, '+-.,', 1, 40), input: Array.from(Buffer.from(word(rng, 'ab', 0, 3))) }),
// [program, input, what it must print]: every check runs each one
classics: [['+'.repeat(65) + '.', '', 'A'], [',.,.', 'hi', 'hi']],
};
module.exports = { run, port };
Then add one line to PORTS in langs/museum/ports.js.
tally: require('./tally').port,
Every field of port
| field | means |
|---|---|
name, page | its name, and its page title on esolangs.org |
bytes | how output is read, as bytes, bits or decimal |
takesInput | whether it reads input |
manual | what each symbol does, in one paragraph |
run | { out, features }, or null when it did not finish |
random | a random program and input, for the fuzz checks and the detector |
classics | [program, input, expected output], and the checks run every one |
modes | optional { name: { what, run } }, chosen with --mode |
Run it
node tools/cli/shib.js run tally -e ',.,.' --input hi # hi
node tools/cli/shib.js manual tally
After the next build it is also in Run.
Its page
museum/langs/tally.md is its language page, like the one for Brainfuck. A shib run line in a bash block becomes a console that can be edited and run. Every field of a page below lists the front matter.
---
title: Tally
kind: lang
year: 2026
author: unknown
family: tarpit
level: 1
tc: no
patterns: [counter-machines]
example: verified
---
# Tally
> One counter and four symbols: count up, count down, print, read.
## Example
```bash
shib run tally -e ',.,.' --input hi # hi
```
node museum/index.js && node museum/site.js # museum/site/tally.html
Test it
node langs/museum/check.js # the port contract, every classic, the page's consoles (slow: minutes)
node museum/ui/check.js
node tools/cli/shib.js check --only langs,museum
langs/museum/check.js ends with all passed: … museum ports, … commands mapped. A classic that prints something else fails by name.
Send it
- A branch with the interpreter, its entry and its page.
shib checkpasses.- A pull request that says where the language is from (its esolangs.org page) and how you checked it against the original.
Write the interpreter yourself or port one whose licence allows it, and say which in the file's first line. Checks then lists how it is tested, next to every other language.
Every field of a page
Every page is one Markdown file with a small frontmatter block. node index.js reads the frontmatter and writes INDEX.md (families, timeline, backlinks), so keep the fields exact.
Language pages in langs/<slug>.md
---
title: Brainfuck
kind: lang
year: 1993
author: Urban Müller
family: tarpit
level: 1
tc: yes
patterns: [turing-tarpit, turing-completeness, quine]
example: verified
---
# Brainfuck
> One-line hook, what makes it weird, in under 25 words.
## The idea
2–4 short paragraphs. Why it exists, what the trick is.
## The machine
What state there is and what each instruction does. A table when there are few instructions.
## Example
A small program and what it does. Walk through it if it is short enough.
## Patterns it teaches
Bullets linking to `../patterns/<slug>.md`, one line each on how this language shows the pattern.
## Try this
One or two small exercises, ordered easy → hard.
## Further
Links to the esolangs.org page, the original spec or paper, and a good implementation.
Fields
| Field | Values |
|---|---|
kind | lang or pattern |
year | First published, a number. Use ~1990 only when the exact year is unknown. |
author | As credited on esolangs.org. unknown is allowed. |
family | One primary family, from the list below |
level | 1 gentle, 2 takes an afternoon, 3 very hard |
tc | Turing complete? yes, no, unknown, bounded (would be, with unbounded memory) |
patterns | Slugs from the pattern list below. Only ones the page discusses. |
example | verified (run through an interpreter), traced (checked by hand, step by step), illustrative (shows the flavour, not checked) |
Families
family | Meaning |
|---|---|
tarpit | Minimal, as few instructions as possible and still universal |
functional | Combinators, lambda calculus, stacks of functions, concatenative |
rewriting | The program is rules that rewrite a string or number |
spatial | Code laid out in 2D (or more); the instruction pointer moves through space |
hostile | Designed to be hard or unpleasant, like Malbolge and INTERCAL |
camouflage | Programs disguised as plays, recipes, music or folders |
strange-time | Odd notions of order, chance or decay, like Whenever and Entropy |
golf | Built to make programs short |
reversible | Every step can be undone |
life | Self-replication, evolution, artificial life, cellular automata |
joke | Exists for the punchline |
shibboleth | Shibboleth itself, the language that writes itself (its page has no "Why it matters" section) |
Pattern pages in patterns/<slug>.md
---
title: Quine
kind: pattern
level: 2
langs: [underload, befunge, brainfuck]
---
# Quine
> One-line hook.
## The idea
## How it works (the mechanism, with a tiny example)
## Seen in (bullets linking to ../langs/<slug>.md)
## Try this
## Further
Rules for every page
- Facts you are sure of. If unsure of a year or author, check esolangs.org; if still unsure, leave it out or say "reportedly".
- Examples are checked.
example: verifiedmeans the example was run. Write a runnable example as ashib run <lang> -e '...'line in a bash block; the page turns it into a console that runs it (node tools/cli/shib.js langslists the languages; a new interpreter goes inlangs/museum/). - No long quotes from esolangs.org or anywhere else. Write in your own words.
- Short sentences, short paragraphs. A page is 60–150 lines.
- Link related pages with relative links such as
../langs/befunge.mdand../patterns/quine.md. Only link slugs that are in the lists below.
Slugs
Languages
tarpit: brainfuck, p-prime-prime, smallfuck, boolfuck, ook, unary, lenguage, subleq, bitbitjump, fractran, bitwise-cyclic-tag, deadfish, hq9plus
functional: unlambda, iota, jot, lazy-k, binary-lambda-calculus, underload, joy, forth, false, brain-flak, emmental
rewriting: thue, slashes, retina, fractran (also tarpit; its page lives once, family rewriting)
spatial: befunge, fish, hexagony, labyrinth, piet, snusp, funciton, marbelous
reversible: janus, stack-cats
golf: golfscript, jelly
hostile / camouflage / strange-time / joke: intercal, malbolge, whitespace, shakespeare, chef, lolcode, rockstar, velato, folders, chicken, whenever, java2k, entropy, seed, mornington-crescent
life: redcode, tierra, avida, typogenetics, stringmol, nanopond, bff, game-of-life, rule-110, langtons-ant, langtons-loops, wireworld, push
shibboleth: shibboleth
Patterns
quine, turing-tarpit, turing-completeness, one-instruction, counter-machines, tag-systems, string-rewriting, combinators, lambda-encoding, fixed-points, concatenative, stack-machines, two-dimensional-control-flow, self-modifying-code, code-as-data, metacircular-interpreter, reversible-computing, cellular-automata, self-replication, artificial-life, open-ended-evolution, model-collapse, every-text-runs, encoding-tricks, hostile-design, camouflage, nondeterminism, code-golf, polyglot