# miniupnp/miniupnp

UPnP IGD implementation

Repository: https://github.com/miniupnp/miniupnp
Canonical: https://ross.abutalabs.com/products/miniupnp
Homepage: http://miniupnp.free.fr/
Language: C
License: BSD-3-Clause
License Family: permissive
Topics: networking, nat, nat-pmp, nat-traversal, upnp, pcp, internet-gateway, c, iptables, nftables
Last push: 2026-08-11T23:45:05+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 97, longevity 100
- inputs: {"age_days": 5459, "days_push": 22, "days_rel": 22, "gap_med": 0.0, "n_releases_24m": 23}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1601, forks 478 (observed 2026-08-28T04:05:09.572264+00:00)

## What it is
MiniUPnP is a lightweight ANSI C implementation of the UPnP Internet Gateway Device (IGD) specifications, comprising a client library (miniupnpc), a gateway daemon (miniupnpd) with NAT-PMP/PCP support, and an SSDP daemon (minissdpd). It is designed for a minimal footprint with no external dependencies, making it suitable for embedded and low-memory devices.

## Use cases
- open a port on a router programmatically via UPnP
- add NAT traversal to a peer-to-peer application
- run a UPnP IGD gateway daemon on a Linux router
- discover UPnP gateways on the local network with SSDP
- forward ports for a game server or self-hosted service automatically
- implement NAT-PMP or PCP client support in C

## When to choose
- you need a tiny, dependency-free C library for UPnP IGD or NAT-PMP/PCP
- you run a router or gateway on Linux/BSD and want to expose UPnP port mapping
- you target embedded or low-memory devices
- you need portable NAT traversal across POSIX systems and Windows

## When to avoid
- you need DLNA media server or renderer functionality rather than IGD
- you want a high-level UPnP stack with XML parsing and rich service discovery
- your project is not in C or lacks C bindings
- you need modern protocol alternatives like NAT hole punching via WebRTC

## Facets
- artifact type: library
- maturity: stable
- function: networking, security, sdk, cli
- domain: networking, developer-tools, self-hosted, operating-systems
- platform: windows, bsd, cross-platform, cli, c
- tags: upnp, nat-traversal, nat-pmp, pcp, igd, ssdp, port-forwarding, iptables, nftables, router, linux, macos

## Member repositories
- miniupnp/miniupnp (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:09.572264+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:52:48.470125+00:00, confidence not recorded.
  - readme: https://github.com/miniupnp/miniupnp (fetched 2026-08-28T04:05:09.572264+00:00, sha bce8b8a6a352)
  - homepage: http://miniupnp.free.fr/ (fetched 2026-08-29T11:24:19.354248+00:00, sha 2e3afc12ba14)
  - site_page: http://miniupnp.free.fr/doc (fetched 2026-08-29T11:24:19.363839+00:00, sha 447ab8522b06)
- Data as of 2026-08-30T08:39:29.467469+00:00.
