Tea — a strongly typed scripting language
Tea
DocsPlaygroundExamplesReferenceCommunity
GitHub

Tea Language

A strongly typed scripting language for native tools.

© 2026 Tea Language.

Agent documentationContributingCommunityRepository

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

def greet(name: String, times: Int) -> String
  return `Hello, ${name}! (seen ${times}x)`
end
 
var message = greet("Ada", 3)
@println(message)

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.