# cloudflare/foundations

Cloudflare's Rust service foundations library.

Repository: https://github.com/cloudflare/foundations
Canonical: https://ross.abutalabs.com/products/foundations
Homepage: https://blog.cloudflare.com/introducing-foundations-our-open-source-rust-service-foundation-library
Language: Rust
License: BSD-3-Clause
License Family: permissive
Last push: 2026-08-26T13:41:52+00:00

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

## Adoption (not part of the score)
Stars 1669, forks 131 (observed 2026-08-28T04:05:19.927497+00:00)

## What it is
Foundations is Cloudflare's modular Rust library for building production-grade distributed services. It bundles logging, distributed tracing, metrics, memory profiling with jemalloc, seccomp-based sandboxing, documented service configuration, and a CLI helper for config loading.

## Use cases
- add structured logging and metrics to a Rust service
- set up distributed tracing for a production Rust backend
- sandbox a Rust service's syscalls with seccomp
- manage documented service configuration in Rust
- profile memory usage of a Rust program with jemalloc
- bootstrap a production-ready Rust microservice
- add a CLI that loads service configuration

## When to avoid
- you're building a small prototype or CLI script where full service scaffolding is overkill
- you already standardize on a different observability or config stack
- you need a web framework itself - Foundations complements frameworks like Oxy rather than replacing them
- you target platforms without seccomp/jemalloc support and don't need those features

## Facets
- artifact type: library
- maturity: stable
- function: logging, tracing, monitoring, configuration-management, security, cli, developer-tools
- domain: developer-tools, backend, microservices, monitoring, security
- platform: rust, cross-platform
- tags: observability, telemetry, seccomp, jemalloc, service-framework, metrics, production-readiness, linux

## Member repositories
- cloudflare/foundations (main) score 61

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:19.927497+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:42:46.014976+00:00, confidence not recorded.
  - readme: https://github.com/cloudflare/foundations (fetched 2026-08-28T04:05:19.927497+00:00, sha 2bfd528f741f)
  - homepage: https://blog.cloudflare.com/introducing-foundations-our-open-source-rust-service-foundation-library (fetched 2026-08-29T11:15:59.173751+00:00, sha 4301aeef84db)
  - site_page: https://blog.cloudflare.com/tag/developer-documentation (fetched 2026-08-29T11:15:59.183023+00:00, sha 12bb2ca0cd87)
  - registry_crates: https://crates.io/api/v1/crates/foundations (fetched 2026-08-29T11:15:59.185040+00:00, sha 1ce33a0a2ec0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
