nowfound

Life & fun · July 31, 2021

Micro HTTP server in 22 lines of C

This post is from a protected account.

Micro HTTP server in 22 lines of C launched on July 31, 2021 with 223 votes, #112 of 3,502 launches that month and more than 95% of that year's launches. The site was still online in September 2026, 5 years on.

Visit twitter.com ↗Alternativestop 3% of July 2021

In plain words

This is a minimal HTTP server implemented in just 22 lines of C code. It's designed for developers and programmers interested in understanding how web servers work at a fundamental level or who need an extremely lightweight server for embedded systems or educational purposes. The project demonstrates that core HTTP functionality can be achieved with surprisingly little code, making it useful for learning or as a starting point for custom server implementations.

written from the facts on this page · September 2026

Does a similar job

all alternatives →
  • A little web server in C2023 · github.com · ▲178

    A little web server written in C for Linux. Supports: CGI, Reverse Proxy. Single threaded using I/O multiplexing (select).

  • UT
    unsafehttp – tiny web server from scratch in C, running on an orange pi2025 · unsafehttp.benren.au · ▲87

    Hey HN, I wanted to get more familiar with C programming, *nix socket programming and C compilation, so I wrote this "web" ""server"". It's running on a tiny SBC in my office, and there's as little as possible between you and it. Happy for you to try and break it, hopefully with something more interesting than a DoS though :) Please let me know if you find any issues.

  • My embeddable C/C++ webserver2011 · github.com · ▲84
  • ZeroHTTPd: A web server to teach Linux performance, with benchmarks2019 · unixism.net · ▲472

    Articles in this series Part I. Iterative ServersPart II. Forking ServersPart III. Pre-forking ServersPart IV. Threaded ServersPart V. Pre-threaded ServersPart VI: poll-based serverPart VII: epoll-…

  • LC
    Learn C and its lower levels interactively, in the browser2019 · ▲356

    I made a simple virtual machine that runs C in the browser.This project is made as an experiment to see if C can be learned easier if the lower level is covered in paralel. Sandbox: https://vasyop.github.io/miniC-hosting Tutorial part 1: https://vasyop.github.io/miniC-hosting/?0 More info: https://github.com/vasyop/miniC-hosting/blob/master/README.md Please support this project: https://github.com/vasyop/miniC-hosting/blob/master/support.md

  • MicroTCP, a minimal TCP/IP stack2023 · github.com · ▲204

    A minimal TCP/IP stack. Contribute to cozis/microtcp development by creating an account on GitHub.

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, July 2021

the whole month →
  • Typedream▲1,426

    No-code site builder, easy as Notion, pretty as Webflow

    Dev tools · 2021 · typedream.com

  • Catch up on meetings in minutes

    Work · 2021 · tldv.io

  • An 8-week founder program inspired by Product Hunt

    Life & fun · 2021 · hyper.com

  • 200+ open source alternatives to popular B2B tools

    Dev tools · 2021 · btw.so

  • Het beste casino zonder vergunning voor Nederlandse spelers kiezen? Ontdek waar je op moet letten en hoe je een betrouwbaar platform vindt dat aansluit bij jouw voorkeuren.

    Life & fun · 2021 · static.wiki

  • Sessions▲794

    Not just another video conferencing tool

    Work · 2021