Installing the Template Builder Frontend Plugin#
This guide will help you install and set up the Template Builder frontend plugin in your Backstage instance.
Prerequisites#
Before installing the plugin, ensure you have:
- A working Backstage instance (version 1.30.0 or higher)
- Access to modify your Backstage frontend configuration
- The Backstage Scaffolder plugin installed and configured
Installation Steps#
1. Add the Package#
Install the plugin package using your package manager:
2. Add Route (New Frontend System - Alpha)#
The plugin supports the new frontend system. Add it to your app:
// packages/app/src/App.tsx
import { createApp } from '@backstage/frontend-defaults';
import { templateBuilderPlugin } from '@terasky/backstage-plugin-template-builder/alpha';
export default createApp({
features: [
// ... other features
templateBuilderPlugin,
],
});
This will automatically register the /template-builder route.
3. Add Route (Legacy System)#
If using the legacy routing system, add the route manually:
// packages/app/src/App.tsx
import { TemplateBuilderPage } from '@terasky/backstage-plugin-template-builder';
// Add to your routes
<Route path="/template-builder" element={<TemplateBuilderPage />} />
4. Add Entity Action (Optional)#
To enable quick access from template entity pages, add the entity action:
// packages/app/src/components/catalog/EntityPage.tsx
import { TemplateEditorCard } from '@terasky/backstage-plugin-template-builder';
// In your template entity page
const templatePage = (
<EntityLayout>
<EntityLayout.Route path="/" title="Overview">
<Grid container spacing={3}>
{/* ... other cards ... */}
<Grid item md={12}>
<TemplateEditorCard />
</Grid>
</Grid>
</EntityLayout.Route>
</EntityLayout>
);
Verification#
After installation, verify that:
- The plugin appears in your package.json dependencies
- The
/template-builderroute is accessible - The editor loads without errors
- Field extensions are properly discovered
- Actions appear in the action palette
Next Steps#
After successful installation, proceed to:
- Configuration Guide - Configure default settings
- Overview - Learn about all features
Support#
For additional help:
- Check the GitHub Issues
- Review the plugin documentation
- Contact the TeraSky support team