WebKit → Go Bridge Prototype (Minimal C, Early‑Stage, Looking for Feedback) #333
ghost
started this conversation in
Show and tell
Replies: 1 comment
-
|
I am currently reworking this right now... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I’ve been experimenting with a small GTK WebKit → Go bridge and wanted to share it here in case it’s relevant to anyone working with UI tooling or language bindings on MidnightBSD.
This started as a personal project, but it’s grown into a working prototype that moves data and commands cleanly across C → WebKit → JavaScript → Go. I recently cleaned it up so it runs on any machine that clones the repo (no hardcoded paths, fixed a couple of real issues, etc.), and I’m now at the point where outside eyes would be valuable.
A few details up front:
The C is vibe coded. The C layer is intentionally kept very small to reduce the surface area and make auditing easier (388 lines currently). A serious C coder's eyes on the project would be greatly appreciated.
I’ve already fixed a real memory leak and a double‑declared window issue in the Go layer.
JavaScript event handling works but still needs consolidation; I’m aware of the multiple‑listener pattern and plan to refine it.
There’s an addressing system for tracing JS → Go errors, but I’m holding off wiring it in until the core is stable.
Licensed under Apache 2.0 for anyone who wants to experiment or contribute.
This isn’t a framework pitch — it’s an early‑stage tool that could become useful with more eyes on it. If anyone here is interested in WebKit bindings, Go tooling, or just enjoys small C surfaces with clear boundaries, I’d appreciate any feedback or critique.
Repo link: https://github.com/JuanPiccolo/gtk-webkit-c-go-bridge/tree/main
Thanks for taking a look.
Beta Was this translation helpful? Give feedback.
All reactions