Sokol is a collection of minimal, cross-platform, standalone C headers for graphics, applications, audio, timing, data loading, logging, and related low-level tasks. Its graphics layer abstracts APIs including OpenGL, GLES, WebGL, D3D11, Metal, and WebGPU. The application header provides window creation, graphics context setup, and keyboard, mouse, and touch input across desktop, mobile, and web platforms. Other modules handle audio streaming, asynchronous file or HTTP loading, command-line arguments, and timing. Utility headers integrate libraries such as Dear ImGui and Nuklear or provide debugging, shapes, text, colors, and memory tracking. The libraries follow an STB-style single-header approach and can be incorporated without adopting a large framework. Sokol is designed for small, portable C and C++ applications, games, demos, and emulators.

Features

  • Cross-platform graphics abstraction
  • Window, input, and application management
  • Audio streaming support
  • Asynchronous HTTP and file loading
  • Dear ImGui and Nuklear integration
  • Standalone single-header C libraries

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

zlib/libpng License

Follow Sokol

Sokol Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Sokol!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

C

Related Categories

C Libraries

Registered

1 day ago