Backstage Software Templates
Backstage's scaffolder turns a golden path into a form in the portal. A developer fills in a few fields, presses Create, and the scaffolder runs a list of actions: fetch and render the skeleton, publish a repository, register it in the catalog, open a pull request elsewhere. The template is itself a catalog entity, kind: Template, written in YAML and stored in Git like everything else.
A template for linkly-style services
yaml
apiVersion: scaffolder.backstage.io/v1beta3
kind: Template
metadata:
name: go-service
title: Go HTTP service
description: A Go service with CI, a Helm chart, GitOps delivery, dashboards and SLOs.
tags: [go, recommended]
spec:
owner: group:team-platform
type: service
parameters: # the form: JSON Schema, one object per form page
- title: About the service
required: [name, owner]
properties:
name:
title: Name
type: string
pattern: '^[a-z][a-z0-9-]{1,28}[a-z0-9]