C single-header-lib

Open-source C projects categorized as single-header-lib

Top 13 C single-header-lib Projects

single-header-lib
  1. nuklear

    A single-header ANSI C immediate mode cross-platform GUI library (by Immediate-Mode-UI)

    Project mention: Ask HN: What Are You Working On? (July 2026) | news.ycombinator.com | 2026-07-12

    I'm working on better UI for my app AutoPTT [1]. It's probably going to look somewhat similar to Discord's settings, except I won't be using Electron. I refuse to use bloated stuff like that, so I'm going to keep using a pure C UI library [2].

    Obviously this is going to take a bit more work but at least the resource usage will stay low, which I consider quite important. Especially since gamers are a large portion of the user base.

    [1] https://autoptt.com/

    [2] https://github.com/Immediate-Mode-UI/Nuklear

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. cgltf

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

    Project mention: cgltf VS AssetKit - a user suggested alternative | libhunt.com/r/cgltf | 2026-10-13
  4. minimp3

    Minimalistic MP3 decoder single header library

  5. nbnet

    single header C(99) library to implement client-server network code for games

  6. buddy_alloc

    A single header buddy memory allocator for C & C++

  7. msf_gif

    A single-header animated GIF exporter

  8. dds-ktx

    Single header "no-allocation" KTX/DDS file reader

  9. minivorbis

    Single-file port of libogg and libvorbis for decoding ogg sound files.

  10. simple-opengl-loader

    An extensible, cross-platform, single-header C/C++ OpenGL loader library.

  11. variation-ui

    Single-header terminal user interface library. Written in ansi-c

  12. miniwtpc

    Small Wavelet Thumbnail & Preview Codec - WTPC

    Project mention: A new wavelet codec for thumbnails/preview (200B–36KB) | news.ycombinator.com | 2026-07-18

    I added a comparison with AVIF https://github.com/lieff/miniwtpc/blob/main/results.md#compa...

  13. kaze-core

    Basis Infrastructure for Gaming Service mesh.

    Project mention: Put a ring on it: a lock-free MPMC ring buffer | news.ycombinator.com | 2025-12-16

    FYI: I have made a SPSC circular buffer for swap data in a pair of process: https://github.com/starwing/kaze-core

    maybe that is what you want.

  14. IncludeDB

    Tiny key/value-store in a single, embeddable C file. For games, small servers, sbc, etc...

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C single-header-lib discussion

Log in or Post with

C single-header-lib related posts

Index

What are some of the best open-source single-header-lib projects in C? This list will help you:

# Project Stars
1 nuklear 11,507
2 cgltf 2,030
3 minimp3 1,984
4 nbnet 568
5 buddy_alloc 254
6 msf_gif 237
7 dds-ktx 141
8 minivorbis 92
9 simple-opengl-loader 92
10 variation-ui 27
11 miniwtpc 10
12 kaze-core 10
13 IncludeDB 9

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that C is
the 6th most popular programming language
based on number of references?