# tylerstillwater/graceful

Graceful is a Go package enabling graceful shutdown of an http.Handler server.

Repository: https://github.com/tylerstillwater/graceful
Canonical: https://ross.abutalabs.com/products/graceful
Language: Go
License: MIT
License Family: permissive
Archived: true
Last push: 2018-11-18T19:14:43+00:00

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

## Adoption (not part of the score)
Stars 1277, forks 108 (observed 2026-08-28T04:04:13.285668+00:00)

## What it is
Graceful is a Go package that enables graceful shutdown of http.Handler servers by handling SIGINT/SIGTERM signals, closing listening sockets, and giving active requests a timeout window to complete. It predates Go 1.8's built-in http.Server.Shutdown() method and provides similar functionality for older Go versions.

## Use cases
- gracefully shut down a Go HTTP server on SIGTERM
- handle in-flight requests during server restart
- avoid dropped connections when deploying Go web services
- add graceful shutdown to older Go versions before 1.8
- close listening socket immediately so another process can bind the port

## When to choose
- you are on Go 1.3-1.7 and need graceful HTTP server shutdown
- you want signal-based shutdown with configurable timeout for active requests
- you need the listening socket released immediately for zero-downtime restarts

## When to avoid
- you are on Go 1.8 or later - use the standard library's http.Server.Shutdown() instead
- you need active maintenance or recent updates - the last release was in 2018

## Facets
- artifact type: library
- maturity: maintenance
- function: http-server, middleware
- domain: web-development, backend, developer-tools
- platform: go, cross-platform
- tags: graceful-shutdown, http-server, signal-handling, zero-downtime, go-library

## Member repositories
- tylerstillwater/graceful (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:13.285668+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-30T05:02:52.415176+00:00, confidence not recorded.
  - readme: https://github.com/tylerstillwater/graceful (fetched 2026-08-28T04:04:13.285668+00:00, sha 9ed5a1155788)
- Data as of 2026-08-30T08:39:29.467469+00:00.
