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
Ship Agents Faster Icon
Ship Agents Faster

Transform your applications and workflows into powerful agentic systems at global scale.

Gemini Enterprise Agent Platform lets you rapidly build, scale, govern and optimize production-ready agents grounded in your organization's data. The platform enables developers to build custom or pre-built agents for virtually any use case. New customers get $300 in free credits.
Get Started 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