cd /news/developer-tools/show-hn-cstructsharp-c-struct-de-ser… · home › topics › developer-tools › article
[ARTICLE · art-140087] src=github.com ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

Show HN: CStructSharp – C-struct (de)serialization for C# and JavaScript (WASM)

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.

read1 min views1 publishedSep 26, 2026

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).

Inspired by digital forensic toolkits, this library allows a user to take a c-struct definition and use that to serialize an deserialize binary data.

It 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.

I 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/) 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.

I'm interested to hear your thoughts and if you have any questions feel free to ask.

Comments URL: [https://news.ycombinator.com/item?id=49855152](https://news.ycombinator.com/item?id=49855152)

Points: 1

── more in #developer-tools 4 stories · sorted by recency
── more on @cstructsharp 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-cstructsharp…] indexed:0 read:1min 2026-09-26 · —