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

The new Nhost JavaScript SDK: generated, simplified, isomorphic

Blog post from Nhost

Post Details
Company
Date Published
Author
Nuno Pato
Word Count
1,036
Language
English
Hacker News Points
-
Summary

Nhost has launched a redesigned JavaScript Software Development Kit (SDK) and redefined its approach to SDK maintenance, addressing prior inefficiencies by creating a direct 1:1 mapping between API specifications and SDK implementations. This new architecture replaces complex state machines with straightforward, auto-generated code derived from OpenAPI specifications, ensuring consistency and simplifying maintenance by consolidating all functionalities into a single @nhost/nhost-js package. The revamped SDK supports universal JavaScript environments like Node.js, browsers, and React Native, eliminating the need for framework-specific packages and reducing maintenance burdens. The new structure also enhances compatibility with language models and code generation tools by providing explicit function signatures that directly map to API endpoints, improving accuracy in code suggestions and generation. This system prepares Nhost for multi-language support, with plans to expand beyond JavaScript into languages such as Golang and Python based on community demand. Users are encouraged to transition to the new SDK for a better development experience, though existing packages will still receive security updates for a limited time.