# GObject Introspection

> Middleware between GObject-based C libraries and language bindings

Source: https://talira.ai/catalog/gobject-introspection-nz3pkj44
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [developer tools / language bindings](https://talira.ai/categories/developer-tools/language-bindings), [languages / c cpp](https://talira.ai/categories/languages/c-cpp)
- Licence: LGPL-2.0-or-later AND GPL-2.0-or-later AND MIT[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [GNOME Foundation](https://talira.ai/orgs/gnome-foundation.md)
- Funding: non-profit[^3]

GObject Introspection (GI) is GNOME's middleware layer between C libraries built on GObject and language bindings. A scanner reads a library's C sources and headers at build time and writes GIR, an XML description of its API; a compiler turns that into a binary typelib, and the libgirepository library reads typelibs so that bindings can call into the C library automatically, with no hand-written glue. It also includes a Python package for creating and parsing GIR, and documents how to write bindable APIs and annotations.

## Links

- Website: https://gi.readthedocs.io/en/latest/
- Repository: https://gitlab.gnome.org/GNOME/gobject-introspection
- Docs: https://gi.readthedocs.io/en/latest/

## Problems it solves

- call a GObject-based C library from Python or JavaScript without writing bindings by hand
- generate language bindings for my GNOME C library
- make my C library usable from scripting languages through GObject

## Features

- scanner that generates GIR from C sources and headers
- GIR XML format and binary typelib compiler
- libgirepository to read typelibs at runtime
- automatic bindings for GObject libraries in other languages

## Trust

Overall: 0.37 out of 1.
Signals: backing 0.55, extensibility 0.00.

- backed by GNOME Foundation
- funding: non-profit

Warnings:

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

## Alternatives

- [bindgen](https://talira.ai/catalog/bindgen-8awz7b66.md): Generates Rust FFI bindings to C and some C++ libraries from their headers

## Sources

[^1]: https://github.com/GNOME/gobject-introspection/blob/main/COPYING (checked 29 Nov 2026)
[^2]: https://formulae.brew.sh/api/formula/gobject-introspection.json (checked 29 Nov 2026)
[^3]: https://foundation.gnome.org/ (checked 20 Nov 2026)
