A glib-like cross-platform C library providing modules for streams, coroutines, containers, algorithms, and more to simplify C development.
TBOX is a cross-platform C library inspired by GLib, providing modules for streams, coroutines, containers, algorithms, networking, and memory management. It simplifies C development by offering ready-to-use components that enhance productivity and maintain portability across operating systems like Windows, Linux, macOS, Android, and iOS.
C developers building cross-platform applications, embedded systems, or high-performance services who need a lightweight, modular alternative to GLib.
Developers choose TBOX for its comprehensive feature set, coroutine support for asynchronous operations, and seamless cross-platform compatibility, all while being optimized for performance and ease of integration.
🎁 A glib-like multi-platform c library
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports Windows, macOS, Linux, Android, iOS, and *BSD with consistent APIs, as evidenced by CI badges and documentation for seamless development across diverse systems.
Provides modular libraries for streams, coroutines, containers, algorithms, networking, and more, similar to GLib but with added features like coroutine-based asynchronous I/O.
Implements stackful and stackless coroutines with support for various I/O pollers (epoll, kqueue, IOCP), enabling efficient async programming without thread overhead, as detailed in the coroutine library section.
Includes fast memory error detection in debug mode for out-of-bounds accesses, use-after-free, and leaks, offering robust debugging aids that many C libraries lack.
Relies heavily on xmake for building, which is not as widely adopted as CMake or Make; this complicates integration into projects using other build tools and adds a learning curve.
Has a smaller community and fewer third-party bindings compared to established alternatives like GLib, resulting in less documentation, tutorials, and pre-existing integrations.
Requires manual SDK path specification for cross-platform builds (e.g., Android, iOS), as shown in the build instructions, which can be error-prone and time-consuming for beginners.
tbox is an open-source alternative to the following products: