# willemt/raft

C implementation of the Raft Consensus protocol, BSD licensed

Repository: https://github.com/willemt/raft
Canonical: https://ross.abutalabs.com/products/willemt-raft
Language: C
License: NOASSERTION
License Family: other
Topics: raft-consensus-algorithm
Last push: 2023-06-26T18:44:42+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": 4732, "days_push": 1164, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1170, forks 274 (observed 2026-08-28T04:03:51.234595+00:00)

## What it is
A BSD-licensed C implementation of the Raft consensus protocol, distributed as a single amalgamated header file with no dependencies. Networking is left to the implementor, making it embeddable in any transport or application.

## Use cases
- implement a replicated state machine in C
- add leader election and log replication to a distributed service
- embed Raft consensus in an existing server or database
- build a fault-tolerant key-value store
- study or test Raft invariants on unreliable networks

## When to choose
- you need consensus in a C or C++ project without pulling heavy dependencies
- you want full control over the network transport layer
- you prefer a single-header library you can vendor into your build

## When to avoid
- you need batteries-included networking and RPC out of the box
- you want a maintained, actively developed implementation
- you need Raft bindings for a higher-level language

## Facets
- artifact type: library
- maturity: maintenance
- function: concurrency, developer-tools
- domain: microservices, developer-tools
- platform: c, cross-platform
- tags: raft-consensus, distributed-consensus, replication, single-header, no-dependencies, algorithms, linux, macos

## Member repositories
- willemt/raft (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:51.234595+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-30T06:28:39.225473+00:00, confidence not recorded.
  - readme: https://github.com/willemt/raft (fetched 2026-08-28T04:03:51.234595+00:00, sha 7ba50c10a806)
- Data as of 2026-08-30T08:39:29.467469+00:00.
