gleam-wisp/wisp has 1,499 GitHub stars and 74 forks. GitHot measured 0 stars in 24 hours and +2 in 7 days. Last checked 2026-11-08 18:09 UTC. Last push 2026-10-15.
🧚 A practical web framework for Gleam
Measured star growth
- in 24h
- 0
- in 7 days
- +2
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
Wisp is a practical Gleam web framework for rapid development and easy maintenance. We worry about the hassle of web development, and you focus on writing your application.
It is based around two concepts: handlers and middleware.
Handlers
A handler is a function that takes a HTTP request and returns a HTTP response. A handler may also take other arguments, such as a "context" type defined in your application which may hold other state such as a database connection or user session.
import wisp.{type Request, type Response}
pub type Context {
Context(secret: String)
}
pub fn handle_request(request: Request, context: Context) -> Response {
wisp.ok()
}
Middleware
A middleware is a function that takes a response returning function as its last argument, and itself returns a response. As with handlers both middleware and the functions they take as an argument may take other arguments.
Middleware can be applied in a handler with Gleam's use syntax. Here the
log_request middleware is used to log a message for each HTTP request
handled, and the serve_static middleware is used to serve static files
such as images and CSS.
import wisp.{type Request, type Response}
pub fn handle_request(request: Request) -> Response {
use <- wisp.log_request(request)
use <- wisp.serve_static(request, under: "/static", from: "/public")
wisp.ok()
}
Learning Wisp
The Wisp examples are a good place to start. They cover various scenarios and include comments and tests.
API documentation is available on HexDocs.
Wisp applications
These open source Wisp applications may be useful examples.
- https://packages.gleam.run/: A HTML serving application that uses an SQLite + LiteFS database, deployed to Fly.io.
Explore related projects
freeCodeCamp/freeCodeCamp
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
458,779 starsdonnemartin/system-design-primer
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
377,373 starsreact/react
The library for web and native user interfaces.
252,429 starsvuejs/vue
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
212,632 stars