# NanoHttpd/nanohttpd

Tiny, easily embeddable HTTP server in Java.

Repository: https://github.com/NanoHttpd/nanohttpd
Canonical: https://ross.abutalabs.com/products/nanohttpd
Homepage: http://nanohttpd.org
Language: Java
License: BSD-3-Clause
License Family: permissive
Last push: 2023-07-25T06:59:07+00:00

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

## Adoption (not part of the score)
Stars 7233, forks 1717 (observed 2026-08-28T04:09:57.681065+00:00)

## What it is
NanoHTTPD is a tiny, lightweight HTTP server library written in Java, designed to be easily embedded inside other Java applications. It provides a simple API for handling HTTP requests and includes a simple standalone file web server.

## Use cases
- embed an http server in a java application
- serve static files from a java app
- build a small rest api without a heavy container
- add a local web interface to a desktop java tool
- create a lightweight test http server

## When to choose
- you need a minimal, dependency-free HTTP server embedded in a Java application
- you want simple request handling without servlet containers or application servers
- you need a quick file server or mock endpoint in Java

## When to avoid
- you need a full-featured production web server with clustering, async I/O at scale, or extensive middleware
- you are building a large-scale microservices backend better served by frameworks like Spring Boot or Netty
- you need HTTP/2, WebSockets with advanced features, or extensive TLS configuration out of the box

## Facets
- artifact type: library
- maturity: maintenance
- function: http-server, web-framework
- domain: web-development, backend, developer-tools
- platform: jvm, cross-platform
- tags: embeddable, lightweight, http, java

## Member repositories
- NanoHttpd/nanohttpd (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:57.681065+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-29T17:39:46.292473+00:00, confidence not recorded.
  - readme: https://github.com/NanoHttpd/nanohttpd (fetched 2026-08-28T04:09:57.681065+00:00, sha faef0fca9f11)
  - homepage: http://nanohttpd.org (fetched 2026-08-29T08:34:32.144226+00:00, sha 44136fa355b3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
