Home / Companies / Svix / Blog / Post Details
Content Deep Dive

Improving the Svix SDKs With a New Code Generator

Blog post from Svix

Post Details
Company
Date Published
Author
Jonas Platte
Word Count
1,833
Company Posts That Month
3
Language
English
Hacker News Points
-
Post removed?
No
Summary

The Svix SDKs have been overhauled with a new code generator, which aims to simplify the development process for building secure and reliable webhook platforms. The old scheme of having internal generated code and hand-written public API was replaced by generating high-level APIs using a templating engine. This allowed for consistency across languages and reduced manual work required when adding new endpoints. The new tool uses MiniJinja, a Rust implementation of Jinja2, to generate templates that were previously written in mustache. The generator has resulted in smaller JavaScript bundles and improved maintainability, with the only hand-written parts being those not directly related to API calls. The effort also enabled a rewrite of the CLI from Go to Rust, achieving parity with the old codebase without much additional work.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.