Gleam Language
Write type-safe functional code with Gleam on the BEAM VM. Generates modules with pattern matching, result types, OTP integration, Lustre web apps, and JavaScript compilation targets.
This skill helps you write applications in Gleam, the type-safe functional language running on the Erlang BEAM VM. It generates modules with Gleam's expressive type system, implements pattern matching and result types for error handling, integrates with OTP for concurrent processes, builds web apps with Lustre (Gleam's Elm-like framework), creates REST APIs with Wisp, and compiles to JavaScript for browser targets. Covers interop with Erlang and Elixir libraries.
When to use
Use when writing Gleam applications, building type-safe BEAM services, creating Lustre web apps, implementing OTP patterns in Gleam, or compiling Gleam to JavaScript.
Examples
REST API
Build a type-safe API with Wisp
Create a Gleam REST API with Wisp framework: define routes for a todo app with JSON encoding/decoding, result-based error handling, and SQLite storage with sqlight
Lustre web app
Build a reactive web frontend
Build a Gleam Lustre single-page app with a counter, todo list, and HTTP API client — compiled to JavaScript with proper message-based state management