id large_stringlengths 21 131 | source large_stringclasses 1
value | code large_stringlengths 21 49.9k | file_path large_stringlengths 10 108 | repo_url large_stringlengths 26 69 | repo_owner large_stringclasses 763
values | repo_name large_stringlengths 2 34 | repo_description large_stringlengths 0 316 | stars int64 0 2.3k | is_official bool 2
classes | license large_stringclasses 9
values | license_raw large_stringclasses 11
values | authors large listlengths 1 1 | hex_package large_stringclasses 655
values | hex_downloads int64 17 962k ⌀ | fork bool 1
class | archived bool 2
classes | collected_at large_stringlengths 32 32 | commit_sha large_stringlengths 40 40 | schema_version int64 1 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
gleam-lang/packages/test/packages/storage_test.gleam | github | import gleam/dict
import gleam/hexpm
import gleam/option.{None, Some}
import gleam/time/calendar
import gleam/time/timestamp
import packages/error
import packages/storage.{FullSync, Package, PartialSync, Release}
import storail
import tests
pub fn partial_sync_time_test() {
use db <- tests.with_database
let times... | test/packages/storage_test.gleam | https://github.com/gleam-lang/packages | gleam-lang | packages | 📦 Search for Gleam packages | 116 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:40:45.816590+00:00 | af21c767344d73d7e5b5fd3c9ee6dc2b46b73f1e | 1 |
lustre-labs/lustre/examples/01-basics/05-fragments/src/app.gleam | github | // IMPORTS ---------------------------------------------------------------------
import gleam/list
import gleam/set.{type Set}
import lustre
import lustre/attribute
import lustre/element.{type Element}
import lustre/element/html
import lustre/element/keyed
import lustre/event
// MAIN ---------------------------------... | examples/01-basics/05-fragments/src/app.gleam | https://github.com/lustre-labs/lustre | lustre-labs | lustre | A Gleam web framework for building HTML templates, single page applications, and real-time server components. | 2,302 | true | MIT | MIT | [
"lustre-labs"
] | lustre | 245,785 | false | false | 2026-05-28T15:39:45.871015+00:00 | c573707a57aef3542d84e7e18008cd38e62b9edf | 1 |
lustre-labs/lustre/src/lustre/vdom/path.gleam | github | // IMPORTS ---------------------------------------------------------------------
import gleam/int
import gleam/string
import lustre/internals/constants
// CONSTANTS -------------------------------------------------------------------
///
///
pub const root: Path = Root
///
///
pub const separator_element: String = "... | src/lustre/vdom/path.gleam | https://github.com/lustre-labs/lustre | lustre-labs | lustre | A Gleam web framework for building HTML templates, single page applications, and real-time server components. | 2,302 | true | MIT | MIT | [
"lustre-labs"
] | lustre | 245,785 | false | false | 2026-05-28T15:39:45.871015+00:00 | c573707a57aef3542d84e7e18008cd38e62b9edf | 1 |
gleam-lang/stdlib/test/gleam/result_test.gleam | github | import gleam/list
import gleam/result
pub fn is_ok_with_ok_test() {
assert result.is_ok(Ok(1))
}
pub fn is_ok_with_error_test() {
assert !result.is_ok(Error(1))
}
pub fn is_error_with_ok_test() {
assert !result.is_error(Ok(1))
}
pub fn is_error_with_error_test() {
assert result.is_error(Error(1))
}
pub fn ... | test/gleam/result_test.gleam | https://github.com/gleam-lang/stdlib | gleam-lang | stdlib | 🎁 Gleam's standard library | 684 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:39:52.754630+00:00 | c6f7ceee9c569c71849d7e4c5a94e535feaae724 | 1 |
lustre-labs/lustre/examples/02-inputs/04-forms/src/app.gleam | github | // IMPORTS ---------------------------------------------------------------------
import formal/form.{type Form}
import gleam/list
import lustre
import lustre/attribute
import lustre/element.{type Element}
import lustre/element/html
import lustre/event
// MAIN ----------------------------------------------------------... | examples/02-inputs/04-forms/src/app.gleam | https://github.com/lustre-labs/lustre | lustre-labs | lustre | A Gleam web framework for building HTML templates, single page applications, and real-time server components. | 2,302 | true | MIT | MIT | [
"lustre-labs"
] | lustre | 245,785 | false | false | 2026-05-28T15:39:45.871015+00:00 | c573707a57aef3542d84e7e18008cd38e62b9edf | 1 |
gleam-lang/packages/src/packages/error.gleam | github | import gleam/httpc
import gleam/json
import simplifile
import storail
pub type Error {
FileError(simplifile.FileError)
HttpClientError(httpc.HttpError)
JsonDecodeError(json.DecodeError)
StorageError(storail.StorailError)
TextIndexEtsTableError
KnownWordsEtsTableError
}
| src/packages/error.gleam | https://github.com/gleam-lang/packages | gleam-lang | packages | 📦 Search for Gleam packages | 116 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:40:45.816590+00:00 | af21c767344d73d7e5b5fd3c9ee6dc2b46b73f1e | 1 |
lustre-labs/lustre/src/lustre/element.gleam | github | //// Lustre wouldn't be much use as a frontend library if it didn't provide a
//// way to create HTML elements. This module contains the basic functions
//// necessary to construct and manipulate different HTML elements.
////
//// It is also possible to use Lustre as a HTML templating library, without
//// using its ru... | src/lustre/element.gleam | https://github.com/lustre-labs/lustre | lustre-labs | lustre | A Gleam web framework for building HTML templates, single page applications, and real-time server components. | 2,302 | true | MIT | MIT | [
"lustre-labs"
] | lustre | 245,785 | false | false | 2026-05-28T15:39:45.871015+00:00 | c573707a57aef3542d84e7e18008cd38e62b9edf | 1 |
gleam-lang/stdlib/src/gleam/option.gleam | github | /// `Option` represents a value that may be present or not. `Some` means the value is
/// present, `None` means the value is not.
///
/// This is Gleam's alternative to having a value that could be Null, as is
/// possible in some other languages.
///
/// ## `Option` and `Result`
///
/// In other languages fallible fun... | src/gleam/option.gleam | https://github.com/gleam-lang/stdlib | gleam-lang | stdlib | 🎁 Gleam's standard library | 684 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:39:52.754630+00:00 | c6f7ceee9c569c71849d7e4c5a94e535feaae724 | 1 |
lustre-labs/lustre/test/integration/runtime_test.gleam | github | // IMPORTS ---------------------------------------------------------------------
@target(erlang)
import gleam/dict
@target(erlang)
import gleam/dynamic
@target(erlang)
import gleam/erlang/process
@target(erlang)
import gleam/int
@target(erlang)
import gleam/json
@target(erlang)
import lustre
@target(erlang)
import lus... | test/integration/runtime_test.gleam | https://github.com/lustre-labs/lustre | lustre-labs | lustre | A Gleam web framework for building HTML templates, single page applications, and real-time server components. | 2,302 | true | MIT | MIT | [
"lustre-labs"
] | lustre | 245,785 | false | false | 2026-05-28T15:39:45.871015+00:00 | c573707a57aef3542d84e7e18008cd38e62b9edf | 1 |
gleam-lang/stdlib/test/gleam/bit_array_test.gleam | github | import gleam/bit_array
import gleam/order
import gleam/result
import gleam/string
pub fn bit_size_empty_test() {
assert bit_array.bit_size(<<>>) == 0
}
pub fn bit_size_one_byte_test() {
assert bit_array.bit_size(<<0>>) == 8
}
pub fn bit_size_32_bits_test() {
assert bit_array.bit_size(<<-1:32>>) == 32
}
pub fn... | test/gleam/bit_array_test.gleam | https://github.com/gleam-lang/stdlib | gleam-lang | stdlib | 🎁 Gleam's standard library | 684 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:39:52.754630+00:00 | c6f7ceee9c569c71849d7e4c5a94e535feaae724 | 1 |
lustre-labs/lustre/src/lustre/internals/ref.gleam | github | ///
pub type Ref
///
@external(erlang, "gleam@function", "identity")
@external(javascript, "../../../gleam_stdlib/gleam/function.mjs", "identity")
pub fn from(value: a) -> Ref
///
@external(javascript, "./ref.ffi.mjs", "sameValueZero")
pub fn equal(a: Ref, b: Ref) -> Bool {
a == b
}
///
pub fn equal_lists(xs: List... | src/lustre/internals/ref.gleam | https://github.com/lustre-labs/lustre | lustre-labs | lustre | A Gleam web framework for building HTML templates, single page applications, and real-time server components. | 2,302 | true | MIT | MIT | [
"lustre-labs"
] | lustre | 245,785 | false | false | 2026-05-28T15:39:45.871015+00:00 | c573707a57aef3542d84e7e18008cd38e62b9edf | 1 |
gleam-lang/example-echo-server/src/reply/router.gleam | github | import reply/web
import wisp.{type Request, type Response}
pub fn handle_request(req: Request) -> Response {
use req <- web.middleware(req)
case wisp.path_segments(req) {
["echo"] -> web.reply(req)
["hello", name] -> web.hello(name)
_ -> web.not_found()
}
}
| src/reply/router.gleam | https://github.com/gleam-lang/example-echo-server | gleam-lang | example-echo-server | 🔗 An example Gleam web application | 82 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:41:18.082335+00:00 | 08cff68ad82e8a360fa743267ed8bb21bdf441c8 | 1 |
gleam-wisp/wisp/examples/test/working_with_cookies/app_test.gleam | github | import gleam/crypto
import gleam/http
import gleam/list
import gleam/string
import wisp
import wisp/simulate
import working_with_cookies/app/router
pub fn home_not_logged_in_test() {
let response = router.handle_request(simulate.browser_request(http.Get, "/"))
assert response.status == 303
assert response.head... | examples/test/working_with_cookies/app_test.gleam | https://github.com/gleam-wisp/wisp | gleam-wisp | wisp | 🧚 A practical web framework for Gleam | 1,425 | true | Apache-2.0 | Apache-2.0 | [
"gleam-wisp"
] | wisp | 238,038 | false | false | 2026-05-28T15:39:49.436337+00:00 | f346bfffa4b176d09971d17783f7032ee96d0552 | 1 |
lustre-labs/ui/src/lustre_ui/dom/window.gleam | github | // IMPORTS ---------------------------------------------------------------------
import lustre/effect.{type Effect}
// TYPES -----------------------------------------------------------------------
pub type TimeoutId
// EFFECTS ---------------------------------------------------------------------
pub fn set_timeout... | src/lustre_ui/dom/window.gleam | https://github.com/lustre-labs/ui | lustre-labs | ui | A collection of components and design tokens for building Lustre apps. | 159 | true | MIT | MIT | [
"lustre-labs"
] | null | null | false | false | 2026-05-28T15:40:19.494898+00:00 | a7f2deab9fbde907397a61f75fb211910831c47d | 1 |
lustre-labs/ui/src/lustre_ui/dom/web_component.gleam | github | // IMPORTS ---------------------------------------------------------------------
import gleam/dynamic.{type Dynamic}
import gleam/int
import gleam/string
import lustre/component
import lustre/effect.{type Effect}
import lustre_ui/dom/element.{type HtmlElement}
import lustre_ui/shortid
//
///
///
pub fn tabbable(comp... | src/lustre_ui/dom/web_component.gleam | https://github.com/lustre-labs/ui | lustre-labs | ui | A collection of components and design tokens for building Lustre apps. | 159 | true | MIT | MIT | [
"lustre-labs"
] | null | null | false | false | 2026-05-28T15:40:19.494898+00:00 | a7f2deab9fbde907397a61f75fb211910831c47d | 1 |
lustre-labs/lustre/examples/02-inputs/01-controlled-inputs/src/app.gleam | github | // IMPORTS ---------------------------------------------------------------------
import gleam/string
import lustre
import lustre/attribute
import lustre/element.{type Element}
import lustre/element/html
import lustre/event
// MAIN ------------------------------------------------------------------------
pub fn main()... | examples/02-inputs/01-controlled-inputs/src/app.gleam | https://github.com/lustre-labs/lustre | lustre-labs | lustre | A Gleam web framework for building HTML templates, single page applications, and real-time server components. | 2,302 | true | MIT | MIT | [
"lustre-labs"
] | lustre | 245,785 | false | false | 2026-05-28T15:39:45.871015+00:00 | c573707a57aef3542d84e7e18008cd38e62b9edf | 1 |
gleam-lang/packages/test/packages/text_search_test.gleam | github | import packages/text_search.{Found}
pub fn lookup_empty_test() {
let index = text_search.new()
let assert Ok(value) = text_search.lookup(index, "wibble")
assert value == []
}
pub fn lookup_case_test() {
let index = text_search.new()
let assert Ok(_) =
text_search.insert(index, "lustre", "HTML templates ... | test/packages/text_search_test.gleam | https://github.com/gleam-lang/packages | gleam-lang | packages | 📦 Search for Gleam packages | 116 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:40:45.816590+00:00 | af21c767344d73d7e5b5fd3c9ee6dc2b46b73f1e | 1 |
gleam-wisp/wisp/examples/utilities/tiny_database/test/tiny_database_test.gleam | github | import gleam/dict
import gleeunit
import tiny_database
pub fn main() {
gleeunit.main()
}
pub fn insert_read_test() {
let connection = tiny_database.connect("tmp/data")
let data = dict.from_list([#("name", "Alice"), #("profession", "Programmer")])
let assert Ok(Nil) = tiny_database.truncate(connection)
let... | examples/utilities/tiny_database/test/tiny_database_test.gleam | https://github.com/gleam-wisp/wisp | gleam-wisp | wisp | 🧚 A practical web framework for Gleam | 1,425 | true | Apache-2.0 | Apache-2.0 | [
"gleam-wisp"
] | wisp | 238,038 | false | false | 2026-05-28T15:39:49.436337+00:00 | f346bfffa4b176d09971d17783f7032ee96d0552 | 1 |
lustre-labs/lustre/src/lustre/dev/simulate.gleam | github | // IMPORTS ---------------------------------------------------------------------
import gleam/dynamic.{type Dynamic}
import gleam/dynamic/decode
import gleam/json.{type Json}
import gleam/list
import gleam/pair
import gleam/result
import lustre/dev/query.{type Query}
import lustre/effect.{type Effect}
import lustre/el... | src/lustre/dev/simulate.gleam | https://github.com/lustre-labs/lustre | lustre-labs | lustre | A Gleam web framework for building HTML templates, single page applications, and real-time server components. | 2,302 | true | MIT | MIT | [
"lustre-labs"
] | lustre | 245,785 | false | false | 2026-05-28T15:39:45.871015+00:00 | c573707a57aef3542d84e7e18008cd38e62b9edf | 1 |
gleam-wisp/wisp/wisp_ewe/src/wisp_ewe.gleam | github | import ewe.{type Request as EweRequest, type Response as EweResponse}
import exception
import gleam/http/request
import gleam/http/response
import gleam/option
import gleam/result
import gleam/string
import wisp.{type Request as WispRequest, type Response as WispResponse}
import wisp/internal
/// Convert a Wisp reques... | wisp_ewe/src/wisp_ewe.gleam | https://github.com/gleam-wisp/wisp | gleam-wisp | wisp | 🧚 A practical web framework for Gleam | 1,425 | true | Apache-2.0 | Apache-2.0 | [
"gleam-wisp"
] | wisp | 238,038 | false | false | 2026-05-28T15:39:49.436337+00:00 | f346bfffa4b176d09971d17783f7032ee96d0552 | 1 |
gleam-lang/stdlib/test/gleam/string_tree_test.gleam | github | import gleam/string_tree
pub fn string_tree_to_string_test() {
let data =
string_tree.from_string("ello")
|> string_tree.append(",")
|> string_tree.append(" world!")
|> string_tree.prepend("H")
assert string_tree.to_string(data) == "Hello, world!"
}
pub fn string_tree_byte_size_test() {
let dat... | test/gleam/string_tree_test.gleam | https://github.com/gleam-lang/stdlib | gleam-lang | stdlib | 🎁 Gleam's standard library | 684 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:39:52.754630+00:00 | c6f7ceee9c569c71849d7e4c5a94e535feaae724 | 1 |
gleam-lang/stdlib/test/gleam/dict_test.gleam | github | import gleam/dict
import gleam/int
import gleam/list
import gleam/option.{None, Some}
import gleam/string
pub fn from_list_size_test() {
assert [#(4, 0), #(1, 0)]
|> dict.from_list
|> dict.size
== 2
}
pub fn from_list_duplicate_key_test() {
assert dict.from_list([#(1, 0), #(1, 1)]) == dict.from_list([... | test/gleam/dict_test.gleam | https://github.com/gleam-lang/stdlib | gleam-lang | stdlib | 🎁 Gleam's standard library | 684 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:39:52.754630+00:00 | c6f7ceee9c569c71849d7e4c5a94e535feaae724 | 1 |
lustre-labs/ui/src/lustre/ui/accordion/root.gleam | github | // IMPORTS ---------------------------------------------------------------------
import gleam/bool
import gleam/dynamic/decode.{type Decoder}
import gleam/json
import gleam/list
import gleam/option.{type Option, None}
import gleam/set.{type Set}
import gleam/string
import lustre
import lustre/attribute.{type Attribute... | src/lustre/ui/accordion/root.gleam | https://github.com/lustre-labs/ui | lustre-labs | ui | A collection of components and design tokens for building Lustre apps. | 159 | true | MIT | MIT | [
"lustre-labs"
] | null | null | false | false | 2026-05-28T15:40:19.494898+00:00 | a7f2deab9fbde907397a61f75fb211910831c47d | 1 |
gleam-wisp/wisp/examples/utilities/tiny_database/src/tiny_database.gleam | github | import gleam/dict.{type Dict}
import gleam/dynamic/decode
import gleam/json
import gleam/list
import gleam/result
import simplifile
import youid/uuid
pub opaque type Connection {
Connection(root: String)
}
pub fn connect(root: String) -> Connection {
let assert Ok(_) = simplifile.create_directory_all(root)
Conn... | examples/utilities/tiny_database/src/tiny_database.gleam | https://github.com/gleam-wisp/wisp | gleam-wisp | wisp | 🧚 A practical web framework for Gleam | 1,425 | true | Apache-2.0 | Apache-2.0 | [
"gleam-wisp"
] | wisp | 238,038 | false | false | 2026-05-28T15:39:49.436337+00:00 | f346bfffa4b176d09971d17783f7032ee96d0552 | 1 |
lustre-labs/ui/src/lustre/ui/tooltip/root.gleam | github | // IMPORTS ---------------------------------------------------------------------
import gleam/dynamic/decode
import gleam/int
import gleam/json
import lustre
import lustre/attribute.{type Attribute, attribute}
import lustre/component
import lustre/effect.{type Effect}
import lustre/element.{type Element}
import lustre... | src/lustre/ui/tooltip/root.gleam | https://github.com/lustre-labs/ui | lustre-labs | ui | A collection of components and design tokens for building Lustre apps. | 159 | true | MIT | MIT | [
"lustre-labs"
] | null | null | false | false | 2026-05-28T15:40:19.494898+00:00 | a7f2deab9fbde907397a61f75fb211910831c47d | 1 |
lustre-labs/lustre/examples/06-server-components/04-multiple-clients/src/app.gleam | github | // IMPORTS ---------------------------------------------------------------------
import gleam/bytes_tree
import gleam/erlang/application
import gleam/erlang/process.{type Selector, type Subject}
import gleam/http/request.{type Request}
import gleam/http/response.{type Response}
import gleam/json
import gleam/option.{t... | examples/06-server-components/04-multiple-clients/src/app.gleam | https://github.com/lustre-labs/lustre | lustre-labs | lustre | A Gleam web framework for building HTML templates, single page applications, and real-time server components. | 2,302 | true | MIT | MIT | [
"lustre-labs"
] | lustre | 245,785 | false | false | 2026-05-28T15:39:45.871015+00:00 | c573707a57aef3542d84e7e18008cd38e62b9edf | 1 |
gleam-lang/otp/src/gleam/otp/supervision.gleam | github | import gleam/otp/actor
/// Restart defines when a terminated child process must be restarted.
pub type Restart {
/// A permanent child process is always restarted.
Permanent
/// A transient child process is restarted only if it terminates abnormally,
/// that is, with another exit reason than `normal`, `shutd... | src/gleam/otp/supervision.gleam | https://github.com/gleam-lang/otp | gleam-lang | otp | 📫 Fault tolerant multicore programs with actors | 854 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:39:50.769608+00:00 | 4d91278e2aac5694b1120a85dfb571e84f098926 | 1 |
lustre-labs/lustre/examples/03-effects/06-optimistic-requests/src/app.gleam | github | // IMPORTS ---------------------------------------------------------------------
import gleam/dynamic/decode.{type Decoder}
import gleam/http
import gleam/http/request
import gleam/int
import gleam/json
import gleam/list
import lustre
import lustre/attribute
import lustre/effect.{type Effect}
import lustre/element.{ty... | examples/03-effects/06-optimistic-requests/src/app.gleam | https://github.com/lustre-labs/lustre | lustre-labs | lustre | A Gleam web framework for building HTML templates, single page applications, and real-time server components. | 2,302 | true | MIT | MIT | [
"lustre-labs"
] | lustre | 245,785 | false | false | 2026-05-28T15:39:45.871015+00:00 | c573707a57aef3542d84e7e18008cd38e62b9edf | 1 |
gleam-lang/fetch/test/gleam_fetch_test.gleam | github | import gleam/fetch.{type FetchError}
import gleam/fetch/form_data
import gleam/http.{Get, Head, Options, Post}
import gleam/http/request
import gleam/http/response.{type Response, Response}
import gleam/javascript/promise
import gleam/option
import gleeunit
import gleeunit/should
pub fn main() {
gleeunit.main()
}
p... | test/gleam_fetch_test.gleam | https://github.com/gleam-lang/fetch | gleam-lang | fetch | 📡 Make requests to HTTP servers with fetch | 59 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:41:52.551301+00:00 | 559cc2474d3b389d821706dfe8f5d8f9fe08cddc | 1 |
lustre-labs/lustre/src/lustre/runtime/transport.gleam | github | // IMPORTS ---------------------------------------------------------------------
import gleam/dict.{type Dict}
import gleam/dynamic.{type Dynamic}
import gleam/dynamic/decode.{type Decoder}
import gleam/function
import gleam/json.{type Json}
import lustre/vdom/patch.{type Patch}
import lustre/vdom/vnode.{type Element,... | src/lustre/runtime/transport.gleam | https://github.com/lustre-labs/lustre | lustre-labs | lustre | A Gleam web framework for building HTML templates, single page applications, and real-time server components. | 2,302 | true | MIT | MIT | [
"lustre-labs"
] | lustre | 245,785 | false | false | 2026-05-28T15:39:45.871015+00:00 | c573707a57aef3542d84e7e18008cd38e62b9edf | 1 |
lustre-labs/ui/src/lustre/ui/toggle/root.gleam | github | // IMPORTS ---------------------------------------------------------------------
import gleam/bool
import gleam/dynamic/decode
import gleam/json
import gleam/option.{None, Some}
import lustre
import lustre/attribute.{type Attribute, attribute}
import lustre/component
import lustre/effect.{type Effect}
import lustre/el... | src/lustre/ui/toggle/root.gleam | https://github.com/lustre-labs/ui | lustre-labs | ui | A collection of components and design tokens for building Lustre apps. | 159 | true | MIT | MIT | [
"lustre-labs"
] | null | null | false | false | 2026-05-28T15:40:19.494898+00:00 | a7f2deab9fbde907397a61f75fb211910831c47d | 1 |
gleam-lang/hackney/test/gleam_hackney_test.gleam | github | import gleam/hackney
import gleam/http.{Get, Head, Options}
import gleam/http/request
import gleam/http/response
import gleeunit
pub fn main() {
// Run the tests
gleeunit.main()
}
pub fn request_test() {
let req =
request.new()
|> request.set_method(Get)
|> request.set_host("test-api.service.hmrc.go... | test/gleam_hackney_test.gleam | https://github.com/gleam-lang/hackney | gleam-lang | hackney | 🪝 Make requests to HTTP servers with Hackney | 61 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:41:46.456098+00:00 | c691c40f2e4f26215f5f145a5bc50740a3b537d0 | 1 |
lustre-labs/ui/dev/storybook/lustre/ui/tooltip.gleam | github | // IMPORTS ---------------------------------------------------------------------
import lustre/attribute
import lustre/dev/fable
import lustre/element/html
import lustre/ui/tooltip
import lustre/ui/tooltip/popover
// CONSTANTS -------------------------------------------------------------------
const button = "inline... | dev/storybook/lustre/ui/tooltip.gleam | https://github.com/lustre-labs/ui | lustre-labs | ui | A collection of components and design tokens for building Lustre apps. | 159 | true | MIT | MIT | [
"lustre-labs"
] | null | null | false | false | 2026-05-28T15:40:19.494898+00:00 | a7f2deab9fbde907397a61f75fb211910831c47d | 1 |
gleam-wisp/wisp/test/wisp_test.gleam | github | import exception
import gleam/bit_array
import gleam/bytes_tree
import gleam/crypto
import gleam/dynamic.{type Dynamic}
import gleam/http
import gleam/http/request
import gleam/http/response.{Response}
import gleam/int
import gleam/list
import gleam/option
import gleam/result
import gleam/set
import gleam/string
import... | test/wisp_test.gleam | https://github.com/gleam-wisp/wisp | gleam-wisp | wisp | 🧚 A practical web framework for Gleam | 1,425 | true | Apache-2.0 | Apache-2.0 | [
"gleam-wisp"
] | wisp | 238,038 | false | false | 2026-05-28T15:39:49.436337+00:00 | f346bfffa4b176d09971d17783f7032ee96d0552 | 1 |
lustre-labs/lustre/test/integration/reconciler_test.gleam | github | // IMPORTS ---------------------------------------------------------------------
//
@target(javascript)
import gleam/json
@target(javascript)
import lustre/attribute.{attribute}
@target(javascript)
import lustre/element.{type Element}
@target(javascript)
import lustre/element/html
@target(javascript)
import lustre/elem... | test/integration/reconciler_test.gleam | https://github.com/lustre-labs/lustre | lustre-labs | lustre | A Gleam web framework for building HTML templates, single page applications, and real-time server components. | 2,302 | true | MIT | MIT | [
"lustre-labs"
] | lustre | 245,785 | false | false | 2026-05-28T15:39:45.871015+00:00 | c573707a57aef3542d84e7e18008cd38e62b9edf | 1 |
lustre-labs/ui/src/lustre/ui/accordion.gleam | github | //// <script>
//// const docs = [
//// {
//// header: "Elements",
//// functions: [
//// "register",
//// "view",
//// "item",
//// "heading",
//// "trigger",
//// "panel",
//// "close",
//// ]
//// },
//// {
//// header: "Attributes",
//// sort: true,... | src/lustre/ui/accordion.gleam | https://github.com/lustre-labs/ui | lustre-labs | ui | A collection of components and design tokens for building Lustre apps. | 159 | true | MIT | MIT | [
"lustre-labs"
] | null | null | false | false | 2026-05-28T15:40:19.494898+00:00 | a7f2deab9fbde907397a61f75fb211910831c47d | 1 |
gleam-lang/otp/test/gleam/periodic_actor.gleam | github | //// An example of an actor that concurrently does something every X amount of
//// time (or when it is sent a message by another process).
import gleam/erlang/process
import gleam/otp/actor.{type StartError}
pub fn periodic_actor(
every period_milliseconds: Int,
run callback: fn() -> Nil,
) -> Result(actor.Start... | test/gleam/periodic_actor.gleam | https://github.com/gleam-lang/otp | gleam-lang | otp | 📫 Fault tolerant multicore programs with actors | 854 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:39:50.769608+00:00 | 4d91278e2aac5694b1120a85dfb571e84f098926 | 1 |
lustre-labs/lustre/src/lustre/internals/json_object_builder.gleam | github | //// This module contains helper functions for building up json objects using
//// pipelines. This allows us to skip "empty" values, reducing payload size.
////
//// It builds up a list of entries in reverse; but since we do not care about
//// the order of our keys, we can just leave the list like it is.
import gleam... | src/lustre/internals/json_object_builder.gleam | https://github.com/lustre-labs/lustre | lustre-labs | lustre | A Gleam web framework for building HTML templates, single page applications, and real-time server components. | 2,302 | true | MIT | MIT | [
"lustre-labs"
] | lustre | 245,785 | false | false | 2026-05-28T15:39:45.871015+00:00 | c573707a57aef3542d84e7e18008cd38e62b9edf | 1 |
gleam-lang/should_assertions/src/gleam/should.gleam | github | //// A module for testing your Gleam code. The functions found here are
//// compatible with the Erlang eunit test framework.
////
//// More information on running eunit can be found in [the rebar3
//// documentation](https://rebar3.org/docs/testing/eunit/).
if erlang {
pub external fn equal(a, a) -> Nil =
"glea... | src/gleam/should.gleam | https://github.com/gleam-lang/should_assertions | gleam-lang | should_assertions | ☝️ EUnit compatible assertion functions for use in tests | 6 | true | Apache-2.0 | Apache 2.0 | [
"gleam-lang"
] | gleam_should_assertions | 2,641 | false | true | 2026-05-28T15:54:09.838444+00:00 | 0926f5d2197c2af5d7b15d6eeea97389b6c1b872 | 1 |
gleam-lang/example-lisp-interpreter/test/glisp_test.gleam | github | import gleeunit
import glisp
pub fn main() {
gleeunit.main()
}
pub fn no_code_test() {
let assert Error(glisp.UnexpectedEndOfFile) = glisp.eval("")
}
pub fn close_paren_test() {
let assert Error(glisp.UnexpectedCloseParen) = glisp.eval("(+ 1 2))")
}
pub fn empty_list_test() {
let assert Error(glisp.MissingP... | test/glisp_test.gleam | https://github.com/gleam-lang/example-lisp-interpreter | gleam-lang | example-lisp-interpreter | 👾 A Lisp interpreter in Gleam! | 49 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:42:12.092352+00:00 | f1e038247ae2290536705975ad58f5b1adee3158 | 1 |
lustre-labs/lustre/examples/05-components/03-slots/src/details.gleam | github | // IMPORTS ---------------------------------------------------------------------
import gleam/dynamic.{type Dynamic}
import gleam/dynamic/decode
import gleam/int
import lustre
import lustre/attribute.{type Attribute, attribute}
import lustre/component
import lustre/effect.{type Effect}
import lustre/element.{type Elem... | examples/05-components/03-slots/src/details.gleam | https://github.com/lustre-labs/lustre | lustre-labs | lustre | A Gleam web framework for building HTML templates, single page applications, and real-time server components. | 2,302 | true | MIT | MIT | [
"lustre-labs"
] | lustre | 245,785 | false | false | 2026-05-28T15:39:45.871015+00:00 | c573707a57aef3542d84e7e18008cd38e62b9edf | 1 |
gleam-lang/packages/src/packages.gleam | github | import argv
import envoy
import gleam/erlang/process
import gleam/int
import gleam/io
import gleam/list
import gleam/otp/actor
import gleam/otp/static_supervisor as supervisor
import gleam/otp/supervision
import gleam/result
import gleam/time/duration
import gleam/time/timestamp
import mist
import packages/error.{type ... | src/packages.gleam | https://github.com/gleam-lang/packages | gleam-lang | packages | 📦 Search for Gleam packages | 116 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:40:45.816590+00:00 | af21c767344d73d7e5b5fd3c9ee6dc2b46b73f1e | 1 |
gleam-wisp/wisp/examples/src/using_a_database/app.gleam | github | import gleam/erlang/process
import mist
import tiny_database
import using_a_database/app/router
import using_a_database/app/web
import wisp
import wisp_mist
pub const data_directory = "tmp/data"
pub fn main() {
wisp.configure_logger()
let secret_key_base = wisp.random_string(64)
// A database creation is creat... | examples/src/using_a_database/app.gleam | https://github.com/gleam-wisp/wisp | gleam-wisp | wisp | 🧚 A practical web framework for Gleam | 1,425 | true | Apache-2.0 | Apache-2.0 | [
"gleam-wisp"
] | wisp | 238,038 | false | false | 2026-05-28T15:39:49.436337+00:00 | f346bfffa4b176d09971d17783f7032ee96d0552 | 1 |
gleam-lang/stdlib/test/gleam_stdlib_test.gleam | github | import gleeunit
pub fn main() -> Nil {
gleeunit.main()
}
| test/gleam_stdlib_test.gleam | https://github.com/gleam-lang/stdlib | gleam-lang | stdlib | 🎁 Gleam's standard library | 684 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:39:52.754630+00:00 | c6f7ceee9c569c71849d7e4c5a94e535feaae724 | 1 |
gleam-lang/http/test/gleam/http_test.gleam | github | import gleam/http
pub fn parse_method_test() {
assert http.parse_method("Connect") == Ok(http.Other("Connect"))
assert http.parse_method("CONNECT") == Ok(http.Connect)
assert http.parse_method("connect") == Ok(http.Other("connect"))
assert http.parse_method("Delete") == Ok(http.Other("Delete"))
assert ht... | test/gleam/http_test.gleam | https://github.com/gleam-lang/http | gleam-lang | http | 🕸️ Types and functions for HTTP clients and servers! | 276 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:40:02.224913+00:00 | da44e896606b498dd9e004e3d8480e4c08f47d23 | 1 |
gleam-lang/stdlib/test/gleeunit/should.gleam | github | //// Use the `assert` keyword instead of this module.
import gleam/option.{type Option, None, Some}
import gleam/string
pub fn equal(a: t, b: t) -> Nil {
case a == b {
True -> Nil
_ ->
panic as string.concat([
"\n",
string.inspect(a),
"\nshould equal\n",
string.... | test/gleeunit/should.gleam | https://github.com/gleam-lang/stdlib | gleam-lang | stdlib | 🎁 Gleam's standard library | 684 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:39:52.754630+00:00 | c6f7ceee9c569c71849d7e4c5a94e535feaae724 | 1 |
gleam-lang/stdlib/test/gleam/bytes_tree_test.gleam | github | import gleam/bytes_tree
import gleam/string_tree
pub fn tree_to_bit_array_test() {
let data =
bytes_tree.from_bit_array(<<1>>)
|> bytes_tree.append(<<2>>)
|> bytes_tree.append(<<3>>)
|> bytes_tree.prepend(<<0>>)
assert bytes_tree.to_bit_array(data) == <<0, 1, 2, 3>>
}
pub fn tree_byte_size_test()... | test/gleam/bytes_tree_test.gleam | https://github.com/gleam-lang/stdlib | gleam-lang | stdlib | 🎁 Gleam's standard library | 684 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:39:52.754630+00:00 | c6f7ceee9c569c71849d7e4c5a94e535feaae724 | 1 |
gleam-lang/packages/src/packages/override.gleam | github | pub fn is_ignored_package(name: String) -> Bool {
case name {
"bare_package1"
| "bare_package_one"
| "bare_package_two"
| "first_gleam_publish_package"
| "gleam_module_javascript_test"
| // Reserved official sounding names.
"gleam"
| "gleam_deno"
| "gleam_email"
| "gleam_html... | src/packages/override.gleam | https://github.com/gleam-lang/packages | gleam-lang | packages | 📦 Search for Gleam packages | 116 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:40:45.816590+00:00 | af21c767344d73d7e5b5fd3c9ee6dc2b46b73f1e | 1 |
lustre-labs/lustre/examples/06-server-components/06-csrf-protection/src/app.gleam | github | //// A "cross-site request forgery" (CSRF) attack is when a malicious website makes
//// requests to another website on behalf of an authenticated user without their
//// consent or knowledge.
////
//// This is possible because browsers automatically include HTTP cookies with
//// every request, but while browsers enf... | examples/06-server-components/06-csrf-protection/src/app.gleam | https://github.com/lustre-labs/lustre | lustre-labs | lustre | A Gleam web framework for building HTML templates, single page applications, and real-time server components. | 2,302 | true | MIT | MIT | [
"lustre-labs"
] | lustre | 245,785 | false | false | 2026-05-28T15:39:45.871015+00:00 | c573707a57aef3542d84e7e18008cd38e62b9edf | 1 |
lustre-labs/ui/dev/storybook/lustre/ui/tabs.gleam | github | // IMPORTS ---------------------------------------------------------------------
import lustre/attribute
import lustre/dev/fable
import lustre/element/html
import lustre/ui/tabs
// CONSTANTS -------------------------------------------------------------------
const tabs = "rounded-md border border-gray-200"
const ta... | dev/storybook/lustre/ui/tabs.gleam | https://github.com/lustre-labs/ui | lustre-labs | ui | A collection of components and design tokens for building Lustre apps. | 159 | true | MIT | MIT | [
"lustre-labs"
] | null | null | false | false | 2026-05-28T15:40:19.494898+00:00 | a7f2deab9fbde907397a61f75fb211910831c47d | 1 |
lustre-labs/lustre/test/integration/virtualise_test.gleam | github | @target(javascript)
import lustre/element.{type Element}
@target(javascript)
import lustre/element/html
@target(javascript)
import lustre/element/keyed
@target(javascript)
import lustre_test
@target(javascript)
pub fn virtualise_none_test() {
use <- lustre_test.test_filter("virtualise_none_test")
test_virtualise(e... | test/integration/virtualise_test.gleam | https://github.com/lustre-labs/lustre | lustre-labs | lustre | A Gleam web framework for building HTML templates, single page applications, and real-time server components. | 2,302 | true | MIT | MIT | [
"lustre-labs"
] | lustre | 245,785 | false | false | 2026-05-28T15:39:45.871015+00:00 | c573707a57aef3542d84e7e18008cd38e62b9edf | 1 |
gleam-lang/stdlib/test/gleam/dynamic/decode_test.gleam | github | import gleam/dict
import gleam/dynamic.{type Dynamic}
import gleam/dynamic/decode.{DecodeError}
import gleam/float
import gleam/int
import gleam/list
import gleam/option
import gleam/result
import gleam/string
pub type User {
User(
name: String,
email: String,
is_admin: Bool,
is_confirmed: Bool,
... | test/gleam/dynamic/decode_test.gleam | https://github.com/gleam-lang/stdlib | gleam-lang | stdlib | 🎁 Gleam's standard library | 684 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:39:52.754630+00:00 | c6f7ceee9c569c71849d7e4c5a94e535feaae724 | 1 |
gleam-lang/stdlib/test/gleam/list_test.gleam | github | import gleam/dict
import gleam/float
import gleam/int
import gleam/list
import gleam/pair
import gleam/string
@target(erlang)
const recursion_test_cycles = 1_000_000
// JavaScript engines crash when exceeding a certain stack size:
//
// - Chrome 106 and NodeJS V16, V18, and V19 crash around 10_000+
// - Firefox 106 c... | test/gleam/list_test.gleam | https://github.com/gleam-lang/stdlib | gleam-lang | stdlib | 🎁 Gleam's standard library | 684 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:39:52.754630+00:00 | c6f7ceee9c569c71849d7e4c5a94e535feaae724 | 1 |
lustre-labs/lustre/examples/05-components/02-attributes-and-events/src/counter.gleam | github | // IMPORTS ---------------------------------------------------------------------
import gleam/dynamic/decode
import gleam/int
import gleam/json
import gleam/result
import lustre
import lustre/attribute.{type Attribute}
import lustre/component
import lustre/effect.{type Effect}
import lustre/element.{type Element}
impo... | examples/05-components/02-attributes-and-events/src/counter.gleam | https://github.com/lustre-labs/lustre | lustre-labs | lustre | A Gleam web framework for building HTML templates, single page applications, and real-time server components. | 2,302 | true | MIT | MIT | [
"lustre-labs"
] | lustre | 245,785 | false | false | 2026-05-28T15:39:45.871015+00:00 | c573707a57aef3542d84e7e18008cd38e62b9edf | 1 |
lustre-labs/ui/src/lustre/ui/accordion/item.gleam | github | // IMPORTS ---------------------------------------------------------------------
import gleam/bool
import gleam/dynamic/decode
import gleam/json
import gleam/result
import gleam/set
import lustre
import lustre/attribute.{type Attribute, attribute}
import lustre/component
import lustre/effect.{type Effect}
import lustr... | src/lustre/ui/accordion/item.gleam | https://github.com/lustre-labs/ui | lustre-labs | ui | A collection of components and design tokens for building Lustre apps. | 159 | true | MIT | MIT | [
"lustre-labs"
] | null | null | false | false | 2026-05-28T15:40:19.494898+00:00 | a7f2deab9fbde907397a61f75fb211910831c47d | 1 |
gleam-wisp/wisp/examples/src/working_with_json/app.gleam | github | import gleam/erlang/process
import mist
import wisp
import wisp_mist
import working_with_json/app/router
pub fn main() {
wisp.configure_logger()
let secret_key_base = wisp.random_string(64)
let assert Ok(_) =
wisp_mist.handler(router.handle_request, secret_key_base)
|> mist.new
|> mist.port(8000)
... | examples/src/working_with_json/app.gleam | https://github.com/gleam-wisp/wisp | gleam-wisp | wisp | 🧚 A practical web framework for Gleam | 1,425 | true | Apache-2.0 | Apache-2.0 | [
"gleam-wisp"
] | wisp | 238,038 | false | false | 2026-05-28T15:39:49.436337+00:00 | f346bfffa4b176d09971d17783f7032ee96d0552 | 1 |
lustre-labs/lustre/src/lustre/element/mathml.gleam | github | // IMPORTS ---------------------------------------------------------------------
import lustre/attribute.{type Attribute}
import lustre/element.{type Element, namespaced}
// CONSTANTS -------------------------------------------------------------------
/// The MathML namespace URI: `"http://www.w3.org/1998/Math/MathM... | src/lustre/element/mathml.gleam | https://github.com/lustre-labs/lustre | lustre-labs | lustre | A Gleam web framework for building HTML templates, single page applications, and real-time server components. | 2,302 | true | MIT | MIT | [
"lustre-labs"
] | lustre | 245,785 | false | false | 2026-05-28T15:39:45.871015+00:00 | c573707a57aef3542d84e7e18008cd38e62b9edf | 1 |
gleam-lang/erlang/src/gleam/erlang/process.gleam | github | import gleam/dynamic.{type Dynamic}
import gleam/dynamic/decode
import gleam/erlang/atom.{type Atom}
import gleam/erlang/port.{type Port}
import gleam/erlang/reference.{type Reference}
import gleam/string
/// A `Pid` (or Process identifier) is a reference to an Erlang process. Each
/// process has a `Pid` and it is on... | src/gleam/erlang/process.gleam | https://github.com/gleam-lang/erlang | gleam-lang | erlang | 🐙 Types and functions for programs running on Erlang! | 135 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:40:30.230862+00:00 | 69e604c2092e5e60c0a38fb0e4835f22470d9e20 | 1 |
gleam-lang/crypto/src/gleam/crypto.gleam | github | //// Set of cryptographic functions.
import gleam/bit_array
import gleam/int
import gleam/result
import gleam/string
/// Generates a specified number of bytes randomly uniform 0..255, and returns
/// the result in a binary.
///
/// On Erlang this uses a cryptographically secure prng seeded and periodically
/// mixed ... | src/gleam/crypto.gleam | https://github.com/gleam-lang/crypto | gleam-lang | crypto | ⛓️ Crypto functionality for Gleam applications | 53 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:42:00.702235+00:00 | a88a82467d3684e0dd3a3e609247ef3050842b41 | 1 |
lustre-labs/ui/src/lustre_ui/dom/document.gleam | github | // IMPORTS ---------------------------------------------------------------------
import lustre_ui/dom/element.{type HtmlElement}
// QUERIES ---------------------------------------------------------------------
@external(javascript, "./document.ffi.mjs", "activeElement")
pub fn active_element() -> Result(HtmlElement,... | src/lustre_ui/dom/document.gleam | https://github.com/lustre-labs/ui | lustre-labs | ui | A collection of components and design tokens for building Lustre apps. | 159 | true | MIT | MIT | [
"lustre-labs"
] | null | null | false | false | 2026-05-28T15:40:19.494898+00:00 | a7f2deab9fbde907397a61f75fb211910831c47d | 1 |
gleam-lang/stdlib/src/gleam/io.gleam | github | /// Writes a string to standard output (stdout).
///
/// If you want your output to be printed on its own line see `println`.
///
/// ## Example
///
/// ```gleam
/// assert io.print("Hi mum") == Nil
/// // Hi mum
/// ```
///
@external(erlang, "gleam_stdlib", "print")
@external(javascript, "../gleam_stdlib.mjs", "print"... | src/gleam/io.gleam | https://github.com/gleam-lang/stdlib | gleam-lang | stdlib | 🎁 Gleam's standard library | 684 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:39:52.754630+00:00 | c6f7ceee9c569c71849d7e4c5a94e535feaae724 | 1 |
gleam-wisp/wisp/examples/src/working_with_other_formats/app.gleam | github | import gleam/erlang/process
import mist
import wisp
import wisp_mist
import working_with_other_formats/app/router
pub fn main() {
wisp.configure_logger()
let secret_key_base = wisp.random_string(64)
let assert Ok(_) =
wisp_mist.handler(router.handle_request, secret_key_base)
|> mist.new
|> mist.port... | examples/src/working_with_other_formats/app.gleam | https://github.com/gleam-wisp/wisp | gleam-wisp | wisp | 🧚 A practical web framework for Gleam | 1,425 | true | Apache-2.0 | Apache-2.0 | [
"gleam-wisp"
] | wisp | 238,038 | false | false | 2026-05-28T15:39:49.436337+00:00 | f346bfffa4b176d09971d17783f7032ee96d0552 | 1 |
gleam-lang/stdlib/test/gleam/string_test.gleam | github | import gleam/dict
import gleam/option.{None, Some}
import gleam/order
import gleam/string
@target(erlang)
import gleam/int
@target(erlang)
import gleam/list
@target(erlang)
import gleam/result
@target(javascript)
import gleam/dynamic.{type Dynamic}
pub fn length_unicode_test() {
assert string.length("ß↑e̊") == 3
}... | test/gleam/string_test.gleam | https://github.com/gleam-lang/stdlib | gleam-lang | stdlib | 🎁 Gleam's standard library | 684 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:39:52.754630+00:00 | c6f7ceee9c569c71849d7e4c5a94e535feaae724 | 1 |
gleam-lang/website/src/website/command_line_reference.gleam | github | import gleam/option
import lustre/attribute as attr
import lustre/element/html
import website/fs
import website/page
import website/site
pub fn page(ctx: site.Context) -> fs.File {
let meta =
page.PageMeta(
path: "command-line-reference",
title: "Command line reference",
meta_title: "Command li... | src/website/command_line_reference.gleam | https://github.com/gleam-lang/website | gleam-lang | website | 🏡 Gleam's website and guide | 132 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:40:33.671000+00:00 | fbac945d9fc5e6815da1308e61735b9b3b5a2bfc | 1 |
gleam-wisp/wisp/examples/src/hello_world/app/web.gleam | github | import wisp
/// The middleware stack that the request handler uses. The stack is itself a
/// middleware function!
///
/// Middleware wrap each other, so the request travels through the stack from
/// top to bottom until it reaches the request handler, at which point the
/// response travels back up through the stack.... | examples/src/hello_world/app/web.gleam | https://github.com/gleam-wisp/wisp | gleam-wisp | wisp | 🧚 A practical web framework for Gleam | 1,425 | true | Apache-2.0 | Apache-2.0 | [
"gleam-wisp"
] | wisp | 238,038 | false | false | 2026-05-28T15:39:49.436337+00:00 | f346bfffa4b176d09971d17783f7032ee96d0552 | 1 |
gleam-lang/http/src/gleam/http/response.gleam | github | import gleam/http.{type Header}
import gleam/http/cookie
import gleam/list
import gleam/option
import gleam/result
import gleam/string
/// A HTTP response.
///
/// The body of the request is parameterised. The HTTP server or client you are
/// using will have a particular set of types it supports for the body.
///
pub... | src/gleam/http/response.gleam | https://github.com/gleam-lang/http | gleam-lang | http | 🕸️ Types and functions for HTTP clients and servers! | 276 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:40:02.224913+00:00 | da44e896606b498dd9e004e3d8480e4c08f47d23 | 1 |
gleam-lang/otp/src/gleam/otp/static_supervisor.gleam | github | //// A supervisor where the number and types of the children are specified
//// once, and the supervisor manages them using a configured restart strategy.
////
//// For further detail see the Erlang documentation:
//// <https://www.erlang.org/doc/apps/stdlib/supervisor.html>.
////
//// # Example
////
//// ```gleam
////... | src/gleam/otp/static_supervisor.gleam | https://github.com/gleam-lang/otp | gleam-lang | otp | 📫 Fault tolerant multicore programs with actors | 854 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:39:50.769608+00:00 | 4d91278e2aac5694b1120a85dfb571e84f098926 | 1 |
gleam-lang/otp/test/gleam/otp/actor_documentation_example_test.gleam | github | //// If you update this file be sure to update the documentation in the actor
//// module which includes a copy of this.
import gleam/erlang/process.{type Subject}
import gleam/otp/actor
pub fn example_test() {
// Start the actor with initial state of an empty list, and the
// `handle_message` callback function (... | test/gleam/otp/actor_documentation_example_test.gleam | https://github.com/gleam-lang/otp | gleam-lang | otp | 📫 Fault tolerant multicore programs with actors | 854 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:39:50.769608+00:00 | 4d91278e2aac5694b1120a85dfb571e84f098926 | 1 |
lustre-labs/ui/src/lustre/ui/tooltip/trigger.gleam | github | // IMPORTS ---------------------------------------------------------------------
import gleam/dynamic/decode
import gleam/int
import gleam/json
import gleam/option.{type Option, None, Some}
import lustre
import lustre/attribute.{type Attribute, attribute}
import lustre/component
import lustre/effect.{type Effect}
impo... | src/lustre/ui/tooltip/trigger.gleam | https://github.com/lustre-labs/ui | lustre-labs | ui | A collection of components and design tokens for building Lustre apps. | 159 | true | MIT | MIT | [
"lustre-labs"
] | null | null | false | false | 2026-05-28T15:40:19.494898+00:00 | a7f2deab9fbde907397a61f75fb211910831c47d | 1 |
gleam-wisp/wisp/wisp_ewe/test/wisp_ewe_test.gleam | github | import ewe
import gleam/http/request
import gleam/httpc
import gleeunit
import wisp
import wisp_ewe
pub fn main() -> Nil {
gleeunit.main()
}
pub fn handler_test() {
let secret_key_base = wisp.random_string(64)
let assert Ok(_started) =
wisp_ewe.handler(
fn(_req) {
wisp.ok()
|> wisp.st... | wisp_ewe/test/wisp_ewe_test.gleam | https://github.com/gleam-wisp/wisp | gleam-wisp | wisp | 🧚 A practical web framework for Gleam | 1,425 | true | Apache-2.0 | Apache-2.0 | [
"gleam-wisp"
] | wisp | 238,038 | false | false | 2026-05-28T15:39:49.436337+00:00 | f346bfffa4b176d09971d17783f7032ee96d0552 | 1 |
gleam-lang/erlang/src/gleam/erlang/reference.gleam | github | /// A unique reference value.
///
/// It holds no particular meaning or value, but unique values are often useful
/// in programs are used heavily within both Gleam and Erlang's OTP frameworks.
///
/// More can be read about references in the [Erlang documentation][1].
///
/// [1]: https://www.erlang.org/doc/efficiency... | src/gleam/erlang/reference.gleam | https://github.com/gleam-lang/erlang | gleam-lang | erlang | 🐙 Types and functions for programs running on Erlang! | 135 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:40:30.230862+00:00 | 69e604c2092e5e60c0a38fb0e4835f22470d9e20 | 1 |
gleam-wisp/wisp/examples/src/working_with_cookies/app.gleam | github | import gleam/erlang/process
import mist
import wisp
import wisp_mist
import working_with_cookies/app/router
pub fn main() {
wisp.configure_logger()
let secret_key_base = wisp.random_string(64)
let assert Ok(_) =
wisp_mist.handler(router.handle_request, secret_key_base)
|> mist.new
|> mist.port(8000)... | examples/src/working_with_cookies/app.gleam | https://github.com/gleam-wisp/wisp | gleam-wisp | wisp | 🧚 A practical web framework for Gleam | 1,425 | true | Apache-2.0 | Apache-2.0 | [
"gleam-wisp"
] | wisp | 238,038 | false | false | 2026-05-28T15:39:49.436337+00:00 | f346bfffa4b176d09971d17783f7032ee96d0552 | 1 |
gleam-wisp/wisp/examples/src/working_with_cookies/app/router.gleam | github | import gleam/http.{Delete, Get, Post}
import gleam/list
import gleam/string
import wisp.{type Request, type Response}
import working_with_cookies/app/web
const cookie_name = "id"
pub fn handle_request(req: Request) -> Response {
use req <- web.middleware(req)
case wisp.path_segments(req) {
[] -> home(req)
... | examples/src/working_with_cookies/app/router.gleam | https://github.com/gleam-wisp/wisp | gleam-wisp | wisp | 🧚 A practical web framework for Gleam | 1,425 | true | Apache-2.0 | Apache-2.0 | [
"gleam-wisp"
] | wisp | 238,038 | false | false | 2026-05-28T15:39:49.436337+00:00 | f346bfffa4b176d09971d17783f7032ee96d0552 | 1 |
gleam-lang/erlang/test/gleam/erlang/charlist_test.gleam | github | import gleam/dynamic
import gleam/erlang/charlist
pub fn to_string_test() {
assert "Hello, from erlang!"
== "Hello, from erlang!"
|> charlist.from_string()
|> charlist.to_string()
}
@external(erlang, "lists", "duplicate")
fn lists_duplicate(n n: Int, elem elem: Int) -> charlist.Charlist
pub fn from_cha... | test/gleam/erlang/charlist_test.gleam | https://github.com/gleam-lang/erlang | gleam-lang | erlang | 🐙 Types and functions for programs running on Erlang! | 135 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:40:30.230862+00:00 | 69e604c2092e5e60c0a38fb0e4835f22470d9e20 | 1 |
gleam-lang/cowboy/src/gleam/http/cowboy.gleam | github | import gleam/bytes_tree.{type BytesTree}
import gleam/dict.{type Dict}
import gleam/dynamic.{type Dynamic}
import gleam/erlang/process.{type Pid}
import gleam/http.{type Header}
import gleam/http/request.{type Request, Request}
import gleam/http/response.{type Response}
import gleam/list
import gleam/option.{type Optio... | src/gleam/http/cowboy.gleam | https://github.com/gleam-lang/cowboy | gleam-lang | cowboy | 🤠 A Gleam HTTP service adapter for the Cowboy web server | 75 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:41:24.843043+00:00 | 47a166f32520ca3e3b06b8345d27fa024b2f1662 | 1 |
lustre-labs/ui/src/lustre/ui/accordion/context.gleam | github | // IMPORTS ---------------------------------------------------------------------
import gleam/dynamic/decode
import gleam/json
import gleam/set.{type Set}
import lustre/effect.{type Effect}
// TYPES -----------------------------------------------------------------------
pub type Context {
Context(open: Set(String)... | src/lustre/ui/accordion/context.gleam | https://github.com/lustre-labs/ui | lustre-labs | ui | A collection of components and design tokens for building Lustre apps. | 159 | true | MIT | MIT | [
"lustre-labs"
] | null | null | false | false | 2026-05-28T15:40:19.494898+00:00 | a7f2deab9fbde907397a61f75fb211910831c47d | 1 |
gleam-lang/stdlib/test/gleam/uri_test.gleam | github | // TODO: IPv6 URI parse tests
// https://github.com/elixir-lang/elixir/blob/2d43b9670f54c4d8e0be1ee4d2ee8f99d7378480/lib/elixir/test/elixir/uri_test.exs
import gleam/list
import gleam/option.{None, Some}
import gleam/string
import gleam/uri
pub fn full_parse_scheme_test() {
let assert Ok(parsed) =
uri.parse("htt... | test/gleam/uri_test.gleam | https://github.com/gleam-lang/stdlib | gleam-lang | stdlib | 🎁 Gleam's standard library | 684 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:39:52.754630+00:00 | c6f7ceee9c569c71849d7e4c5a94e535feaae724 | 1 |
lustre-labs/lustre/src/lustre/event.gleam | github | // IMPORTS ---------------------------------------------------------------------
import gleam/dynamic/decode.{type Decoder}
import gleam/int
import gleam/json.{type Json}
import gleam/pair
import gleam/result
import lustre/attribute.{type Attribute}
import lustre/effect.{type Effect}
import lustre/internals/constants
... | src/lustre/event.gleam | https://github.com/lustre-labs/lustre | lustre-labs | lustre | A Gleam web framework for building HTML templates, single page applications, and real-time server components. | 2,302 | true | MIT | MIT | [
"lustre-labs"
] | lustre | 245,785 | false | false | 2026-05-28T15:39:45.871015+00:00 | c573707a57aef3542d84e7e18008cd38e62b9edf | 1 |
gleam-wisp/wisp/wisp_mist/src/wisp_mist.gleam | github | import exception
import gleam/bytes_tree
import gleam/http/request.{type Request as HttpRequest}
import gleam/http/response.{type Response as HttpResponse}
import gleam/option
import gleam/result
import gleam/string
import mist
import wisp
import wisp/internal
//
// Running the server
//
/// Convert a Wisp request ha... | wisp_mist/src/wisp_mist.gleam | https://github.com/gleam-wisp/wisp | gleam-wisp | wisp | 🧚 A practical web framework for Gleam | 1,425 | true | Apache-2.0 | Apache-2.0 | [
"gleam-wisp"
] | wisp | 238,038 | false | false | 2026-05-28T15:39:49.436337+00:00 | f346bfffa4b176d09971d17783f7032ee96d0552 | 1 |
lustre-labs/ui/src/lustre/ui/toggle/context.gleam | github | // IMPORTS ---------------------------------------------------------------------
import gleam/dynamic/decode
import gleam/json
import gleam/option.{type Option, None, Some}
import lustre/effect.{type Effect}
// TYPES -----------------------------------------------------------------------
pub type GroupContext {
Gr... | src/lustre/ui/toggle/context.gleam | https://github.com/lustre-labs/ui | lustre-labs | ui | A collection of components and design tokens for building Lustre apps. | 159 | true | MIT | MIT | [
"lustre-labs"
] | null | null | false | false | 2026-05-28T15:40:19.494898+00:00 | a7f2deab9fbde907397a61f75fb211910831c47d | 1 |
lustre-labs/ui/src/lustre/ui/tooltip/context.gleam | github | import gleam/dynamic/decode
import gleam/json
import lustre/effect.{type Effect}
pub type Context {
Context(popover: String, open: Bool, delay: Int)
}
pub const tooltip = "tooltip"
pub fn on_change(handler: fn(Context) -> message) -> Effect(message) {
effect.subscribe(tooltip, {
use popover <- decode.field("... | src/lustre/ui/tooltip/context.gleam | https://github.com/lustre-labs/ui | lustre-labs | ui | A collection of components and design tokens for building Lustre apps. | 159 | true | MIT | MIT | [
"lustre-labs"
] | null | null | false | false | 2026-05-28T15:40:19.494898+00:00 | a7f2deab9fbde907397a61f75fb211910831c47d | 1 |
gleam-lang/json/src/gleam/json.gleam | github | import gleam/bit_array
import gleam/dict.{type Dict}
import gleam/dynamic.{type Dynamic}
import gleam/dynamic/decode
import gleam/list
import gleam/option.{type Option, None, Some}
import gleam/result
import gleam/string_tree.{type StringTree}
pub type Json
pub type DecodeError {
UnexpectedEndOfInput
UnexpectedBy... | src/gleam/json.gleam | https://github.com/gleam-lang/json | gleam-lang | json | 🐑 Work with JSON in Gleam! | 147 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:40:23.926745+00:00 | 9792d8a5ec14e03760f8ccbc8992dff4d45105fe | 1 |
gleam-lang/http/src/gleam/http/service.gleam | github | import gleam/http.{Delete, Patch, Post, Put}
import gleam/http/request.{type Request}
import gleam/http/response.{type Response}
import gleam/list
import gleam/result
@deprecated("Use middleware packages such as Wisp or Glen instead")
pub type Service(in, out) =
fn(Request(in)) -> Response(out)
@deprecated("Use mid... | src/gleam/http/service.gleam | https://github.com/gleam-lang/http | gleam-lang | http | 🕸️ Types and functions for HTTP clients and servers! | 276 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:40:02.224913+00:00 | da44e896606b498dd9e004e3d8480e4c08f47d23 | 1 |
gleam-lang/stdlib/src/gleam/order.gleam | github | /// Represents the result of a single comparison to determine the precise
/// ordering of two values.
///
pub type Order {
/// Less-than
Lt
/// Equal
Eq
/// Greater than
Gt
}
/// Inverts an order, so less-than becomes greater-than and greater-than
/// becomes less-than.
///
/// ## Examples
///
/// ```gle... | src/gleam/order.gleam | https://github.com/gleam-lang/stdlib | gleam-lang | stdlib | 🎁 Gleam's standard library | 684 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:39:52.754630+00:00 | c6f7ceee9c569c71849d7e4c5a94e535feaae724 | 1 |
lustre-labs/lustre/test/unit/events_test.gleam | github | // IMPORTS ---------------------------------------------------------------------
import gleam/dynamic
import gleam/list
import gleam/string
import lustre/element
import lustre/element/html
import lustre/element/keyed
import lustre/event
import lustre/vdom/cache
import lustre/vdom/diff
import lustre/vdom/path
import lu... | test/unit/events_test.gleam | https://github.com/lustre-labs/lustre | lustre-labs | lustre | A Gleam web framework for building HTML templates, single page applications, and real-time server components. | 2,302 | true | MIT | MIT | [
"lustre-labs"
] | lustre | 245,785 | false | false | 2026-05-28T15:39:45.871015+00:00 | c573707a57aef3542d84e7e18008cd38e62b9edf | 1 |
gleam-lang/stdlib/test/gleam/dynamic_test.gleam | github | import gleam/dynamic
pub fn classify_true_test() {
assert dynamic.classify(dynamic.bool(True)) == "Bool"
}
pub fn classify_false_test() {
assert dynamic.classify(dynamic.bool(False)) == "Bool"
}
pub fn null_test() {
assert dynamic.classify(dynamic.nil()) == "Nil"
}
| test/gleam/dynamic_test.gleam | https://github.com/gleam-lang/stdlib | gleam-lang | stdlib | 🎁 Gleam's standard library | 684 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:39:52.754630+00:00 | c6f7ceee9c569c71849d7e4c5a94e535feaae724 | 1 |
gleam-lang/package-interface/src/gleam/package_interface.gleam | github | import gleam/dict.{type Dict}
import gleam/dynamic/decode.{type Decoder}
import gleam/option.{type Option}
// --- TYPES -------------------------------------------------------------------
/// A Gleam package.
///
pub type Package {
Package(
name: String,
version: String,
/// The Gleam version constraint... | src/gleam/package_interface.gleam | https://github.com/gleam-lang/package-interface | gleam-lang | package-interface | 📦 Work with Gleam's package interfaces | 11 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:48:20.348327+00:00 | 525e0ce3653218ffbb5e8dfc7f3c24ac5c1c2c59 | 1 |
gleam-lang/erlang/test/gleam/erlang/atom_test.gleam | github | import gleam/dynamic
import gleam/dynamic/decode
import gleam/erlang/atom
import gleam/int
pub fn from_string_test() {
let assert Ok(_) = atom.get("ok")
let assert Error(Nil) =
atom.get("the vm does not have an atom with this content")
}
pub fn create_from_string_test() {
let assert True = atom.get("ok") ==... | test/gleam/erlang/atom_test.gleam | https://github.com/gleam-lang/erlang | gleam-lang | erlang | 🐙 Types and functions for programs running on Erlang! | 135 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:40:30.230862+00:00 | 69e604c2092e5e60c0a38fb0e4835f22470d9e20 | 1 |
gleam-lang/website/src/website/atom_feed.gleam | github | import atomb
import gleam/list
import gleam/option
import gleam/string_tree
import gleam/time/calendar
import gleam/time/timestamp
import website/fs
import website/news
pub fn file(news_posts: List(news.NewsPost)) -> fs.File {
let updated = case news_posts {
[first, ..] -> to_calendar(first.published)
_ -> t... | src/website/atom_feed.gleam | https://github.com/gleam-lang/website | gleam-lang | website | 🏡 Gleam's website and guide | 132 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:40:33.671000+00:00 | fbac945d9fc5e6815da1308e61735b9b3b5a2bfc | 1 |
gleam-lang/example-echo-server/src/reply.gleam | github | import envoy
import gleam/erlang/process
import gleam/int
import gleam/result
import mist
import reply/router
import wisp
import wisp/wisp_mist
pub fn main() {
wisp.configure_logger()
let port =
envoy.get("PORT")
|> result.then(int.parse)
|> result.unwrap(3000)
let secret_key_base = wisp.random_str... | src/reply.gleam | https://github.com/gleam-lang/example-echo-server | gleam-lang | example-echo-server | 🔗 An example Gleam web application | 82 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:41:18.082335+00:00 | 08cff68ad82e8a360fa743267ed8bb21bdf441c8 | 1 |
lustre-labs/ui/src/lustre/ui.gleam | github | // IMPORTS ---------------------------------------------------------------------
import gleam/result
import lustre
import lustre/ui/accordion
import lustre/ui/tabs
import lustre/ui/toggle
import lustre/ui/tooltip
// ELEMENTS --------------------------------------------------------------------
@internal
pub fn main()... | src/lustre/ui.gleam | https://github.com/lustre-labs/ui | lustre-labs | ui | A collection of components and design tokens for building Lustre apps. | 159 | true | MIT | MIT | [
"lustre-labs"
] | null | null | false | false | 2026-05-28T15:40:19.494898+00:00 | a7f2deab9fbde907397a61f75fb211910831c47d | 1 |
lustre-labs/lustre/examples/06-server-components/02-attributes-and-events/src/app.gleam | github | // IMPORTS ---------------------------------------------------------------------
import counter
import gleam/bytes_tree
import gleam/erlang/application
import gleam/erlang/process.{type Selector, type Subject}
import gleam/http/request.{type Request}
import gleam/http/response.{type Response}
import gleam/json
import ... | examples/06-server-components/02-attributes-and-events/src/app.gleam | https://github.com/lustre-labs/lustre | lustre-labs | lustre | A Gleam web framework for building HTML templates, single page applications, and real-time server components. | 2,302 | true | MIT | MIT | [
"lustre-labs"
] | lustre | 245,785 | false | false | 2026-05-28T15:39:45.871015+00:00 | c573707a57aef3542d84e7e18008cd38e62b9edf | 1 |
gleam-lang/packages/test/tests.gleam | github | import packages/storage
import simplifile
pub fn with_database(f: fn(storage.Database) -> t) -> t {
let path = "test/storage"
let assert Ok(_) = simplifile.delete_all(["test/storage"])
let db = storage.initialise(path)
let t = f(db)
let assert Ok(_) = simplifile.delete_all(["test/storage"])
t
}
| test/tests.gleam | https://github.com/gleam-lang/packages | gleam-lang | packages | 📦 Search for Gleam packages | 116 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:40:45.816590+00:00 | af21c767344d73d7e5b5fd3c9ee6dc2b46b73f1e | 1 |
lustre-labs/ui/src/lustre/ui/accordion/trigger.gleam | github | // IMPORTS ---------------------------------------------------------------------
import gleam/dynamic/decode
import gleam/json
import lustre
import lustre/attribute.{type Attribute}
import lustre/component
import lustre/effect.{type Effect}
import lustre/element.{type Element}
import lustre/element/html
import lustre/... | src/lustre/ui/accordion/trigger.gleam | https://github.com/lustre-labs/ui | lustre-labs | ui | A collection of components and design tokens for building Lustre apps. | 159 | true | MIT | MIT | [
"lustre-labs"
] | null | null | false | false | 2026-05-28T15:40:19.494898+00:00 | a7f2deab9fbde907397a61f75fb211910831c47d | 1 |
gleam-wisp/wisp/examples/test/serving_static_assets/app_test.gleam | github | import gleam/http
import gleam/list
import serving_static_assets/app
import serving_static_assets/app/router
import serving_static_assets/app/web.{type Context, Context}
import wisp/simulate
fn with_context(testcase: fn(Context) -> t) -> t {
// Create the context to use in tests
let context = Context(static_direct... | examples/test/serving_static_assets/app_test.gleam | https://github.com/gleam-wisp/wisp | gleam-wisp | wisp | 🧚 A practical web framework for Gleam | 1,425 | true | Apache-2.0 | Apache-2.0 | [
"gleam-wisp"
] | wisp | 238,038 | false | false | 2026-05-28T15:39:49.436337+00:00 | f346bfffa4b176d09971d17783f7032ee96d0552 | 1 |
gleam-lang/otp/src/gleam/otp/system.gleam | github | import gleam/dynamic.{type Dynamic}
import gleam/erlang/atom.{type Atom}
import gleam/erlang/process.{type Pid}
pub type Mode {
/// Currently handling message as normal.
Running
/// Termporarily not handling messages, other than system messages.
Suspended
}
pub type DebugOption {
NoDebug
}
pub type DebugSt... | src/gleam/otp/system.gleam | https://github.com/gleam-lang/otp | gleam-lang | otp | 📫 Fault tolerant multicore programs with actors | 854 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:39:50.769608+00:00 | 4d91278e2aac5694b1120a85dfb571e84f098926 | 1 |
gleam-lang/website/src/website/toml.gleam | github | import gleam/string
import snag
import tom
pub fn parse(toml: String) {
tom.parse(toml)
|> snag.map_error(fn(error) {
case error {
tom.Unexpected(got:, expected:) ->
"Expected " <> expected <> ", got " <> got
tom.KeyAlreadyInUse(key:) ->
"Key " <> string.join(key, ".") <> " already ... | src/website/toml.gleam | https://github.com/gleam-lang/website | gleam-lang | website | 🏡 Gleam's website and guide | 132 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:40:33.671000+00:00 | fbac945d9fc5e6815da1308e61735b9b3b5a2bfc | 1 |
gleam-lang/erlang/test/gleam/erlang/process_test.gleam | github | import gleam/dynamic
import gleam/dynamic/decode
import gleam/erlang/atom
import gleam/erlang/process.{ProcessDown}
import gleam/float
import gleam/function
import gleam/int
import gleam/list
import gleam/option.{Some}
import gleam/set
@external(erlang, "gleam_erlang_ffi", "identity")
fn unsafe_coerce(a: dynamic.Dynam... | test/gleam/erlang/process_test.gleam | https://github.com/gleam-lang/erlang | gleam-lang | erlang | 🐙 Types and functions for programs running on Erlang! | 135 | true | Apache-2.0 | Apache-2.0 | [
"gleam-lang"
] | null | null | false | false | 2026-05-28T15:40:30.230862+00:00 | 69e604c2092e5e60c0a38fb0e4835f22470d9e20 | 1 |
lustre-labs/ui/src/lustre/ui/tabs/list.gleam | github | // IMPORTS ---------------------------------------------------------------------
import gleam/bool
import gleam/dynamic/decode
import gleam/json
import gleam/result
import lustre
import lustre/attribute.{type Attribute, attribute}
import lustre/component
import lustre/effect.{type Effect}
import lustre/element.{type E... | src/lustre/ui/tabs/list.gleam | https://github.com/lustre-labs/ui | lustre-labs | ui | A collection of components and design tokens for building Lustre apps. | 159 | true | MIT | MIT | [
"lustre-labs"
] | null | null | false | false | 2026-05-28T15:40:19.494898+00:00 | a7f2deab9fbde907397a61f75fb211910831c47d | 1 |
lustre-labs/lustre/examples/06-server-components/05-publish-subscribe/src/app.gleam | github | // IMPORTS ---------------------------------------------------------------------
import gleam/bytes_tree
import gleam/erlang/application
import gleam/erlang/process.{type Selector, type Subject}
import gleam/http/request.{type Request}
import gleam/http/response.{type Response}
import gleam/json
import gleam/option.{t... | examples/06-server-components/05-publish-subscribe/src/app.gleam | https://github.com/lustre-labs/lustre | lustre-labs | lustre | A Gleam web framework for building HTML templates, single page applications, and real-time server components. | 2,302 | true | MIT | MIT | [
"lustre-labs"
] | lustre | 245,785 | false | false | 2026-05-28T15:39:45.871015+00:00 | c573707a57aef3542d84e7e18008cd38e62b9edf | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.