{"id":13741230,"url":"https://github.com/gleam-lang/elli","last_synced_at":"2025-06-11T00:37:52.796Z","repository":{"id":42482681,"uuid":"177331320","full_name":"gleam-lang/elli","owner":"gleam-lang","description":"🍛 A Gleam HTTP service adapter for the Elli web server","archived":false,"fork":false,"pushed_at":"2024-03-12T12:10:29.000Z","size":77,"stargazers_count":37,"open_issues_count":1,"forks_count":13,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-03-14T20:53:43.940Z","etag":null,"topics":["erlang","gleam","http"],"latest_commit_sha":null,"homepage":"","language":"Gleam","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gleam-lang.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":["lpil"],"liberapay":"gleam"}},"created_at":"2019-03-23T19:26:42.000Z","updated_at":"2024-04-17T21:04:31.186Z","dependencies_parsed_at":"2023-11-07T02:12:10.065Z","dependency_job_id":"12ff58b3-145d-4e6a-9dd3-6c9585596a13","html_url":"https://github.com/gleam-lang/elli","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gleam-lang%2Felli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gleam-lang%2Felli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gleam-lang%2Felli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gleam-lang%2Felli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gleam-lang","download_url":"https://codeload.github.com/gleam-lang/elli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224774698,"owners_count":17367780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["erlang","gleam","http"],"created_at":"2024-08-03T04:00:57.049Z","updated_at":"2025-06-11T00:37:52.786Z","avatar_url":"https://github.com/gleam-lang.png","language":"Gleam","funding_links":["https://github.com/sponsors/lpil","https://liberapay.com/gleam"],"categories":["Packages","Gleam"],"sub_categories":["HTTP Servers"],"readme":"# Elli\n\nA basic Gleam HTTP service adapter for the Elli web server.\n\n```\ngleam add gleam_elli gleam_http\n```\n```gleam\nimport gleam/http/elli\nimport gleam/http/request.{type Request}\nimport gleam/http/response.{type Response}\nimport gleam/bytes_tree.{type BytesTree}\n\n// Define a HTTP service\n//\npub fn my_service(req: Request(t)) -\u003e Response(BytesBuilder) {\n  let body = bytes_tree.from_string(\"Hello, world!\")\n\n  response.new(200)\n  |\u003e response.prepend_header(\"made-with\", \"Gleam\")\n  |\u003e response.set_body(body)\n}\n\n// Start it on port 3000!\n//\npub fn main() {\n  elli.become(my_service, on_port: 3000)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgleam-lang%2Felli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgleam-lang%2Felli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgleam-lang%2Felli/lists"}