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

Custom code regions: SDK customization without limits

Blog post from Speakeasy

Post Details
Company
Date Published
Author
Emre Tezisci
Word Count
620
Language
English
Hacker News Points
-
Summary

Custom Code Regions is a new feature designed to provide developers with enhanced flexibility and control over their SDKs by allowing them to embed custom code directly into specific parts of a generated SDK. This innovative feature uses foldable region syntax to define areas in the codebase for personalized logic, which are preserved during SDK regenerations, ensuring that customizations persist without altering the OpenAPI specification. By facilitating the integration of custom methods, third-party libraries, and bespoke functionalities, Custom Code Regions offer an alternative to traditional customization tools such as overlays and hooks, which often require modifications to the OpenAPI spec or programmatic adjustments during the generation process. This feature is currently available for enterprise customers using TypeScript and Python SDKs generated with the latest Speakeasy CLI, with plans to expand support to additional languages in the future.