Tea
DocsPlaygroundExamplesReferenceCommunity
GitHub

Tea Language

A strongly typed scripting language for native tools.

© 2026 Tea Language.

ContributingCommunityRepository

WASM Playground

Run browser-safe Tea without leaving the docs site.

This runner compiles Tea's front-end to WebAssembly, evaluates the AST in a browser-safe interpreter, and rejects native-only modules like std.fs,std.process, and std.env.

Browser target rules
  • Supports Tea core syntax, loops, structs, lists, dicts, strings, and JSON.
  • Stdlib coverage is limited to browser-safe paths used by this runner.
  • Execution is capped with an interpreter fuel limit to stop runaway loops.
  • Build the wasm assets with bun run build:tea-wasm inside www/.

Editor

Playground source

struct User {
  name: String
  age: Int
}
 
var user = User(name: "Ada", age: 37)
var total = 0
 
for value in [1, 2, 3, 4]
  total = total + value
end
 
@println(user.name)
@println(total)

Runtime

Output

loading

Run a preset or edit the source to see stdout here.

Compiler

Diagnostics

Browser-target diagnostics appear here. Native-only modules and unsupported control flow are rejected before execution.