# jkuhlmann/cgltf

:diamond_shape_with_a_dot_inside: Single-file glTF 2.0 loader and writer written in C99

Repository: https://github.com/jkuhlmann/cgltf
Canonical: https://ross.abutalabs.com/products/cgltf
Language: C
License: MIT
License Family: permissive
Topics: gltf, gltf-loader, glb, stb-style, c, 3d, single-header-lib, gltf2, gltf2-loader, c99
Last push: 2026-02-02T20:32:49+00:00

## Health v2 (maintenance only)
Score: 52/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 65, release rhythm 8, longevity 100
- inputs: {"age_days": 3043, "days_push": 212, "days_rel": 570, "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 1970, forks 187 (observed 2026-08-28T04:06:00.769639+00:00)

## What it is
cgltf is a single-file, stb-style C99 library for parsing and writing glTF 2.0 and GLB 3D asset files. It is widely adopted in graphics engines and tools such as bgfx, Filament, and raylib.

## Use cases
- load gltf models in c
- parse glb files in c99
- write gltf files programmatically
- single header 3d asset loader
- load 3d scenes for a game engine
- decode base64 embedded gltf buffers

## When to choose
- you need a lightweight, dependency-free glTF 2.0 loader in C or C++
- you want stb-style single-header integration
- you need both reading and writing of glTF/GLB files
- you target embedded or cross-platform environments

## When to avoid
- you need automatic loading of external buffer and image files
- you want a high-level scene graph or rendering features
- you prefer a C++ or higher-level language library with more abstractions

## Facets
- artifact type: library
- maturity: stable
- function: parser, graphics, serialization
- domain: graphics, files, parsers
- platform: c, cpp, cross-platform, embedded
- tags: gltf, glb, single-header, stb-style, 3d-assets, c99, game-development

## Member repositories
- jkuhlmann/cgltf (main) score 52

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:00.769639+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:05:08.199165+00:00, confidence not recorded.
  - readme: https://github.com/jkuhlmann/cgltf (fetched 2026-08-28T04:06:00.769639+00:00, sha c43f0ace1a8a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
