Plug is a specification and set of utilities for building composable modules in Elixir web applications. It defines a standard connection interface, allowing developers to create “plugs” that act as middleware for handling requests and responses. Examples include parsing parameters, managing sessions, logging, or authentication, all of which can be plugged into a pipeline. Plug serves as the foundation for the Phoenix framework, which builds on it to deliver a full-featured web stack. The library supports both synchronous and streaming responses, making it adaptable to various web scenarios. Its modularity and composability promote clean, reusable code while remaining lightweight enough for microservices and APIs outside of Phoenix.

Features

  • Specification for building composable web modules
  • Connection adapters for various Erlang VM web servers (e.g., Cowboy, Bandit)
  • Middleware-like architecture for request/response transformation
  • Lightweight and flexible integration into Elixir applications
  • Seamless handling of HTTP and WebSocket connections via unified APIs
  • Used as the underlying request pipeline engine in Phoenix

Project Samples

Project Activity

See All Activity >

Categories

Web Development

License

MIT License

Follow Plug

Plug Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Plug!

Additional Project Details

Programming Language

Elixir

Related Categories

Elixir Web Development Software

Registered

2025-09-01