🌐 EPL Online Playground¶
Try EPL directly in your browser — no installation required.
Can't see the playground?
Open it directly: playground.html
Assistant Routing¶
The browser playground loads the published eplang runtime in Pyodide, runs parser-backed AST diagnostics, and supports explicit assistant routing:
Secure Proxyfor a same-origin/chatendpoint or a Cloudflare Worker URLGroq APIfor direct browser requests with your own Groq keyGemini APIfor direct browser requests with your own Gemini key
The page no longer uses an anonymous third-party fallback. You decide exactly where assistant traffic goes. For public deployments, prefer Secure Proxy mode so private Groq/Gemini keys are not stored in a public browser page.
For the full local playground server with isolated code execution and /api/assist, run:
Example Snippets¶
Try pasting these into the playground:
Hello World¶
Variables & Math¶
Functions¶
Function factorial takes n
If n is less than 2 then
Return 1
End
Return n * factorial(n - 1)
End
Say "10! = " + to_string(factorial(10))
Lists & Loops¶
Web App with Observability¶
Create WebApp called app
Import "epl.observability" As obs
obs.attach(app)
Route "/" shows
Page "EPL App"
Heading "Hello from EPL!"
Text "Monitoring: /_health | /_ready | /_metrics"
End
End
Start app on port 8000
JavaScript Bridge¶
3D Scene¶
3D scene syntax is still evolving. For now, use the playground primarily for parser-backed core EPL, web examples, and JavaScript bridge experiments, and treat 3D snippets as experimental until they are covered by parser-verified docs examples.
Features¶
- AST-Aware Analysis — Real-time error detection with gutter markers
- AI Copilot — Multi-provider support (Secure Proxy, Groq, Gemini) with code injection
- Thinking Mode — Complex queries show reasoning process before generating code
- Full EPL Support — All language features including web apps, 3D/canvas, style/layout, and JS bridge