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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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