Skip to main content

How it works

Under the hood, Genzy is using JavaScript's Proxy API to intercept all method calls and gather the required information for registring the routes.

Genzy keeps all services in it's own internal service registry, and implements Dependency Inversion principle. The registry contains all services from a GenzyContainer, and is injected as a first parameter of every service constructor.

Client is using Axios for sending HTTP requests.

Server is using Express for creating a web API. It implements the custom logic for creating OpenAPI documentation based on the information gathered from the GenzyContainer services. SwaggerUI is created using the swagger-ui-express library.