indoorvivants/sn-bindgen

Web app to generate bindings

Closed this issue · 1 comments

@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:

  1. Deploy to Fly.io
    • Docker container contains libclang and all the bindgen dependencies
    • Free!
  2. 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?
  3. No dependency management yet - if the header is not self-contained, it just breaks - nothing you can do.

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.