# fungos/cr

cr.h: A Simple C Hot Reload Header-only Library

Repository: https://github.com/fungos/cr
Canonical: https://ross.abutalabs.com/products/cr
Homepage: https://fungos.github.io/cr-simple-c-hot-reload/
Language: C++
License: MIT
License Family: permissive
Topics: gamedev, tool, hot-reload, gamedev-tool, live-coding, linux, osx, windows, c, single-header, single-header-lib, single-header-library, header-only, header-only-lib, header-only-library
Last push: 2026-06-23T00:55:32+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 88, release rhythm 35, longevity 100
- inputs: {"age_days": 3208, "days_push": 72, "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 1801, forks 120 (observed 2026-08-28T04:05:37.950358+00:00)

## What it is
cr.h is a single-file, header-only C/C++ library that enables hot reloading of dynamically linked binaries (.so/.dylib/.dll) with a minimal three-function API. It provides automatic crash protection and static state transfer, primarily aimed at live-coding workflows in game development.

## Use cases
- hot reload C code during game development
- live coding without a scripting language
- reload plugin dlls at runtime
- transfer static state across reloads
- protect host app from crashing guest code

## When to choose
- iterating quickly on C/C++ game or app logic without restarting
- wanting minimal boilerplate hot reload with no build system lock-in
- needing crash protection around reloadable plugins

## When to avoid
- need hot reload for languages other than C/C++
- require scripting-language-level flexibility or bindings
- project cannot be structured as a thin host plus dynamic library

## Facets
- artifact type: library
- maturity: stable
- function: developer-tools, plugin-system, build-tool
- domain: developer-tools, cross-platform
- platform: windows, cpp, c
- tags: hot-reload, live-coding, header-only, single-header, gamedev, game-development, linux, macos

## Member repositories
- fungos/cr (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:37.950358+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-30T03:22:12.698080+00:00, confidence not recorded.
  - readme: https://github.com/fungos/cr (fetched 2026-08-28T04:05:37.950358+00:00, sha 240e6e03dd45)
  - homepage: https://fungos.github.io/cr-simple-c-hot-reload/ (fetched 2026-08-29T11:00:54.936452+00:00, sha ce467acb4c5e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
