magmascript

a Python-inspired mini language for magmacrunch infrastructure

A small programming language, similar to Python, for short scripts that also control things: servers, GitHub, the arcade's high scores. Try it in your browser in the playground, which has fourteen examples, or install it.

the technical version

A Python-inspired mini scripting language by magmacrunch media. Write .mgs scripts that combine general-purpose programming with infrastructure automation via the domain bridge. Tree-walk interpreter, no compilation step, runs in your terminal or browser. The playground runs scripts in the browser under Pyodide, with fourteen examples.

what's in it

values Dynamic typing, and f-strings that interpolate {expressions}
functions fn, arrow functions, default parameters and closures
collections Lists and dicts, slicing such as [1:3] and [::-1], comprehensions
classes Methods, constructors and self
errors try/haunter, throw fire toad, and spooked warnings
imports intent "module.mgs", with named imports and aliases
asthenosphere A memory tier: fixed-width ints, an arena, floorplans and faults
domains 12 built-in clients, among them mcp, pi, mac, mc1, gh, media and scores
host objects Read and write the fields, properties and methods of Python objects
plugins Outside packages can publish domains of their own
cli Runs scripts, and a REPL with tab completion

getting started

install

pip:

pip install magmascript

homebrew:

brew install magmacrunch-media/tap/magmascript

v4.0.1

quick start

magmascript run script.mgs
magmascript repl

MIT · Copyright 2026 magmacrunch media

// source access //

magmascript installs from PyPI or homebrew above, and the playground runs the real interpreter in your browser. The interpreter source is not public.

For source access, licensing, or anything else, email info@magmacrunch.com.