# floooh/sokol

minimal cross-platform standalone C headers

Repository: https://github.com/floooh/sokol
Canonical: https://ross.abutalabs.com/products/sokol
Homepage: https://floooh.github.io/sokol-html5
Language: C
License: Zlib
License Family: permissive
Last push: 2026-08-26T17:58:11+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 3337, "days_push": 7, "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 10242, forks 662 (observed 2026-08-28T04:10:41.215309+00:00)

## What it is
Sokol is a collection of minimal, STB-style, cross-platform standalone C header libraries for graphics rendering, audio, input, and app windowing, written in C99 with no external dependencies. It targets desktop platforms and WebAssembly, with official bindings for languages like Zig, Nim, Rust, Odin, and D.

## Use cases
- write a cross-platform 2D or 3D graphics application in pure C
- compile a C/C++ game or demo to WebAssembly and run it in the browser
- add audio playback to a C application without pulling in heavy dependencies
- build a small game or emulator with a single-header library approach
- prototype graphics techniques with Dear ImGui on top of a lightweight backend
- port a native app to the web with minimal code changes

## When to choose
- you want zero-dependency, single-header C libraries in the style of stb
- you need cross-platform graphics/audio/input with WebAssembly as a first-class target
- you prefer minimal, simple APIs over large frameworks like SDL or Unity
- you are writing a game, demo, emulator, or tool in C or C++

## When to avoid
- you need a full game engine with editor, asset pipeline, and scripting
- you require advanced engine features like built-in physics, networking, or scene graphs
- your project depends on a high-level language ecosystem without C interop

## Facets
- artifact type: library
- maturity: stable
- function: graphics, audio-processing, gui, wasm, developer-tools
- domain: graphics, cross-platform, web-development
- platform: cross-platform, windows, wasm, cpp, c
- tags: stb-style, single-header, c99, game-development, webgpu, opengl, metal, d3d11, vulkan, no-dependencies, linux, macos

## Member repositories
- floooh/sokol (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:41.215309+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-29T17:19:25.019420+00:00, confidence not recorded.
  - readme: https://github.com/floooh/sokol (fetched 2026-08-28T04:10:41.215309+00:00, sha a8d5a86e6f88)
  - homepage: https://floooh.github.io/sokol-html5 (fetched 2026-08-29T08:18:51.953918+00:00, sha 279acc47e08b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
