# Plug

> Compose web applications with functions

Source: https://talira.ai/catalog/plug-em53kn6h
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [frameworks / web / backend](https://talira.ai/categories/frameworks/web/backend), [languages / elixir](https://talira.ai/categories/languages/elixir)
- Licence: Apache-2.0[^1][^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [elixir-plug](https://talira.ai/orgs/elixir-plug.md)

Plug is an [Elixir](https://talira.ai/catalog/elixir-edq5dfnt.md) library that defines a specification for composing web applications from small functions (plugs) that each take and return a connection, together with connection adapters for web servers on the Erlang VM, so the same app runs on the Cowboy web server (through plug_cowboy) or Bandit. It includes a router, parsers, sessions, static file serving and testing helpers, and web frameworks such as [Phoenix](https://talira.ai/catalog/phoenix-pr0aa2gd.md) are built on it.

## Links

- GitHub: https://github.com/elixir-plug/plug
- Docs: https://plug.hexdocs.pm/

## Problems it solves

- write a small Elixir web service without a full framework
- add middleware to an Elixir web app
- compose HTTP request handling from functions in Elixir
- run the same Elixir web app on Cowboy or Bandit

## Features

- composable plug specification
- Cowboy and Bandit adapters
- router
- test helpers

## Trust

Overall: 0.58 out of 1.
Signals: maintenance 0.74, adoption 0.70, momentum 0.39, community 1.00, backing 0.30, extensibility 0.00.

- last commit 6 days ago
- 21 commits in the last 90 days
- 3.0k GitHub stars
- 364 contributors
- backed by elixir-plug

## Sources

[^1]: https://github.com/elixir-plug/plug/blob/main/LICENSE (checked 24 Nov 2026)
[^2]: https://hex.pm/packages/plug (checked 24 Nov 2026)
