Ballerina playground is a web based tool for trying out language features, hosted at https://play.ballerina.io/, with the native Ballerina interpreter source at https://github.com/ballerina-platform/ballerina-lang-go.
- Go 1.26 or later
- Bun 1.3.10 or later
Clone with submodules:
git clone --recurse-submodules https://github.com/ballerina-platform/playgroundIf you already cloned without submodules:
git submodule update --init --recursiveFrom the repository root:
bun installapps/web/: Web frontend that loadsballerina.wasmand provides the editor/runner UI.packages/wasm/: Go module that buildsballerina.wasmfor the browser runtime.packages/wasm/ballerina-lang-go/:ballerina-lang-gogit submodule used by the WASM runtime.scripts/: Supporting scripts used for development and maintenance tasks.
Run the playground in development mode from the repository root:
bun run dev