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
Earn up to 16% annual interest with Nexo. Icon
Earn up to 16% annual interest with Nexo.

Let your crypto work for you

Put idle assets to work with competitive interest rates, borrow without selling, and trade with precision. All in one platform. Geographic restrictions, eligibility, and terms apply.
Get started with Nexo.
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