# qinguoyi/TinyWebServer

:fire: Linux下C++轻量级WebServer服务器

Repository: https://github.com/qinguoyi/TinyWebServer
Canonical: https://ross.abutalabs.com/products/tinywebserver
Language: C++
License: Apache-2.0
License Family: permissive
Topics: webserver, http-server, tinywebserver, cpp, webbench
Last push: 2024-07-05T13:35:04+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2653, "days_push": 789, "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 19653, forks 4254 (observed 2026-08-28T04:11:29.066322+00:00)

## What it is
A lightweight C++ web server for Linux built with a thread pool, non-blocking sockets, epoll (ET and LT), and Reactor/simulated-Proactor event handling. It parses HTTP GET/POST requests with a state machine, supports user registration/login via a MySQL connection pool, includes sync/async logging, and handles tens of thousands of concurrent connections in Webbench stress tests.

## Use cases
- learn linux network programming in c++
- build a lightweight http server from scratch
- study epoll reactor and proactor patterns
- practice c++ backend server interview project
- stress test a web server with webbench
- implement a thread pool and http parser
- serve static files and handle user login with mysql

## When to choose
- you want to learn linux socket programming, epoll, and concurrency patterns in C++
- you need a small educational web server codebase to study and modify
- you are preparing for C++ backend interviews and want a well-known reference project

## When to avoid
- you need a production-grade web server with full HTTP/1.1+ compliance, TLS, and security hardening
- you want a maintained framework with active feature development and community support
- you need cross-platform support beyond Linux

## Facets
- artifact type: application
- maturity: maintenance
- function: http-server, web-framework, logging, caching, concurrency, testing
- domain: web-development, backend, developer-tools, networking, education
- platform: cpp, cli
- tags: epoll, thread-pool, reactor-pattern, proactor-pattern, http-parser, state-machine, webbench, load-testing, learning-project, mysql-connection-pool, linux

## Member repositories
- qinguoyi/TinyWebServer (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:29.066322+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-29T16:59:53.170745+00:00, confidence not recorded.
  - readme: https://github.com/qinguoyi/TinyWebServer (fetched 2026-08-28T04:11:29.066322+00:00, sha 144e50baac47)
- Data as of 2026-08-30T08:39:29.467469+00:00.
