Documentation
Feedback
Guides
App Development

App Development
Manifest
Builders

Learn what VTEX IO Builders are and how to use them.

Builders play a pivotal role in streamlining app development. They are the orchestrators of VTEX IO apps, responsible for processing, validating, and passing on a specific block of code to a runtime or framework capable of executing it. This article will teach you what Builders are and how to use them effectively.

Understanding Builders

In practical terms, a Builder acts like a bridge that allows different parts of your app to work together by configuring and connecting to the necessary services. Each Builder operates under its unique set of rules and validation processes, acting as gateways to an IO app's functionalities.

By having very well-defined and minimal responsibilities, a Builder can evolve independently, allowing for rapid development with minimal disruptive changes.

Using Builders

Builders are specified in an app's manifest.json file, and the app itself is neatly structured with folders bearing the Builder's names. This organization ensures that each Builder knows precisely which code to process.

{"base64":"  ","img":{"width":1560,"height":1166,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":303595,"url":"https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/vtex-io-documentation-builders.png"}}

When you run a VTEX IO app, each Builder converts the files included in its corresponding folder into configurations for the competent services. This means an app can have as many Builders as you want, enabling the bundling of both frontend and backend development into a single package.

For more information on the available Builders, see the List of Builders section.

To use Builders, ensure that you have at least vtex.builder-hub@0.293.4 version installed in your account.

Example

Suppose you want to develop a React frontend component with VTEX IO. For this, you will need to use a Builder that offers a React renderer, namely, the react Builder. To do that, you must declare the react Builder in your app's manifest.json file, as in the following:


_10
"builders": {
_10
"react": "3.x"
_10
}

Then, in your app's root directory, you must create a folder named after the Builder (e.g., /react) and place your React code inside it.

When you run your app, the react Builder will transform the React code within the /react folder into compiled bundles, ready to be imported into frontend apps.

List of Builders

This is a non-exhaustive list of VTEX IO Builders:

NameFunctionality
adminExports blocks and routes to the VTEX Admin.
assetsHandles assets used by Store Theme blocks. It gets all asset paths used and uploads them to the VTEX IO database. For more information, refer to the Using the Assets Builder guide.
configurationAllows you to allocate code pertaining to service configurations to an app that's independent of the platform. For more information, refer to the Developing service configuration apps guide.
docsAllows developers to add documentation in the /docs directory, to be published in our Developer Portal. For more information, refer to the Using the Docs Builder to publish app documentation guide.
dotnetInterprets the /dotnet directory, empowering the development of custom backend services.
graphqlProcesses GraphQL API's and schemas by interpreting .graphql and .gql files contained in the app's /graphql directory.
servicesFetches service workers exported by the account's installed apps and bundles them in a single file, enabling the store to work with several service workers simultaneously. You can learn how to use it by accessing the recipe on Using several service workers in your store.
stylesExports CSS configurations for Store Framework blocks. When building your app, the Styles Builder reads the styles/styles.json file and uses a Tachyons generator to properly produce your store's CSS.
storeInterprets and validates the blocks, interfaces and routes contained in the theme app's /store directory, powering Store Framework store's components and building the storefront.
messagesExports localized string messages, empowering VTEX IO internationalization. It reads .json files associated with different locales within the app's /messages directory and makes them available for frontend applications to use via react-intl.
nodeInterprets the /node directory, empowering the development of custom backend services using Typescript. For more information, refer to the Services guides.
paymentProviderAllows to implement payment connectors using the Payment Provider Framework (PPF). The framework natively provides access to the Payment Provider Protocol (PPP) API endpoints within predefined classes. The framework also allows the configuration of payment methods and uses the Secure Proxy for card transactions.
pixelProcesses the source-code and configuration of Pixel Apps in VTEX IO. The files picked up by this Builder are located in the app's /pixel directory. For more information, refer to the Developing Pixel apps guide.
reactInterprets the /react directory, empowering the development of React components using Typescript. For more information, refer to the Developing frontend apps guide.
Contributors
4
Photo of the contributor
Photo of the contributor
Photo of the contributor
Photo of the contributor
+ 4 contributors
Was this helpful?
Yes
No
Suggest edits (Github)
Contributors
4
Photo of the contributor
Photo of the contributor
Photo of the contributor
Photo of the contributor
+ 4 contributors
On this page