# Extension for the Jai Standard Library A collection of high-level APIs. Note: This library reached not 1.0.0 yet. APIs will change. ## Targets Currently, only Linux support. ## Modules ``` | Module Name | Description | Dependency | +----------------+--------------------------------------------+------------+ | 0x2_Bitpack | Packing multiple numeric values into one | - | | 0x2_Colored | HSL <> RGB <> Hex conversion | - | | 0x2_Crashed | Crash handler which provides location info | addr2line | | 0x2_Datefmt | Python-like date formatter | - | | 0x2_Lexer | It lexes bytes | - | | 0x2_Math | Things I missed in the stdlib | - | | 0x2_Qtrace | Very small and simple profiler | - | | 0x2_Rectcut | Building UI layouts by dividing rectangles | - | | 0x2_Stringpad | Pads a string with any character | - | | 0x2_Termcolors | Colors for your terminal | - | | 0x2_Seccomp | Restricts syscalls | - | | 0x2_Landlock | Restricts FS & Network | - | ``` ## Usage Copy what you need into your projects `modules` directory. Be aware, that some `0x2` modules might depend on other `0x2` modules. Dependencies are noted in the table above. For understanding how those modules work, you can visit the `test` directory and peek at the individual files. ## About ### Crashed Currently Jai does not provide location information in their stack trace. This module by [solarium.technology](https://solarium.technology) provides it. Note: You need `addr2line` from `binutils`. ### Rectcut Instead of doing some common layout voodoo, you "cut" your layout into rectangles which depend on each other and are responsive to changes. I found the idea at [halt.software](https://halt.software/p/rectcut-for-dead-simple-ui-layouts), [solarium.technology](https://solarium.technology) implemented it in Jai, and I modified it further. ## Compiler Version ``` beta 0.2.030, built on 2 July 2026. ``` ## License All modules provide two licenses (always at the end of the file), MIT or Public Domain you can choose from. This is inspired from [stb](https://github.com/nothings/stb/blob/master/docs/why_public_domain.md). ## LLM All bugs are made by a human.