frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: TypeShim – .NET WebAssembly Meets TypeScript

https://github.com/ArcadeMode/TypeShim
1•ArcadeMode•2h ago
I'm a big proponent of WebAssembly and .NET. When I found out .NET now runs in the browser on WASM with ánd without Blazor, I figured that could be something. Since Blazor is often too big of a step for TypeScript developers, I figured the recently added ability to include a .NET WASM app as a library in a JS bundle could be a good stepping stone for WASM to gain some ground in this JS-heavy web we have.

Using the JSExport/JSImport interop is relatively cumbersome, it only supports static methods, has no OOP concepts (like classes, just object handles) and it requires manually writing TypeScript definitions for the exported methods. So I decided to try and make some tooling that would improve the developer experience and reliability higher.

Enter TypeShim: a codegen tool that creates a seamless programming experience between .NET WebAssembly and TypeScript. Complete class level exports are translated to C# codegen to automatically define your JSExports/JSImports with a TypeScript class that wraps these methods. This creates proxies that look exactly like your C# classes and behave all the same, static/member, constructors, properties, methods, even things like reference equality. TypeShim supports all types that JSExport supports but includes your own classes in that list, so it provides a superset of what JSExport offers.

--

As Roslyn codegen wouldnt allow me to generate code that the JSExport codegen could consume, I had to make my own CLI codegen tool (which was a lot of fun). Thank Roslyn for exporting its APIs, allowing me to run my own compilation, which I could then use to build C# and TypeScript matching the classes that were marked for export.

It was also a good excuse to do some performance optimization work (because why not?!), NativeAOT turned out particularly suited for such short-running tooling and by taking care of a few bottlenecks found with PerfView, I managed to get codegen times down to ~100ms for projects with 100+ classes requiring codegen.

It took me down paths I hadnt expected to ever expected to end up at, like finding two bugs while E2E testing the solution, which would crash the .NET WASM runtime, which led me to dive into the dotnet/runtime repo and fix them. The dotnet team was grateful and very welcoming, inviting me to try fixing the same issues in the new .NET11 interop implementation which runs on the CoreCLR instead of mono. Great experience, I'll be going back for more TypeShim adjacent challenges: adding more types to the interop library.

--

Anyway, that was a bit of excitement about my recent open source activity. If you have a moment to look at TypeShim, maybe even leave a star, that would be greatly appreciated. But mostly I would love to hear your feedback!

Best, ArcadeMode

Obama is right about aliens

https://www.doomsdayscenario.co/p/obama-is-right-about-aliens
1•mooreds•43s ago•0 comments

Life in the Endless Scroll: What We're Losing

https://www.medscape.com/viewarticle/life-endless-scroll-what-were-losing-2026a10005od
1•wjb3•57s ago•0 comments

Zen of AI Coding

https://nonstructured.com/zen-of-ai-coding/
1•vinhnx•58s ago•0 comments

Intent-Based Access Control (IBAC) – FGA for AI Agent Permissions

https://ibac.dev
1•ERROR_0x06•1m ago•0 comments

Moving to 199-day validity for public TLS certificates

https://knowledge.digicert.com/alerts/public-tls-certificates-199-day-validity
1•thread_id•5m ago•0 comments

The Wealth of Wall Street with Oren Cass [video]

https://www.youtube.com/watch?v=SL2aA8cgIB8
1•mooreds•6m ago•0 comments

Eurosky.social accounts – launching early February

https://www.eurosky.tech/register
1•doener•6m ago•0 comments

Spain says we have the necessary resources to contain US trade embargo

https://www.marketscreener.com/news/spanish-government-on-trump-threat-to-cut-trade-we-have-the-n...
1•rguiscard•6m ago•1 comments

Four Decades of Inquiry into the Genetic Bases of Specific Reading Disability

https://pubs.asha.org/doi/epdf/10.1044/2025_JSLHR-25-00050
1•wjb3•7m ago•0 comments

Show HN: Finqual – Free SEC-based API for fundamentals, insider and 13F data

https://finqual.app/
1•myztika•8m ago•0 comments

Reverse engineering "Hello World" in QuickBASIC 3.0

https://marnetto.net/2026/03/01/brun-hello-world
1•avadodin•8m ago•0 comments

Ask HN: Are you running a free product (pre-revenue)?

1•LeanVibe•8m ago•0 comments

Interactive Fiction Theory and Criticism

https://the-rosebush.com/
1•agnishom•8m ago•0 comments

The evolution of background job frameworks in Ruby

https://riverqueue.com/blog/ruby-queue-history
1•thunderbong•9m ago•0 comments

Tunesia authoritative nameservers for .tn are down

https://www.google.com/
2•NoahZuniga•9m ago•1 comments

"We have made the decision to permanently shut down Highguard."

https://twitter.com/PlayHighguard/status/2028923492125819287
1•minimaxir•9m ago•0 comments

The missing piece for AI coding agents

https://www.buildbuddy.io/blog/remote-bazel-with-agents/
2•jshchnz•10m ago•0 comments

After 8 years on WordPress, I migrated to AstroJS Starlight. Here's the how-to

https://pawelcislo.com/posts/migrating-from-wordpress-to-astrojs-starlight/
1•pyxelr•11m ago•0 comments

Key takeaways from the 2026 State of Software Delivery

https://circleci.com/blog/five-takeaways-2026-software-delivery-report/
1•Illniyar•11m ago•0 comments

Graduate from Single-Session Coding: My Full Agentic Coding Workflow

https://medium.com/@btraut/assemble-your-agent-team-fbfb6b8904b2
1•btraut•11m ago•0 comments

Ketamine may fight chronic fatigue, study suggests

https://medicalxpress.com/news/2026-02-ketamine-chronic-fatigue.html
2•PaulHoule•12m ago•0 comments

Replicating Empirical AI Safety Research

https://secondlookresearch.com/
1•salkahfi•12m ago•0 comments

Closing the Loop – Optimizing the Agentic SDLC

https://medium.com/@btraut/closing-the-loop-3286bb886605
1•btraut•12m ago•0 comments

Yard Kitchen – 3D interactive Jamaican cookbook with AI cooking assistants

https://yard-kitchen.vercel.app
1•amdr_automate•13m ago•1 comments

Why the Open Web Matters: A Claude Code Agent's Case for Open Infrastructure

https://blog.unratified.org/2026-03-03-in-defense-of-the-open-web/
1•9wzYQbTYsAIc•13m ago•0 comments

Military Leaders Say Iran War Is So Trump Can Bring About "Armageddon"

https://newrepublic.com/post/207270/military-leaders-iran-war-donald-trump-jesus-armageddon
5•Teever•14m ago•0 comments

Markdown for the Component Era

https://mdxjs.com/
1•mjtk•14m ago•0 comments

Full Schema Hierarchy

https://schema.org/docs/full.html
1•vinhnx•16m ago•0 comments

Meta to Create New Applied AI Engineering Organization

https://www.wsj.com/tech/ai/meta-to-create-new-applied-ai-engineering-organization-in-reality-lab...
1•RijilV•19m ago•0 comments

Open Source Day (April 24, Italy)

https://osday.dev
1•escapeteam•20m ago•0 comments