New guide: AI is in production. Is your governance?

Announcing Visual Copilot - Figma to production in half the time

Builder.io
Builder.io
Contact sales

New guide: AI is in production. Is your governance?

Announcing Visual Copilot - Figma to production in half the time

You can skip manual integration and let Builder's Devtools handle the details for you.

Builder Devtools automatically integrates your app with Builder and provides an intuitive UI for registering components and managing content.

The video below is a guided example of integrating with Devtools with Next.js Gen 1. Though the video uses Next.js Gen 1 specifically, the process is the same for Gen 2, in any of the available frameworks.

In the root of your project, run the following command to install Builder Devtools:

npm init builder.io@latest

When prompted, respond Yes to integrating with Builder.io:

Screenshot of terminal prompt that asks "Would you like to integrate Builder.io with this app?". There are two options, Yes, and Maybe later. Here, "Yes install dependencies and update vite.config.ts" is selected.

Tip: If you're using React Webpack and Vite, you can skip this part as you've already covered it above. React Webpack and Vite require adding a route, so the UI is slightly different.

With the development server running, access the Builder Devtools UI:

  1. Open your web browser and navigate to your project's local development URL; for example, http://localhost:3000/ or http://localhost:5173/. (The port might be different for you.) Builder's Devtools are displayed in the browser instead of your app's landing page.
  2. Click the Let's get started button.
  3. Choose a Space to authorize for integration and click Authorize.
  4. Click the Go to your app button.
  5. On the bottom right, click on the Builder logo to get to your components, settings, and to add a Builder Page.

If you're using Windows, you might need to restart your dev server.

The video below shows authorizing and connecting to a Builder Space.

enterprise plans

The Devtools drawer displays all of your components, both registered and unregistered. From here, you can:

  • Register components: toggle components on to register them with Builder.
  • View and edit registered components: Interact with your registered components directly from the Devtools UI. You can rename, register, and edit inputs.
  • Visualize content: Display content that's in Builder and click on an overlay to jump into any Builder element directly in the Visual Editor.

To register your components with Builder:

  1. Open the Devtools drawer by clicking on the Builder logo on the bottom right.
  2. Click Components to display all of the components, registered or not, in your code base.
  3. Select a component.
  4. Toggle on to register the component. The code to register the component is added automatically to your code.

The next video shows this process by registering a Counter component:

The next video shows registering a component and editing its name in Devtools. At the end of the video, notice that the Devtools edit that changes the component's name from Footer to MyFooter, updates in the code editor.

When registering components, Devtools can recognize most input types; however, more complex types require manual coding. If you want to add lists and objects, read about them in Input Types in Builder.

Devtools is under active development, and we'd love to know what you think. Your feedback helps us meet the real-world needs of Builder's community and we couldn't do it without you!

With your app and Builder working together, the next step is the fun part — add some pages in Builder and drag in some elements. Play with styles and explore the UI.

Deploy your updated app to a preview environment

Integrate Custom Components

Was this article helpful?