# stb

> Single-file public domain libraries for C and C++

Source: https://talira.ai/catalog/stb-htrsq2z1
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / general purpose](https://talira.ai/categories/libraries/general-purpose)
- Licence: MIT OR Unlicense[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [Sean Barrett](https://talira.ai/orgs/sean-barrett.md)

stb is Sean Barrett's collection of single-file libraries for C and C++: you drop one header into your project and use it, with nothing to build or link. The best known are stb_image (loading JPG, PNG, TGA, BMP, PSD, GIF and HDR images from files or memory), stb_image_write, stb_truetype (parsing and rasterizing TrueType fonts) and stb_ds (typesafe dynamic arrays and hash tables for C); others decode Ogg Vorbis audio, pack rectangles, generate Perlin noise, render voxels and help write C-like parsers. Each is public domain, and most are also MIT licensed.

## Links

- GitHub: https://github.com/nothings/stb

## Problems it solves

- load a PNG or JPG in my C program without pulling in libpng
- render TrueType text in a game without a big font library
- a header-only hash table and dynamic array for plain C

## Features

- single-header libraries with nothing to build or link
- image loading and writing (JPG, PNG, TGA, BMP, PSD, GIF, HDR)
- TrueType font rasterizing
- typesafe dynamic arrays and hash tables for C
- Ogg Vorbis decoding
- rectangle packing, Perlin noise and voxel rendering

## Limitations

- Security bugs are discussed in public issues and fixes may take a long time to land; its README advises against using it where that's an unreasonable risk[^1]

## Trust

Overall: 0.75 out of 1.
Signals: maintenance 1.00, adoption 0.91, momentum 0.72, community 0.97, backing 0.30, extensibility 0.00.

- last commit 10 days ago
- 301 commits in the last 90 days
- 35.1k GitHub stars
- 258 contributors
- backed by Sean Barrett

## Sources

[^1]: https://github.com/nothings/stb/blob/master/README.md (checked 27 Nov 2026)
[^2]: https://github.com/nothings/stb/blob/master/LICENSE (checked 27 Nov 2026)
