Web app to generate bindings
Closed this issue · 1 comments
keynmol commented
@ekrich had a truly wonderful idea on Discord:
I was thinking that a web service like Scastie that you could feed a header and then it would give you back the binding would be very helpful
The very basic design should be quite easy to achieve:
- Deploy to Fly.io
- Docker container contains libclang and all the bindgen dependencies
- Free!
- Backend with SNUnit, frontend with Scala.js, glue with Tapir - basically same as Twotm8, but with the added benefit that we don't strictly need any persistence at all, even though Roach has gotten much better since the first release
- Alternatively, go the whole CE route, with http4s behind SNUnit, and attempt to use smithy4s may be?
- No dependency management yet - if the header is not self-contained, it just breaks - nothing you can do.
keynmol commented
In the end, I laid the foundation for this in a separate repository: https://github.com/indoorvivants/sn-bindgen-web
The app is deployed, but I've had a mess of a time having discrepancies between local setup and on Fly.io.
It will require more work to make it stable at the deployment, but at least this issue can be closed.