Electrode Native API Generator
JSON →ern-api-gen is a foundational component of the Electrode Native ecosystem, designed to automate the creation of React Native API projects. It processes a Swagger (OpenAPI 2.x) schema to generate client-side API code for JavaScript (React Native), Android (Java), and iOS (Swift). This generated code leverages `react-native-electrode-bridge` to enable robust bi-directional message exchange between the native and JavaScript layers. While built upon the principles of Swagger Codegen 2.x, `ern-api-gen` introduces custom generators like `ErnAndroidApiCodegen` and `ErnES6ApiCodegen`, specifically adapted for Electrode Native's architecture and differing significantly in ES6 generation compared to upstream Swagger. Currently at version 0.54.0, the package maintains an active development pace, frequently releasing updates to ensure compatibility with evolving React Native versions (e.g., 0.81) and addressing various build and dependency-related issues. Its primary role is as a command-line interface (CLI) tool, deeply integrated into the Electrode Native CLI for streamlined API project scaffolding within a monorepo-like development workflow.
Traffic · last 30 days ↓64% vs prev 7d
top countries 🇨🇦 Canada · 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇮🇳 India