{"slug": "show-hn-cstructsharp-c-struct-de-serialization-for-c-and-javascript-wasm", "title": "Show HN: CStructSharp – C-struct (de)serialization for C# and JavaScript (WASM)", "summary": "Developer vvollers released CStructSharp, an open-source C-struct serialization and deserialization library for C# and JavaScript via WebAssembly, along with a browser-based binary inspector demo. The library supports both runtime user-defined structures and compile-time parsers/serializers generated through C#'s source generator feature, and the demo includes sample definitions for multiple file formats. The project was inspired by digital forensic toolkits and was completed with assistance from AI, according to the author.", "body_md": "I've been working on this for a while now (I made a POC for myself some years ago which I didn't release. But AI helped me a lot to finally complete/polish it).\n\nInspired by digital forensic toolkits, this library allows a user to take a c-struct definition and use that to serialize an deserialize binary data.\n\nIt is a flexible library which features modern c# mechanisms and conventions. I tried to make it easy to use, easy to understand, performant and powerful. You can both use it to parse and use runtime user defined structures as well as use the C# source generator feature to build parsers/serializers at compile time.\n\nI also build and published a WASM version/javascript library which is used to showcase the features of the library (see the binary inspector demo app ([https://vvollers.github.io/cstructsharp/inspector/](https://vvollers.github.io/cstructsharp/inspector/)) which you can use to run the library against various files, it includes sample definitions for many file formats). The library is quite usable on its own.\n\nI'm interested to hear your thoughts and if you have any questions feel free to ask.\n\nComments URL: [https://news.ycombinator.com/item?id=49855152](https://news.ycombinator.com/item?id=49855152)\n\nPoints: 1\n\n# Comments: 0", "url": "https://wpnews.pro/news/show-hn-cstructsharp-c-struct-de-serialization-for-c-and-javascript-wasm", "canonical_source": "https://github.com/vvollers/cstructsharp", "published_at": "2026-09-26 10:31:25+00:00", "updated_at": "2026-09-26 11:01:30.654252+00:00", "lang": "en", "topics": ["developer-tools"], "entities": ["CStructSharp", "C#", "JavaScript", "WebAssembly", "vvollers"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/show-hn-cstructsharp-c-struct-de-serialization-for-c-and-javascript-wasm", "markdown": "https://wpnews.pro/news/show-hn-cstructsharp-c-struct-de-serialization-for-c-and-javascript-wasm.md", "text": "https://wpnews.pro/news/show-hn-cstructsharp-c-struct-de-serialization-for-c-and-javascript-wasm.txt", "jsonld": "https://wpnews.pro/news/show-hn-cstructsharp-c-struct-de-serialization-for-c-and-javascript-wasm.jsonld"}}