Skip to content

Installation

Add beryl to your Gleam project:

Terminal window
gleam add beryl

This adds beryl to your gleam.toml dependencies. beryl targets the Erlang (BEAM) runtime — it does not support the JavaScript target.

  • Gleam >= 1.3.0
  • Erlang/OTP >= 26 (recommended: 27+)
  • Target: Erlang only

beryl brings in these Gleam packages automatically:

PackagePurpose
gleam_stdlibStandard library
gleam_erlangErlang interop
gleam_otpOTP actors
gleam_jsonJSON encoding/decoding
gleam_cryptoSocket ID generation
gleam_httpHTTP request types for transport integration
mistWebSocket and HTTP server
birchRate limiting