SPL Playground
Write and run SPL (.splx) directly in your browser — powered by the real SPL compiler, type checker, and LSP code completion engine with all 12 std/* modules loaded in-memory.
rows.splx
Code Completion Tips
Section titled “Code Completion Tips”- Member & record field completion: Type
.or?.after any variable, struct, array, iterator, orstd/*module (e.g.,human.,col.,scores.,llm.) to see inferred fields, methods, and extension methods. - Import path completion: Type
import x from "std/to browse all standard library modules. - Named arguments & signature help: Inside a function call like
feed(human,or@{ ... }.agent(, pressCtrl+Spacefor named parameter completions and live signature hints. - Hover types & JSON Schemas: Hover any symbol to view its inferred SPL type, or hover
type_schema<T>()to inspect the compile-time JSON Schema inline. - Live OpenAI examples (Vercel deployment): Presets
08–10executePrompt.ask<T>,Prompt.agent<T>, andPrompt.llm_fn<In, Out>live through the server-side/api/llm/*route, readingOPENAI_API_KEYfrom Vercel Project Environment Variables (or local gitignoreddocs/.env) without exposing keys to the browser.