e2b-dev / E2B

Secure open source cloud runtime for AI apps & AI agents
https://e2b.dev/docs
Apache License 2.0
6.92k stars 451 forks source link

Please support Swift SDK #413

Open longseespace opened 3 months ago

longseespace commented 3 months ago

Is your feature request related to a problem? Please describe. I want to use E2B from a native macOS application

Describe the solution you'd like A native E2B Swift SDK similar to the Python & JS SDK

Describe alternatives you've considered An API references on how to implement a new SDK

Additional context N/A

ValentaTomas commented 3 months ago

Hey @longseespace, the communication between our SDK and API+sandboxes is documented in our infra repo:

You can check the reference implementation in TS — https://github.com/e2b-dev/E2B/tree/beta/packages/js-sdk. The protocol we use (https://connectrpc.com/) is a very thin wrapper around HTTP/1.1+protobuffers. It also has a Swift SDK (https://github.com/connectrpc/connect-swift) so generating that part of the SDK should be easy.

All interaction with the sandbox and API can also be done with just HTTP request, but it is way more convenient to use the generated clients, especially for the sandbox interactions.

longseespace commented 3 months ago

Awesome. Thank you.