nothings /stb

stb single-file public domain libraries for C/C++

★ 35,037⑂ 8,125👁 624⑃ 882● 993▤ 0
CNOASSERTIONCreated 2014-05-25nothings.org
+9
日增长
+61
周增长
+192
月增长
35,037
stars
8,125
forks
624
watchers
882
prs
993
issues
0
releases

README

stb
===

single-file public domain (or MIT licensed) libraries for C/C++

Several projects have been moved to their own repositories:
 image resize: stb_image_resize
 sprintf: stb_sprintf

 This project discusses security-relevant bugs in public in Github Issues and Pull Requests, and it may take significant time for security fixes to be implemented or merged. If this poses an unreasonable risk to your project, do not use stb libraries.

Noteworthy:

 image loader: stb_image.h
 image writer: stb_image_write.h
 font text rasterizer: stb_truetype.h
 typesafe C containers: stb_ds.h

Most libraries by stb, except: stb_dxt by Fabian "ryg" Giesen



library    | latest version | category | LoC | description | last updated
---------- | -------------- | -------- | --- | ------------|---------------
stb_vorbis.c | 1.24 | audio | 5704 | decode ogg vorbis files from file/memory to float/16-bit signed output | 2026-11-12
stb_hexwave.h | 0.6 | audio | 680 | audio waveform synthesizer | 2026-11-08
stb_image.h | 2.32 | graphics | 7798 | image loading/decoding from file/memory: JPG, PNG, TGA, BMP, PSD, GIF, HDR | 2026-11-12
stb_truetype.h | 1.28 | graphics | 5321 | parse, decode, and rasterize characters from truetype fonts | 2026-11-12
stb_image_write.h | 1.18 | graphics | 1924 | image writing to disk: PNG, JPG, BMP, TGA, HDR | 2026-11-12
stb_rect_pack.h | 1.02 | graphics | 628 | simple 2D rectangle packer with decent quality | 2026-11-08
stb_perlin.h | 0.6 | graphics | 517 | perlin's revised simplex noise w/ different seeds | 2026-11-08
stb_ds.h | 0.98 | utility | 1942 | typesafe dynamic array and hash tables for C, will compile in C++ | 2026-11-08
stb_textedit.h | 1.16 | user interface | 1480 | guts of a text editor for games etc implementing them from scratch | 2026-11-12
stb_voxel_render.h | 0.90 | 3D graphics | 3808 | Minecraft-esque voxel rendering "engine" with many more features | 2026-11-08
stb_dxt.h | 1.13 | 3D graphics | 721 | Fabian "ryg" Giesen's real-time DXT compressor | 2026-11-08
stb_easy_font.h | 1.2 | 3D graphics | 306 | quick-and-dirty easy-to-deploy bitmap font for printing frame rate, etc | 2026-11-08
stb_tilemap_editor.h | 0.43 | game dev | 4206 | embeddable tilemap editor | 2026-11-08
stb_herringbone_wa... | 0.7 | game dev | 1232 | herringbone Wang tile map generator | 2026-11-01
stb_c_lexer.h | 0.13 | parsing | 1068 | simplify writing parsers for C-like languages | 2026-11-11
stb_divide.h | 1.0 | math | 310 | more useful 32-bit modulus e.g. "euclidean divide" | 2026-11-08
stb_connected_comp... | 0.97 | misc | 1050 | incrementally compute reachability on grids | 2026-11-08
stb_leakcheck.h | 0.7 | misc | 206 | quick-and-dirty malloc/free leak-checking | 2026-11-08
stb_include.h | 0.3 | misc | 378 | implement recursive include support, particularly for GLSL | 2026-11-08

Total libraries: 19
Total lines of C code: 39279


FAQ
---

 What's the license?

These libraries are in the public domain. You can do anythi

Top issues

Discussions

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON