{"id":13569266,"url":"https://github.com/gleam-wisp/wisp","last_synced_at":"2026-01-17T07:04:19.655Z","repository":{"id":186223185,"uuid":"674791613","full_name":"gleam-wisp/wisp","owner":"gleam-wisp","description":"🧚 A practical web framework for Gleam","archived":false,"fork":false,"pushed_at":"2026-01-16T10:39:20.000Z","size":1601,"stargazers_count":1357,"open_issues_count":22,"forks_count":63,"subscribers_count":9,"default_branch":"main","last_synced_at":"2026-01-16T23:53:57.363Z","etag":null,"topics":["gleam-lang","web-framework"],"latest_commit_sha":null,"homepage":"https://gleam-wisp.github.io/wisp/","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-wisp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-08-04T19:41:07.000Z","updated_at":"2026-01-16T23:27:47.000Z","dependencies_parsed_at":"2023-11-22T12:27:02.931Z","dependency_job_id":"d46ee62c-4cf6-4b1a-96a2-a95e79486e46","html_url":"https://github.com/gleam-wisp/wisp","commit_stats":null,"previous_names":["lpil/wisp","gleam-wisp/wisp"],"tags_count":32,"template":false,"template_full_name":null,"purl":"pkg:github/gleam-wisp/wisp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gleam-wisp%2Fwisp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gleam-wisp%2Fwisp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gleam-wisp%2Fwisp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gleam-wisp%2Fwisp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gleam-wisp","download_url":"https://codeload.github.com/gleam-wisp/wisp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gleam-wisp%2Fwisp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28503022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["gleam-lang","web-framework"],"created_at":"2024-08-01T14:00:37.798Z","updated_at":"2026-01-17T07:04:19.646Z","avatar_url":"https://github.com/gleam-wisp.png","language":"Gleam","funding_links":[],"categories":["Packages","Gleam"],"sub_categories":["Web frameworks"],"readme":"![Wisp](https://github.com/lpil/wisp/blob/main/docs/images/cover.png?raw=true)\n\n[![Package Version](https://img.shields.io/hexpm/v/wisp)](https://hex.pm/packages/wisp)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/wisp/)\n\nWisp is a practical Gleam web framework for rapid development and easy maintenance.\nWe worry about the hassle of web development, and you focus on writing your\napplication.\n\nIt is based around two concepts: handlers and middleware.\n\n# Handlers\n\nA handler is a function that takes a HTTP request and returns a HTTP\nresponse. A handler may also take other arguments, such as a \"context\" type\ndefined in your application which may hold other state such as a database\nconnection or user session.\n\n```gleam\nimport wisp.{type Request, type Response}\n\npub type Context {\n  Context(secret: String)\n}\n\npub fn handle_request(request: Request, context: Context) -\u003e Response {\n  wisp.ok()\n}\n```\n\n# Middleware\n\nA middleware is a function that takes a response returning function as its\nlast argument, and itself returns a response. As with handlers both\nmiddleware and the functions they take as an argument may take other\narguments.\n\nMiddleware can be applied in a handler with Gleam's `use` syntax. Here the\n`log_request` middleware is used to log a message for each HTTP request\nhandled, and the `serve_static` middleware is used to serve static files\nsuch as images and CSS.\n\n```gleam\nimport wisp.{type Request, type Response}\n\npub fn handle_request(request: Request) -\u003e Response {\n  use \u003c- wisp.log_request(request)\n  use \u003c- wisp.serve_static(request, under: \"/static\", from: \"/public\")\n  wisp.ok()\n}\n```\n\n# Learning Wisp\n\nThe [Wisp examples](https://github.com/gleam-wisp/wisp/tree/main/examples)\nare a good place to start. They cover various scenarios and include comments and\ntests.\n\nAPI documentation is available on [HexDocs](https://hexdocs.pm/wisp/).\n\n# Wisp applications\n\nThese open source Wisp applications may be useful examples.\n\n- [https://packages.gleam.run/](https://github.com/gleam-lang/packages): A HTML\n  serving application that uses an SQLite + LiteFS database, deployed to Fly.io.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgleam-wisp%2Fwisp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgleam-wisp%2Fwisp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgleam-wisp%2Fwisp/lists"}