Better HN
topnewbestaskshowjobs
Log inSign up

Andydy25

28 karma · joined Dec 3, 2021 (4y ago) · 7 submissions

Building Respan: an open-source Rust AI gateway built around plugins, with hosted observability and evals.

https://github.com/respanai/respan-gateway

Submissions

comment 1mo ago · link · parent

Yeah, ours are more like GStreamer’s statically compiled plugins. We might consider WebAssembly in the future if there’s a need for it.

comment 1mo ago · link · parent

We do have an official build on GitHub Releases with first-party plugins built in.

comment 1mo ago · link · parent

We had a Docker image, but pulled it before launch because some APIs might still change. You have to build the Docker images, but we have GitHub releases for binaries.

We have configurable template plugins for common things like adding vendors and formats. No rebuild needed for config changes, but if you want custom logic beyond those templates, you need to compile it in.

And yes, crates still have supply-chain risks. I just meant you can review the source you’re adding, unlike a binary you don’t know.

comment 1mo ago · link · parent

Yes, we used Claude to generate code, but we reviewed every line ourselves. For MCP, we considered rmcp, but our gateway needs hooks at each processing stage, so we would still have needed substantial custom logic. We ultimately implemented the MCP support ourselves.

comment 1mo ago · link · parent

The plugins are natively compiled Rust crates, not interpreted or dynamically loaded.

We considered WASM and libloading, but plugins often require database connections or other privileges. With WASM, supporting that would be the SDK’s responsibility.

Dynamic loading with libloading didn’t offer enough benefit for this design, so we chose modular crates compiled into the application.

comment 1mo ago · link · parent

In Respan, plugins are not arbitrary executables that you download from a random repository. They are modular crates that you compile into your application.

Plugins offer better interface boundaries. For example, you can implement a PII feature without having to touch the logging, billing, or provider subsystems.

7.

Launch HN: Respan (YC W24) – Open-source Rust AI gateway built around plugins

53 points · by Andydy25 · 1mo ago · 24 comments