Your UI speaks JSON. Your services do not have to.
The browser should stay on simple requests and readable responses. Behind that wall, you want internal calls to stay compact and aligned on one schema. The slow part is not the idea. It is wiring the translation layer, generating matching stubs, and getting three processes to agree on ports and health checks.
Express FastAPI Protobuf is a quote recommender you can run locally to see that split as a working reference, not a diagram.
JSON for the browser. Binary between the services.
What you get
- A clear edge pattern. The web app talks familiar HTTP JSON to a middle layer that validates input before it speaks binary to the Python API.
- One schema, two generated clients. Shared definitions drive generated code on both sides of the boundary, with lint and breaking-change checks in the automation.
- Something to click through. Browse quotes by tag with pagination over thousands of rows from a bundled dataset.
- A local dev loop. Hot reload across services, health endpoints, and Makefile targets to set up, generate, start, and stop the stack.
- Honest size talk. The repository documents illustrative JSON versus binary comparisons. Your savings depend on schema and traffic, so measure your own paths.
- Free and open source. MIT licensed, published on GitHub.
Your first morning after cloning
Picture an illustrative first session. You run the documented setup, then start the stack. The browser opens on the quote UI. You pick a tag, page through results, and watch the middle layer accept JSON while the Python service answers in binary. You tweak a shared schema file, regenerate, and restart to see both runtimes pick up the same shape. That is the loop this repo is meant to teach.
Ready to try it?
- Browse the repository on GitHub for prerequisites, Makefile commands, and the architecture walkthrough in the README.






