Home›Free Tools›Larzscript← All tools
Larz Stack · open source

Larzscript Playground

A money-native programming language — payments, wallets, subscriptions and gas-metering are keywords, not a library. Edit and run it live, right here in your browser.

program.lz
output

      

Runs 100% in your browser via a JavaScript port of the Larzscript interpreter — no server, nothing sent anywhere. The language is I/O-free and gas-metered, and a step-guard stops runaway loops. Want to know how a language like this is built? See How Programming Languages Work.

Run it for real

Larzscript is a real standalone language, not a browser toy, and it installs the same way on Linux, macOS and Windows — no Python, no pip, no runtime. The one-line installer puts a single native binary on your PATH; larzscript update keeps it current later, no reinstalling.

Recommended · first-time install

Linux & macOS

One line, any shell. Works on Intel or Apple Silicon, x86_64 or ARM64.

curl -fsSL https://raw.githubusercontent.com/
larz-scripter/larzscript/main/install.sh | sh

larzscript repl
larzscript pkg install mathx
larzscript update        # later, to update
Installs to ~/.local/bin · prints a one-line PATH fix if it isn't there already
Recommended · first-time install

Windows · PowerShell

One line, pasted into a PowerShell window. No admin rights needed.

irm https://raw.githubusercontent.com/
larz-scripter/larzscript/main/install.ps1 | iex

larzscript repl
larzscript pkg install mathx
larzscript update        # later, to update
Installs to %LOCALAPPDATA%\Larzscript · adds it to your User PATH · open a brand-new terminal window afterward for PATH to take effect
Recommended · first-time install

Windows · Command Prompt (cmd.exe)

One line, pasted straight into cmd.exe — irm/iex above are PowerShell-only and will fail if typed into a plain cmd window. This line asks cmd to hand the same installer to PowerShell for you, so it works either way.

powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/larz-scripter/larzscript/main/install.ps1 | iex"

larzscript repl
larzscript pkg install mathx
larzscript update        # later, to update
Same installer, same result as the PowerShell line above · open a brand-new cmd window (or reboot/re-login if testing over SSH/RDP) before running larzscript — an already-open shell won't see the updated PATH
Manual

Download a binary directly

Grab the executable for your platform straight from the latest release, no installer script.

Linux/Windows are statically linked (zero dependencies); macOS links against libSystem (present on every Mac) · ~0.5–0.8 MB
Any platform

Build from source

One C file, libc only. Compiles in a second with any C compiler on Linux, macOS, BSD or Windows.

git clone https://github.com/
larz-scripter/larzscript
cd larzscript/native
make            # or: cc -O2 -o \
                #   larzscript larzscript.c
sudo make install   # -> /usr/local/bin
larzscript repl
Also builds on Windows with gcc/clang (mingw-w64).
Reference / hacking

Python reference

The readable reference implementation — tree-walk interpreter and a bytecode VM, proven byte-identical. Best for reading how it works.

git clone https://github.com/
larz-scripter/larzscript
cd larzscript
python3 -m larzscript examples/coffee.lz
python3 -m larzscript repl
python3 -m larzscript --vm program.lz
Pure Python, zero dependencies, MIT.

⚡ It settles for real — on-chain

The playground runs in memory, but Larzscript settles every pay and subscribe through a pluggable backend. Plug in LarzChain and the same, unchanged program becomes real signed on-chain LARZ transactions — authorized against real balances, declined before any money moves.

from larzscript import run
from larzchain.larzscript_settlement \
     import LarzChainSettlement

settle = LarzChainSettlement(node)
settle.fund("customer", 50)      # 50 LARZ

run(program, settlement=settle)  # ← on-chain now
settle.balances()  # {'customer': 38.0, 'store': 12.0}
settle.broadcast   # real on-chain txids
  • authorize — checks the payer's confirmed on-chain balance before any debit; an over-spend is declined, never partially settled.
  • record — builds, signs and broadcasts a real LARZ transaction for every payment.
  • Same seam accepts a fiat / card gateway or an audit log — the program never changes.

On-chain demo → Settlement API → About LarzChain →