{"repo":"menduz/zig-steamworks","free":true,"listed":false,"github":"https://github.com/menduz/zig-steamworks","clone":"git clone https://github.com/menduz/zig-steamworks.git","description":"Steamwork bindings for Zig","language":"C++","stars":33,"topics":["game-development","steamworks","zig"],"license":"Apache-2.0","category":"game-templates","readme_excerpt":"zig-steamworks Zig bindings for Steamworks, compatible with v1.64 (March 2026). The bindings are autogenerated from the C bindings and are compatible with - macOS (both Apple Silicon and Intel) - linux (x86 64) - windows (x86 64) Main branch is compatible with Zig 0.16.0. Including the Steamworks SDK Due to licence agreements, you must bring your own SDK. This project assumes it is located in the ./steamworks folder. But you can have it anywhere else. Linking the Steamworks libraries. Build it For convenience, this repository offers already built bindings for Zig in the src folder. Until Zig modules and package manager are mature, the recommended course of action is to copy these files into your project. In this case, you'll need to manually link the steamapi dlls and headers in your own build.zig file. Alternatively, you can use zig fetch --save git+https://github.com/menduz/zig-steamworks or zig fetch --save /path/to/local/zig-steamworks , and include it as a dependency as outlined above To regenerate the Zig bindings from the SDK JSON: The generator scripts run with Bun by default. To use Node instead, pass JS=node , for example make generate JS=node . Example Alignment Steamworks is packed with pragma packs , I've tried dozens of approaches even brute forcing all structs, but getting the right alignment for every struct was impossible. So I took the good-enough-and-not-so-elegant path of delegating the alignment to the C compiler entirely and then forcing Zig to copy ever","default_branch":null,"files":null,"tree":[],"storefront":"/r/menduz","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/menduz/zig-steamworks/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}