Hello, Mini
Write one line of text.
Browse examples by topic. Open browser-ready samples in the playground; CLI-only samples need local host access.
Write one line of text.
Bind text and number values.
Combine comparisons with &&.
Run a block when a condition holds.
Choose one of two branches.
Repeat while a condition holds.
Return a value from a named function.
Initialize and update bindings; inspect the generated code.
Combine arithmetic and boolean expressions; inspect the generated code.
Document declarations and implementation details.
See default values for missing text, list, and map entries.
Run a source file with a shebang.
Multiply and subtract numbers.
Print canonical decimal numbers.
Join text with +.
Count characters.
Read the first and last character.
Slice with positive and negative bounds.
Locate a word inside text.
Split text on a literal separator.
Walk backwards and build a new string.
Combine a loop with character comparisons.
Turn text into its byte values.
Round-trip a character through its code point and print values directly.
Normalize tabs and line endings from standard input.
Find sample words in input text.
Explore positive and negative slice bounds.
Print comma-separated fields.
Print the command-line arguments one per line.
Set two items and read the length.
Use a negative index for the last item.
Build a word list and format it with a separator.
Accumulate numbers in a loop.
Scan a list and keep the best value.
Walk a list backwards and join the items.
Push and pop from the back.
Push at the back and pop from the front.
Changing the copy leaves the original intact.
Split text into lines and join them again.
Grow and update a list with mixed values.
Show that a copied list can be changed independently.
Set and read text-keyed values.
Test for a key before reading it.
Take a key snapshot and count it.
Setting an existing key keeps the key count.
Changing the copy leaves the original intact.
Store a map inside another map.
Count repeated words with a map.
Create and update a map and inspect its keys.
Show that a copied map can be changed independently.
Build a map and print compact JSON.
Parse an object and read a field.
Parse an array and read an item.
Parse JSON input and print its name field.
Copy standard input to output.
Write a diagnostic and exit with a status.
Read and write local files.
Create, read, and remove a temporary file.
Exit when a required argument is missing.
Capture output from a child process.
Classic division and branching.
A recursive function.
Print an iterative sequence without manual number formatting.
Trial division up to a limit.
Reverse text and compare.
Shift character codes by one.
Find a value in a sorted list.
Sort a small list in place.
Split source text into words and symbols.
Parse numbers from CSV text and add them.
Starts with Space; arrows or A/D steer; P pauses. Short tones mark wall, brick, paddle, miss, and win events.
Move Frogger through traffic that advances at a configurable 3 steps per second.
Move the left paddle with W/S and the right paddle with the arrow keys. The ball moves at three steps per second.
Collect corridor dots with arrows or WASD and avoid the ghost as it patrols at one step per second.
Cross the road with arrows or WASD. Three traffic lanes move at two, three, and four steps per second.
Steer the submarine with arrows or WASD, touch all three divers, and avoid the enemy before oxygen runs out.
Press Space, W, or Up to jump incoming obstacles. Clear them at three steps per second.
Steer with arrows or WASD, eat the red food, and avoid walls and your tail. Moves at three steps per second.
Move with arrows or A/D, fire with Space, and clear the formation before it reaches you. Invaders move twice per second; shots move four times per second.
Move with arrows or A/D, rotate with Up/W, soft-drop with Down/S, hard-drop with Space, and clear rows. Pieces fall twice per second.
Use Up or Space to spend fuel and slow down, steer toward the green pad, and land at two positions per second with speed two or less.
Hop with diagonal arrow moves (Up/Left go up; Right/Down go down) and change every tile's color.
Render a single white pixel once on a black ten-by-ten board.
Build and render a red heart once from a ten-by-ten text pattern.
Render a horizontal line, outline box, and diagonal once on a ten-by-ten board.
Render a small house and a right arrow once on a ten-by-ten board.
Render a two-color checkerboard once on a ten-by-ten board.
Render alternating vertical colors once on a ten-by-ten board.
Render a horizontal blue-to-lavender color gradient once on a ten-by-ten board.
Ease a centered pixel between soft blue shades at four color steps per second.
Move a pixel across the board at three steps per second and wrap at the edge.
A warm smiling face blinks about once every three seconds on a soft blue background.
Move and bounce a pixel at a configurable 5 steps per second.
Draw new frames on the same canvas while its square size changes from five to nine pixels, three times per second.
Pulse a pixel heart about once per second between two sizes and shades of red.
Move three drops at three steps per second and wrap them to the top.
Switch between small character poses to suggest walking.
Bounce a colorful mini wordmark around a large blue screen at 3 steps per second.
Move the yellow pixel around the green goal with arrows or WASD.
Move the pointer across the canvas to paint a lasting trail of pixels.
Press Space or Enter to switch a small lamp on and off.
Use arrows or WASD to reach the green goal without crossing walls.
Play four short tones with the arrow keys or WASD; the canvas stays responsive without an update loop.
Play C, F, or G major chords using keys 1–3 or the arrow keys.
Move over and click one of four colored pads to play its note.
Press Space to start or pause a four-note melody paced at two notes per second.