C single-header

Open-source C projects categorized as single-header

Top 16 C single-header Projects

single-header
  • nuklear

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

    Project mention: RGFW: Single-header C99 window abstraction library | news.ycombinator.com | 2024-11-22

    The one big downside I see is that if you want to actually work on the library itself, it's a pain to have to re-compile the entire thing every time you change something.

    Nuklear (https://github.com/Immediate-Mode-UI/Nuklear) uses separate files with a deploy script that combines them all into a single header; I think that approach is quicker for iterating on the code.

  • SaaSHub

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

    SaaSHub logo
  • minimp3

    Minimalistic MP3 decoder single header library

  • librg

    🚀 Making multi-player gamedev simpler since 2017

  • HandmadeMath

    A simple math library for games and computer graphics. Compatible with both C and C++. Public domain and easy to modify.

  • RGFW

    A cross platform lightweight single-header simple-to-use window abstraction library for creating graphical programs or libraries.

    Project mention: RGFW: Single-header C99 window abstraction library | news.ycombinator.com | 2024-11-22
  • nbnet

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

  • embedded-cli

    Single-header CLI with history and autocompletion for embedded systems (like Arduino or STM32) (by funbiscuit)

  • minivorbis

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

  • clove-unit

    Single-Header Unit Testing framework for C (interoperable with C++) with test autodiscovery feature

  • RFont

    Simple-to-use single header modular font rendering library written in C.

  • variation-ui

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

  • pega-texto

    Single-file Parsing Expression Grammars (PEG) runtime engine for C

  • IncludeDB

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

  • c-allocators

    A collection of public domain single-file custom allocators for C/C++

    Project mention: Show HN: I made a library for dynamic stack strings in C | news.ycombinator.com | 2024-06-25

    I've been playing with this arena bump allocator.

    https://github.com/gilzoide/c-allocators

    I've been using it with an event driven code where after an event is fired off and returns the handler just hard resets the arena.

    You could probably use something like that as well.

    Either way I support not mixing manual memory management with business logic.

  • testdrive

    An expressive single-header unit testing framework for C.

  • variation-lite-ui

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

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 discussion

Log in or Post with

C single-header related posts

  • RGFW: Single-header C99 window abstraction library

    5 projects | news.ycombinator.com | 22 Nov 2024
  • Show HN: I made a library for dynamic stack strings in C

    2 projects | news.ycombinator.com | 25 Jun 2024
  • Is there no simple GUI library for pure C?

    4 projects | /r/C_Programming | 15 May 2023
  • Networking and multiplayer

    1 project | /r/raylib | 28 Apr 2023
  • CLib: Header-only C library that implements the most important classes from GLib

    4 projects | news.ycombinator.com | 4 Jan 2023
  • Making UI Library (OpenGL) in your engine

    2 projects | /r/gameenginedevs | 17 Dec 2022
  • Nuklear – A single-header ANSI C immediate mode cross-platform GUI library

    1 project | /r/hypeurls | 23 Dec 2022
  • A note from our sponsor - SaaSHub
    www.saashub.com | 15 Jan 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

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

Project Stars
1 nuklear 9,526
2 minimp3 1,642
3 librg 1,291
4 HandmadeMath 1,280
5 RGFW 817
6 nbnet 469
7 embedded-cli 255
8 minivorbis 69
9 clove-unit 46
10 RFont 36
11 variation-ui 21
12 pega-texto 18
13 IncludeDB 9
14 c-allocators 4
15 testdrive 2
16 variation-lite-ui 2

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

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