# bflattened/bflat

C# as you know it but with Go-inspired tooling (small, selfcontained, and native executables)

Repository: https://github.com/bflattened/bflat
Canonical: https://ross.abutalabs.com/products/bflat
Language: C#
License: AGPL-3.0
License Family: copyleft
Last push: 2025-11-13T06:05:05+00:00

## Health v2 (maintenance only)
Score: 52/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 52, release rhythm 24, longevity 100
- inputs: {"age_days": 1902, "days_push": 293, "days_rel": 293, "gap_med": null, "n_releases_24m": 1}
- flags: prerelease_only
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3970, forks 120 (observed 2026-08-28T04:08:30.825936+00:00)

## What it is
bflat is a C# compiler and ahead-of-time runtime that combines Roslyn and NativeAOT to produce small, self-contained native executables without needing the dotnet SDK, MSBuild, or NuGet. It supports cross-compilation to Linux, Windows, Android (bionic), and UEFI targets, and can emit native shared libraries for FFI.

## Use cases
- compile C# to a small self-contained native executable
- cross-compile C# programs for Windows and Linux from one machine
- build C# apps without installing the dotnet SDK
- compile C# to a shared library callable via FFI
- build minimal C# binaries for UEFI
- run C# on Android with a bionic target

## When to choose
- you want Go-like simplicity for building C# tools with no SDK or NuGet dependencies
- you need small, self-contained native binaries from C# code
- you want cross-compilation targets like UEFI or Android bionic

## When to avoid
- you need the full .NET ecosystem, NuGet packages, or MSBuild project files
- you need musl-based Linux targets, which are not yet supported
- you rely on libraries or frameworks requiring the full .NET runtime

## Facets
- artifact type: cli-tool
- maturity: active
- function: compiler, build-tool, cli
- domain: compilers, programming-languages, developer-tools
- platform: windows, cli, cross-platform
- tags: csharp, nativeaot, aot-compilation, self-contained-executables, cross-compiler, go-inspired-tooling, uefi, android, command-line, linux, macos

## Member repositories
- bflattened/bflat (main) score 52

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:30.825936+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-29T18:24:22.094623+00:00, confidence not recorded.
  - readme: https://github.com/bflattened/bflat (fetched 2026-08-28T04:08:30.825936+00:00, sha 744a6e50f8f4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
