floooh/sokol

minimal cross-platform standalone C headers

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 7 seconds ago
Added to GitGenius on September 6th, 2026
Created on July 14th, 2017
Open Issues & Pull Requests: 129 (+0)
GitHub issues: Enabled
Number of forks: 666
Total Stargazers: 10,269 (+0)
Total Subscribers: 124 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 2.5 hours
Mean response time: 19.7 days
90th percentile: 21.8 hours
Tracked items: 324

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 65% of open issues come from outside the core team, a mix of external reports and the maintainers' own roadmap. Only 8% of issues opened in the past year have been closed. Three people close 82% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 49
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 856 days
Stale 30+ days: 40
Stale 90+ days: 28

Recent activity

Opened in 7 days: 1
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • sokol-gfx (66)
  • sokol-app (62)
  • bug (27)
  • windows (17)
  • enhancement (16)
  • vulkan (12)
  • macos (11)
  • webgpu (10)

Detailed Description

Sokol is a collection of minimal cross-platform standalone C headers that provide graphics, audio, input, and windowing functionality in STB-style single-file libraries.

The tool solves the problem of writing portable C and C++ applications across desktop and web platforms without heavy dependencies. It works by providing thin abstraction layers over platform-specific graphics APIs and system calls, allowing developers to write once and compile for Windows, macOS, Linux, iOS, Android, and WebAssembly. The headers handle the boilerplate of setting up rendering contexts, managing input events, and playing audio across these diverse targets.

Sokol suits developers building games, interactive demos, or graphics applications who want minimal overhead and maximum portability without pulling in large frameworks. It works well for projects ranging from small tools to commercial games, as evidenced by shipped titles and complex demos. The tool is particularly valuable for developers targeting WebAssembly alongside native platforms, since the same code compiles to both. Unlike heavier alternatives, Sokol prioritizes a small, self-contained codebase with no external dependencies beyond the platform's native APIs.

The project maintains steady activity with regular updates to its core graphics and audio libraries. Development includes ongoing refinements to the rendering pipeline and new features added to existing headers. The project demonstrates sustained engagement through documentation improvements and examples that showcase real-world usage patterns. Community contributions appear in the form of related projects and bindings for other languages, indicating the headers serve as a stable foundation for downstream work.