# GLib

> General-purpose portable utility library for C, from the GNOME project

Source: https://talira.ai/catalog/glib-xvzcyas1
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / general purpose](https://talira.ai/categories/libraries/general-purpose), [languages / c](https://talira.ai/categories/languages/c)
- Licence: LGPL-2.1-or-later[^2]
- Pricing: Free and open source[^2]
- Pricing notes: Free and open source (LGPL-2.1-or-later).
- Free tier: yes[^2]
- Backed by: [GNOME Foundation](https://talira.ai/orgs/gnome-foundation.md)
- Funding: non-profit[^3]

GLib is a general-purpose, portable utility library for C: data types, macros, type conversions, string and file utilities, a main loop abstraction, threads, process spawning, a testing framework and more. It ships with GObject, the base type system, and GIO, for I/O, networking and IPC, and it's the foundation [GTK](https://talira.ai/catalog/gtk-8hnytc9b.md) and much of the GNOME stack build on. The GLib Development Team makes it, with its source on GNOME's GitLab.

## Links

- Repository: https://gitlab.gnome.org/GNOME/glib
- Docs: https://docs.gtk.org/glib/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/glib>[^1]

## Problems it solves

- I need hash tables, lists and string helpers in a C program without writing them myself
- an event loop and portable threads for a C application on Linux
- a cross-platform utility library to build a C library or GNOME app on

## Features

- data structures, string and file utilities
- main event loop abstraction
- threads, process spawning and atomic operations
- testing framework
- GObject type system and GIO for I/O, networking and IPC

## Trust

Overall: 0.42 out of 1.
Signals: adoption 0.76, backing 0.55, extensibility 0.00.

- 15k Homebrew installs in 30 days
- backed by GNOME Foundation
- funding: non-profit

Warnings:

- activity not tracked: Talira doesn't read repositories on gitlab.gnome.org yet

## Alternatives

- [stb](https://talira.ai/catalog/stb-htrsq2z1.md): Single-file public domain libraries for C and C++

## Sources

[^1]: https://formulae.brew.sh/formula/glib (checked 29 Nov 2026)
[^2]: https://docs.gtk.org/glib/ (checked 29 Nov 2026)
[^3]: https://foundation.gnome.org/ (checked 20 Nov 2026)
