https://github.com/cyclops-ui/backstage-plugins
Cyclops backstage plugins
https://github.com/cyclops-ui/backstage-plugins
Last synced: about 1 year ago
JSON representation
Cyclops backstage plugins
- Host: GitHub
- URL: https://github.com/cyclops-ui/backstage-plugins
- Owner: cyclops-ui
- Created: 2024-12-19T14:13:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-09T20:56:25.000Z (over 1 year ago)
- Last Synced: 2025-06-05T14:43:34.371Z (about 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 1.63 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Cyclops Backstage plugins
This repository holds Cyclops backstage plugins. These plugins serve for an easier integration with Backstage for a more full developer platform experience.
Official Cyclops Backstage plugins stored in this repository are:
- Cyclops plugin - allows to manage all Cyclops modules from a single page
- Module plugin - integrates into the Backstage catalog so you can view and edit your Kubernetes application through Backstage
All the plugins and how to configure them are documented in more detail below.
## Cyclops plugin (`plugins/cyclops`)
Lists all Cyclops modules on `/cyclops` so all of the modules can be viewed in a single page. Each module can then be selected and managed separately.

You can create a new Module by clicking the `Add module` button in the top right corner, which will allow you to select a template and enter the configuration through the UI. Once a module is created, you can check its resources and see it on the list above.
Each module can be selected by clicking on its name to list Kubernetes resources deployed for a particular module or to further edit the module.

Through this page, you can view or edit your Kubernetes resources and the module.
### Install
Steps for setting up the plugin on your Backstage app:
1. Have a running Cyclops instance:
- If you don't have a running instance, you can install one by following [this two-command tutorial](https://cyclops-ui.com/docs/installation/install/manifest/)
- Make sure that Cyclops backend (`cyclops-ctrl` pod) is running and is reachable. If you installed with the commands above, your Cyclops instance would be reachable from within the same Kubernetes cluster on `http://cyclops-ctrl.cyclops:8080`
2. Add the plugin to your Backstage instance; you need to add to `packages/app`:
```bash
yarn --cwd packages/app add @cyclopsui/backstage-plugin-cyclops
```
3. Add proxy configuration to your Backstage configuration in `app-config.yaml`
```yaml
proxy:
endpoints:
'/cyclops':
target: 'http://cyclops-ctrl.cyclops:8080'
changeOrigin: true
```
4. Register routes in `packages/app/src/App.tsx`
```tsx
import {CyclopsModulePage, CyclopsPage} from '@cyclopsui/backstage-plugin-cyclops';
const routes = (
...
} />
} />
...
);
```
5. Add the plugin button to the sidebar. In file `packages/app/src/components/Root/Root.tsx`
```tsx
export const Root = ({ children }: PropsWithChildren<{}>) => (
...
...
);
```
You should now be able to see the sidebar button leading you to the list of modules, as shown in the image above.
## Module plugin (`plugins/cyclops-modules`)
Shows Cyclops module data as part of the Backstage catalog. This plugin allows you to add the page for Module details and edit your Modules through a new tab in your Component details page.

You can view Kubernetes resources deployed for a Module (check status, list logs) as well as perform actions like reconciling Modules or restarting workloads.
If you click the `Edit` button, you will be able to see the UI for editing that specific Module.

Module plugin communicates with an existing Cyclops backend instance running in your cluster. All requests going from your Backstage app to the Cyclops backend are proxied through the Backstage backend, so all of the requests are authenticated.
The Module plugin will fetch the Module called the same as the component. In this case, the component is called `example-website`, and the Cyclops plugin will fetch a Module called `example-website`. With future improvements, we plan to enable mapping between Component names and Cyclops Modules via annotations so that the names of the components and Modules don't have to be the same, allowing for more flexibility.
Steps for setting up the plugin on your Backstage app:
1. Have a running Cyclops instance:
- If you don't have a running instance, you can install one by following [this two-command tutorial](https://cyclops-ui.com/docs/installation/install/manifest/)
- Make sure that Cyclops backend (`cyclops-ctrl` pod) is running and is reachable. If you installed with the commands above, your Cyclops instance would be reachable from within the same Kubernetes cluster on `http://cyclops-ctrl.cyclops:8080`
2. Add the plugin to your Backstage instance, you need to add to `packages/app`:
```bash
yarn --cwd packages/app add @cyclopsui/backstage-plugin-cyclops-modules
```
3. Add proxy configuration to your Backstage configuration in `app-config.yaml`
```yaml
proxy:
endpoints:
'/cyclops':
target: 'http://cyclops-ctrl.cyclops:8080'
changeOrigin: true
```
4. Add Module plugin component to your catalog. Go to file `packages/app/src/components/catalog/EntityPage.tsx` and import Cyclops component:
```tsx
import {ModuleDetailsComponent} from "@cyclopsui/backstage-plugin-cyclops-modules";
```
Now you just need to add the Cyclops component to the entity. For example, if you want to add Cyclops tab for a Website component, find `websiteEntityPage` and the Cyclops tab by pasting the code below:
```tsx
```
Your Backstage catalog can now view and edit deployed Modules in your cluster.
This plugin can't deploy new Modules and can only give you an overview of existing ones.