C single-file

Open-source C projects categorized as single-file

Top 6 C single-file Projects

single-file
  1. gb

    gb single-file public domain libraries for C & C++ (by gingerBill)

    Project mention: Sds vs. GB: C string libs, copy or coincidence? | news.ycombinator.com | 2025-05-05

    https://github.com/gingerBill/gb/blob/master/gb_string.h#L71

    Copy or coincidence?

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. Tina

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

  4. mojoAL

    An SDL2-based implementation of OpenAL in a single C file.

  5. minivorbis

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

  6. pega-texto

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

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

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-file discussion

Log in or Post with

C single-file related posts

  • Sds vs. GB: C string libs, copy or coincidence?

    2 projects | news.ycombinator.com | 5 May 2025
  • Show HN: I made a library for dynamic stack strings in C

    2 projects | news.ycombinator.com | 25 Jun 2024
  • Story: Game rot... One day I have 60fps, then another day it is 5fps without any changes on my end what-so-ever.

    2 projects | /r/gameenginedevs | 13 Nov 2022
  • Header only Parsing Expression Grammars (PEG) runtime engine for C

    1 project | /r/Compilers | 18 Feb 2021
  • Header only Parsing Expression Grammars (PEG) runtime engine for C

    2 projects | /r/C_Programming | 18 Feb 2021
  • Show HN: Asymmetric stackful cross-platform Coroutines in pure C

    1 project | news.ycombinator.com | 17 Jan 2021
  • Minicoro - Single header cross-platform coroutine library

    1 project | /r/C_Programming | 14 Jan 2021
  • A note from our sponsor - SaaSHub
    www.saashub.com | 13 May 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

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

# Project Stars
1 gb 622
2 Tina 283
3 mojoAL 172
4 minivorbis 70
5 pega-texto 19
6 c-allocators 5

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com