9/4 demo: Making your AI smarter and more accurate for real projects

Announcing Visual Copilot - Figma to production in half the time

Builder.io
Builder.io
Contact sales

9/4 demo: Making your AI smarter and more accurate for real projects

Announcing Visual Copilot - Figma to production in half the time

When you create a Builder Project using the prompt box on the projects page, Builder uses a starter template. The default template is React + Vite, but you can create a template using your preferred framework and your own repo.

A starter template is a collection of predefined project settings that includes:

  • Connected repository configuration
  • Development server port settings
  • Build scripts
  • Other project-specific configurations

Builder Projects automatically applies these settings when creating a new project from the template to eliminating manual configuration steps.

  • Starter template changes, such as creating, modifying, or deleting a template, it affects all users in the Space.
  • Only users with permissions to modify project settings can create and modify starter templates. This typically includes developers and admins, or users with specific roles that have been assigned this permission. For more information, see Fusion roles and permissions.

To use a Projects starter template:

  1. Go to Projects.
  2. At the bottom of the Projects input, select the template you'd like for your project. The default is React + Vite, but you can add your own starters based on your repos.

To create your own starter template for Projects to use when creating projects:

  1. Go to Projects.
  2. In the Projects input, select Edit Starter Templates.
  3. In the Starter Templates dialogue, click the New Starter Template button.
  4. Enter a Name and Description for the new starter. Note that if you don't have any repos connected, Builder prompts you to connect a repo.
  5. Optional: to set a template as the default, click the star icon to the right.
  6. Optional: to hide or show a template, toggle the eyeball icon.

As an alternative to creating the starter from the dropdown, you can create a starter template directly from a connected repo:

  1. Click the three dots on the upper right of a connected repo tile.
  2. Choose Create starter template and continue with step 4 above.

The video below shows going into Projects and creating a new starter template based on a connected repo.

When you create or edit a starter template, there are a number of settings you can adjust to the needs of your project:

FieldExplanation

Name

Name that displays in the dropdown for selecting the starter template

Description

Description of the purpose of the given template

Development Server Port

The port number when serving on localhost. This depends on your framework and local setup.

Setup Script

A script that perpares a project for use by installing dependencies and configuring settings; for example, npm install, yarn install, pnpm install

Development Server Command

Command to start local dev server. Examples include npm start, npm run dev, yarn start

Main Branch Name

Determined by your repo, but often main.

Environment Variables

Key value pairs to configure app settings. Check the Secret checkbox to hide the value in the Projects UI. Paste an entire .env file into the Key field to quickly add multiple environment variables.

Memory Limit

Amount of memory given to the virtual machine. Available values begin at 1 GB with a maximum of 16 GB. Higher limits are available on Enterprise plans.

Commit Mode

For pull requests, choose from Direct Commit, Draft Pull Requests, or Pull Requests

Node.js Version

Choose the version of Node.js

Docker Image Path

The container image to use for running your application

Error Ignore Patterns

Regex filters that suppress error popups for specific client-side errors you want to ignore during development.

Deleting a starter template deletes the template for all users. To delete a starter template:

  1. Go to Projects.
  2. In the Projects input, select Edit Starter Templates.
  3. In the Starter Templates dialogue, hover over the template you'd like to delete and click the trash can icon.
  4. Confirm deletion by clicking the OK button.

The next video shows deleting an example Docs Demo starter template and confirming it's no longer in the list of starter templates.

Using a starter template gives Fusion information for setting up projects based on your existing projects. For more information, see Add Context to Projects.

Was this article helpful?

Product

Visual CMS

Theme Studio for Shopify

Sign up

Login

Featured Integrations

React

Angular

Next.js

Gatsby

Get In Touch

Chat With Us

Twitter

Linkedin

Careers

© 2020 Builder.io, Inc.

Security

Privacy Policy

Terms of Service

Get the latest from Builder.io

By submitting, you agree to our Privacy Policy

  • Fusion

  • Publish

  • Product Updates

  • Figma to Code Guide

  • Headless CMS Guide

  • Headless Commerce Guide

  • Composable DXP Guide

Security

Privacy Policy

SaaS Terms

Compliance

Cookie Preferences

Gartner Cool Vendor 2024