104 karma · joined September 6, 2017
Glue is an IDL and toolchain that aims to empower you to have a single source of truth for your data models (i.e., structs) and interfaces (i.e., REST/RPC).
The home page has an interactive mini IDE where you can generate code on the fly for multiple targets (compiled the codegen into WASM).
To preempt a few questions, I am writing a blog post to give some motivation for this project and where I think other solutions fall a bit short.
Even if this post is lost in the HN abyss, here's hoping this is useful for someone! Please feel free to raise issues on GH or write them here.
Code is here: https://github.com/guywaldman/glue
My main motivation was a gap in the Rust ecosystem for this, as well as a desire to have reasonable abstractions for model alignment, agents and structured response generation with error correction.
In addition, Ollama is a first-class citizen so local LLMs are supported (it calls the locally hosted APIs which Ollama exposes).
And as a last point, it’s just a fun project to hack on. If you have suggestions for similar abstractions I missed, please let me know!