# Platform concept

Our default modules (default-catalog, default-img, default-vsf) implement the abstract platform concept. Here is how it works:

# Select platform in the configuration

The local.json and default.json files include the platform property:

  "platform": "magento2",

The config file is also prepared for storing some additional platform-related information (example).

# Create a driver

Based on this setting, Storefront API Platform Factory selects the backend platform driver.

Then, the Express.js API handler (example) calls the proper request handler.

Note: The platform driver is in charge of adapting the input and output data from the normalized (platform agnostic) data formats to the platform specific format. It usually calls the platform specific API inside.