Show HN: CStructSharp – C-struct (de)serialization for C# and JavaScript (WASM)
Category: library
Tags: binary-serialization, csharp, wasm, data-parsing, cross-platform
Score: 7.3/10 (Innovation: 7, Technical: 8, Documentation: 8, Utility: 6)
CStructSharp is a C# library for parsing and serializing binary data using C-struct-like layout definitions, with support for dynamic features like variable-length fields and conditional members. It compiles layouts to fast code and also offers a runtime interpreter, plus a WASM build for JavaScript/browser use. The project stands out for its expressive DSL and cross-language binary data handling, filling a gap between low-level manual parsing and rigid struct layouts.
Target audience: backend developers, systems programmers, data engineers, JavaScript developers
Repository: https://github.com/vvollers/cstructsharp · C# · MIT · 6 stars
View on Hacker News