# jeremycw/httpserver.h

Single header library for writing non-blocking HTTP servers in C

Repository: https://github.com/jeremycw/httpserver.h
Canonical: https://ross.abutalabs.com/products/httpserverh
Language: C
License: MIT
License Family: permissive
Last push: 2026-04-26T20:55:19+00:00

## Health v2 (maintenance only)
Score: 68/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 79, release rhythm 35, longevity 100
- inputs: {"age_days": 2480, "days_push": 129, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1939, forks 157 (observed 2026-08-28T04:05:57.267968+00:00)

## What it is
A single-header C library for building event-driven, non-blocking HTTP servers using epoll (Linux) and kqueue (BSD/macOS). It provides a minimal API for handling requests and responses with high throughput.

## Use cases
- write a fast HTTP server in C without dependencies
- embed a lightweight HTTP server in a C application
- build a small REST API backend in C
- serve a simple endpoint with high concurrency
- learn how event-driven non-blocking servers work

## When to choose
- you need a dependency-free, single-header HTTP server in C
- you want high throughput on Linux or macOS with epoll/kqueue
- you're embedding an HTTP interface into an existing C program

## When to avoid
- you need HTTPS/TLS support out of the box
- you need a full-featured web framework with routing, middleware, or templating
- you need Windows support
- you'd rather use a battle-tested production server like NGINX as a reverse proxy in front of your app

## Facets
- artifact type: library
- maturity: stable
- function: http-server, web-framework
- domain: web-development, backend, developer-tools
- platform: bsd, c
- tags: single-header, non-blocking, event-driven, epoll, kqueue, http, linux, macos

## Member repositories
- jeremycw/httpserver.h (main) score 68

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:57.267968+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:08:11.477025+00:00, confidence not recorded.
  - readme: https://github.com/jeremycw/httpserver.h (fetched 2026-08-28T04:05:57.267968+00:00, sha 961250255490)
- Data as of 2026-08-30T08:39:29.467469+00:00.
