C header-only

Open-source C projects categorized as header-only

Top 22 C header-only Projects

header-only
  • librg

    🚀 Making multi-player gamedev simpler since 2017

  • SaaSHub

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

    SaaSHub logo
  • zpl

    📐 Pushing the boundaries of simplicity

  • metalang99

    Full-blown preprocessor metaprogramming

    Project mention: Metalang99: Full-Blown Preprocessor Metaprogramming | news.ycombinator.com | 2024-09-30
  • earcut.hpp

    Fast, header-only polygon triangulation

  • minicoro

    Single header stackful cross-platform coroutine library in pure C.

  • Tina

    Tina is a teeny tiny, header only, coroutine and job library.

  • tiny-dream

    Tiny Dream - An embedded, Header Only, Stable Diffusion C++ implementation

  • ctl

    My variant of the C Template Library (by rurban)

  • RSGL

    A simple-to-use modular, cross-platform graphics library. It combines the freedom of lower-level graphics libraries with modern C techniques, offering both simplicity and convenience.

    Project mention: RSGL | Modular header-only cross-platform GUI Library for easily creating GUI software your way! | dev.to | 2024-02-25

    The RSGL Repo can be found at : https://github.com/ColleagueRiley/RSGL

  • libcester

    A robust header-only unit testing framework for C and C++ programming language. Support function mocking, memory leak detection, crash report.

  • sgc

    Generic Algorithms and Data Structures in C

  • rexo

    Neat single-file cross-platform unit testing framework for C/C++.

    Project mention: Show HN: RK Test, a Google Test style library written in C99 | news.ycombinator.com | 2023-12-11

    I really like Google Test, but am planning on doing some embedded development in C, where I sometimes find it awkward to test C code using a C++ library.

    Therefore, I wrote a small unit test library closely mimicking Google Test. It consists of two source files, "rktest.c" and "rktest.h", and is about 1k lines of code and written in C99.

    It uses a trick for self registering tests by placing pointers to the unit test functions into a known place in program memory, that I first learned about from https://github.com/christophercrouzet/rexo/ and https://github.com/Snaipe/Criterion/.

  • pega-texto

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

  • Mathc

    A simple and clean, glsl like, math (linear algebra) header only library for C.

  • exile.h

    Painless Linux sandboxing API

  • roguelike.h

    Header only roguelike rendering library.

  • c-flags

    Library for parsing command line arguments easily. Like golang flag module.

  • PoxHash

    A block hashing algorithm with implementations in C, Rust, Go, Nim, Python and JS

  • 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.

  • cp437.h

    Header only codepage 437 unicode lookup table.

  • radian

    Header-only library of macros to assist with reading and writing big/little endian values. (by raddari)

  • db.h

    Header only database

    Project mention: Show HN: Header-only database in 82 lines of C | news.ycombinator.com | 2024-05-22
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 header-only discussion

Log in or Post with

C header-only related posts

  • Using Jolt with flecs & Dear ImGui: Game Physics Introspection

    4 projects | dev.to | 17 Apr 2024
  • Factor is faster than Zig

    11 projects | news.ycombinator.com | 10 Nov 2023
  • Tiny Dream – An Embedded, Header Only, Stable Diffusion C++ Implementation

    1 project | news.ycombinator.com | 26 Sep 2023
  • Tiny Dream - Header-Only, Embedded Stable Diffusion Inference Library in C++

    1 project | /r/pixlab | 1 Sep 2023
  • Tiny Dream – Header Only, Embedded Stable Diffusion C++ Library

    1 project | news.ycombinator.com | 31 Aug 2023
  • Tiny Dream – An Embedded, Header Only, Stable Diffusion C++ Implementation

    1 project | news.ycombinator.com | 31 Aug 2023
  • Possible security issues allowing multibyte chars?

    2 projects | /r/C_Programming | 23 Feb 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 4 Dec 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

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

Project Stars
1 librg 1,283
2 zpl 994
3 metalang99 877
4 earcut.hpp 865
5 minicoro 648
6 Tina 272
7 tiny-dream 250
8 ctl 173
9 RSGL 116
10 libcester 64
11 sgc 33
12 rexo 28
13 pega-texto 18
14 Mathc 16
15 exile.h 14
16 roguelike.h 11
17 c-flags 9
18 PoxHash 7
19 c-allocators 4
20 cp437.h 4
21 radian 1
22 db.h 1

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 7th most popular programming language
based on number of metions?