Course

Learn Gleam

Typed functional programming on BEAM and JavaScript: a friendly compiler, Result-based errors and pattern matching everywhere: until your programs are proven by types and portable across two runtimes.

This is the whole Gleam course in the LoWisa phone app, level by level: 15 levels, 44 lessons and 132 ideas, each taught and then checked. The first level, Start Here: Typed Functional Programming on BEAM, is free.

Updated 2026-11-25

What you can do as you go

Where you areWhat you can do
Start Here: Level 4You write typed functional Gleam: patterns, lists, custom types and pipelines with compiler-checked confidence.
Levels 5–9You model states that cannot be invalid, design generic typed APIs, and handle every failure as a value.
Levels 10–12You interop with BEAM and JavaScript through honest boundaries, and build typed concurrent actors.
Levels 13–14You test, publish and operate portable Gleam: with per-target performance claims you measured.
Project ladderFive desktop app projects from a typed CLI to a published Hex package: type-safe functional programming on two runtimes.

The Gleam course, level by level

LevelLessons in it
Start Here: Typed Functional Programming on BEAMGleam, BEAM and JavaScript Targets; Why Gleam's Type System Matters
Level 1: Gleam FoundationsValues and Types; Functions; Control Through Expressions
Level 2: Pattern MatchingPatterns; Case Expressions; Destructuring Data
Level 3: CollectionsLists; Tuples; Collection Transformation
Level 4: Custom TypesRecords and Variants; Option and Result; Modelling Valid States
Level 5: Functional DesignPipelines; Higher-Order Functions; Immutable Transformation
Level 6: Generics & Type DesignGeneric Functions; Generic Custom Types; Designing Type-Safe APIs
Level 7: Modules & PackagesModules; Gleam Packages; Dependency and Library Design
Level 8: Error HandlingResult-Based Errors; Pattern-Based Recovery; Reliable Functional Error Design
Level 9: BEAM InteroperabilityCalling Erlang and Elixir; External Types and Functions; BEAM Ecosystem Integration
Level 10: JavaScript InteroperabilityJavaScript Target; External JavaScript; Cross-Runtime Library Design
Level 11: ConcurrencyBEAM Processes; Message-Based Concurrent Design; Fault-Tolerant Gleam Concepts
Level 12: Testing & ToolingGleam Tooling; Testing; Publishing Packages
Level 13: Performance & ProductionBEAM Runtime Behaviour; JavaScript Runtime Behaviour; Designing Portable Production Gleam
Level 14: Gleam MasteryAdvanced Type Modelling; Functional Architecture; Reading and Improving Complex Gleam

Every level ends with a checkpoint and flashcards on what it taught.

Start Here: Typed Functional Programming on BEAM: what the free first level teaches

Gleam, BEAM and JavaScript Targets

  • Its own language. Gleam is a distinct, statically typed functional language: with its own compiler, syntax and ecosystem.
  • Two targets. One Gleam codebase compiles to the Erlang VM or to JavaScript: servers and browsers from one source.
  • Friendly tooling. The gleam compiler is famously friendly: errors that teach, formatting and docs built into one tool.

Why Gleam's Type System Matters

  • Types up front. Gleam checks every type at compile time: whole bug families never reach either runtime.
  • No nil, no exceptions. Gleam has no nil and no exceptions: absence and failure are ordinary typed values.
  • Confidence to refactor. Sound types make refactoring fearless: change a type, and the compiler lists every consequence.

Projects you build

The course has 5 projects, built in the LoWisa desktop app, each in the role of someone who does this work.

RoleProjectThe situation
Gleam DeveloperTyped Budget CLIA budgeting CLI where the type system does the bookkeeping: custom types for every state, Results for every failure, exhaustive matches the compiler enforces.
Gleam DeveloperMarkdown Table-of-Contents ToolA documentation tool: parse Markdown headings, build a typed tree, emit a table of contents: a real parser where exhaustive matching and recursion carry everything.
Gleam EngineerRescue an Untyped-Boundary CodebaseYou inherit a Gleam service whose authors fought the language: dynamic data passed deep inside, panics as error handling, one giant module, and an external binding that lies about its type. Repair it.
Senior Gleam EngineerCross-Target Feed Library + ServicesOne codebase, two runtimes: a feed-parsing core compiled to BEAM for a server and to JavaScript for a browser widget: the portable architecture done honestly.
Gleam SpecialistPublish a Typed Validation PackageBuild the definitive piece: a validation combinator library for Gleam: typed rules, accumulated errors, phantom-typed proofs: published to Hex with documentation the compiler checked.

How you learn it

  • One idea at a time. Each lesson teaches a few ideas and asks you about each before it moves on.
  • A checkpoint and flashcards at the end of every level. See Checkpoints and flashcards.
  • Games on what you have learned. See Revision games.
  • On your phone. The app is on Google Play and the App Store. See Getting started.

Frequently asked questions

How many levels does the LoWisa Gleam course have?

15 levels with 44 lessons, from Start Here: Typed Functional Programming on BEAM to Level 14: Gleam Mastery.

Is the Gleam course free?

The first level, Start Here: Typed Functional Programming on BEAM, is free, with its checkpoint and flashcards. A plan opens the rest; see Plans and credits in the Help centre.

Where does the Gleam course start?

With Start Here: Typed Functional Programming on BEAM. Its first lesson is "Gleam, BEAM and JavaScript Targets".

Start Gleam with the free first level

LoWisa is on Google Play and the App Store.