Swift/JS interop used to mean "JSObject", "JSValue", and runtime surprises.
BridgeJS changes that: annotate your Swift, get typed glue code in both directions. Compile-time safe. Zero manual boilerplate. 🧵
Swift/JS interop used to mean "JSObject", "JSValue", and runtime surprises.
BridgeJS changes that: annotate your Swift, get typed glue code in both directions. Compile-time safe. Zero manual boilerplate. 🧵
Left side: Swift types with @​JS annotation.
Right side: fully generated TypeScript interfaces and exports.
You write @​JS. BridgeJS writes everything else.
BridgeJS landed as an MVP just two weeks ago, and is evolving fast.
Check it out with the interactive playground — paste Swift, and see the generated results live: https://swiftwasm.org/JavaScriptKit/PlayBridgeJS/
Docs here: https://swiftpackageindex.com/swiftwasm/javascriptkit/main/documentation/javascriptkit