🎁 Gleam's standard library
  • Gleam 85.2%
  • JavaScript 10.8%
  • Erlang 4%
Find a file
2026-07-23 13:34:08 +01:00
.github Update Gleam version on CI 2026-06-07 18:32:22 +01:00
.vscode remove ruler 2024-10-28 14:14:24 +00:00
src Qualify function calls in documentation 2026-07-23 13:34:08 +01:00
test custom equals/hashCode for dictionary nodes. 2026-05-30 09:33:09 +01:00
.editorconfig fix-721 2024-11-06 15:43:31 +00:00
.gitignore remove .tool-versions 2022-04-16 10:51:52 +01:00
CHANGELOG.md v1.0.4 2026-05-30 09:33:35 +01:00
gleam.toml v1.0.4 2026-05-30 09:33:35 +01:00
LICENCE Rename LICENSE to LICENCE 2021-08-09 17:30:06 +01:00
README.md v1.0.0 2026-04-18 10:58:05 +01:00

stdlib

Package Version Hex Docs Discord chat

Gleam's standard library! Documentation available on HexDocs.

Installation

Add gleam_stdlib to your Gleam project.

gleam add gleam_stdlib@1
import gleam/io

pub fn greet(name: String) -> Nil {
  io.println("Hello " <> name <> "!")
}

Targets

Gleam's standard library supports both targets: Erlang and JavaScript.

Compatibility

This library is compatible with all versions of Erlang/OTP 26 and higher, as well as all NodeJS, Deno, Bun, and major browsers that are currently supported by their maintainers. If you have a compatibility issue with any platform open an issue and we'll see what we can do to help.