TBOX is a glib-like C library with modules for streams, coroutines, containers, algorithms, networking, and serialization. It targets embedded and desktop builds on several operating systems.
Overview
TBOX packages common C development utilities into one library so applications can use streams, data structures, regex, hashing, XML and JSON handling, and light database access without assembling many dependencies.
Modules cover asynchronous I/O via coroutines, memory pools with debug leak detection, charset conversion, compression, math helpers, and platform abstractions for threads, timers, and pollers. Supported deployment targets named in the project materials include Windows, macOS, Linux, Android, iOS, and BSD-family systems.
Build profiles include release, debug, small, and micro variants sized for constrained embedded images. The project is commonly built with the xmake toolchain and is used as a foundation by related TBOOX projects.
Key features
- Stream filters for files, HTTP, and sockets
- Coroutine-based async I/O
- Hash tables, lists, vectors, and heaps
- MySQL and SQLite3 database helpers
- XML, JSON, and binary plist serialization
- SSL and HTTP client networking
- Regex with pcre and pcre2 backends
- Memory pools with debug leak checks
Use cases
- Cross-platform C application foundations
- Embedded micro-library builds
- Networked tools needing coroutines
- Parsing XML or JSON in native code