# code-golf/code-golf

A game designed to let you show off your code-fu by solving problems in the least number of characters.

Repository: https://github.com/code-golf/code-golf
Canonical: https://ross.abutalabs.com/products/code-golf
Homepage: https://code.golf
Language: Go
License: MIT
License Family: permissive
Topics: hacktoberfest
Last push: 2026-08-26T12:09:38+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 3622, "days_push": 7, "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 1307, forks 134 (observed 2026-08-28T04:04:19.010854+00:00)

## What it is
Code Golf is the open-source Go application behind code.golf, a website where players solve programming puzzles ('holes') in the fewest characters across dozens of languages. It runs solutions in sandboxed Docker containers, tracks leaderboards, and can be self-hosted locally.

## Use cases
- practice writing the shortest possible code for programming puzzles
- compete on leaderboards solving algorithmic challenges in many languages
- self-host a code golfing site for a community or classroom
- try out esoteric and mainstream programming languages on small problems
- learn algorithms by implementing Fizz Buzz, Fibonacci, Game of Life and similar holes
- run and validate user-submitted code in isolated Docker sandboxes

## When to choose
- you want to play or host code golf challenges with leaderboards across 60+ languages
- you need a ready-made sandboxed multi-language code execution platform
- you want an open-source, MIT-licensed puzzle site you can contribute to or customize

## When to avoid
- you need a general-purpose online judge for large test suites or production grading
- you want a full IDE or long-form programming environment rather than character-count puzzles
- you cannot run Docker locally and don't want to use the hosted site

## Facets
- artifact type: application
- maturity: active
- function: game, developer-tools, http-server, cli
- domain: developer-tools, gaming-tools, education, programming-languages
- platform: go, self-hosted, windows
- tags: code-golf, competitive-programming, puzzle-game, leaderboards, multi-language-sandbox, docker-compose, typescript-frontend, algorithms, docker, web-server, linux, macos

## Member repositories
- code-golf/code-golf (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:19.010854+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-30T04:50:08.504644+00:00, confidence not recorded.
  - readme: https://github.com/code-golf/code-golf (fetched 2026-08-28T04:04:19.010854+00:00, sha 43c883e8b2fc)
  - homepage: https://code.golf (fetched 2026-08-29T12:08:32.998052+00:00, sha 5e3e4fa2c243)
  - site_page: https://code.golf/about (fetched 2026-08-29T12:08:33.007256+00:00, sha 6a576872b572)
- Data as of 2026-08-30T08:39:29.467469+00:00.
