0.4.4 • Published 1 day ago

@backstage/plugin-catalog-graph v0.4.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 day ago

catalog-graph

Welcome to the catalog graph plugin! The catalog graph visualizes the relations between entities, like ownership, grouping or API relationships.

The plugin comes with these features:

  • EntityCatalogGraphCard: A card that displays the directly related entities to the current entity. This card is for use on the entity page. The card can be customized, for example filtering for specific relations.

  • CatalogGraphPage: A standalone page that can be added to your application providing a viewer for your entities and their relations. The viewer can be used to navigate through the entities and filter for specific relations. You can access it from the EntityCatalogGraphCard.

  • EntityRelationsGraph: A react component that can be used to build own customized entity relation graphs.

Usage

To use the catalog graph plugin, you have to add some things to your Backstage app:

  1. Add a dependency to your packages/app/package.json, run:
     yarn add @backstage/plugin-catalog-graph
  2. Add the CatalogGraphPage to your packages/app/src/App.tsx:

    <FlatRoutes>
      …
      <Route path="/catalog-graph" element={<CatalogGraphPage />} />…
    </FlatRoutes>

    You can configure the page to open with some initial filters:

    <Route
      path="/catalog-graph"
      element={
        <CatalogGraphPage
          initialState={{
            selectedKinds: ['component', 'domain', 'system', 'api', 'group'],
            selectedRelations: [
              RELATION_OWNER_OF,
              RELATION_OWNED_BY,
              RELATION_CONSUMES_API,
              RELATION_API_CONSUMED_BY,
              RELATION_PROVIDES_API,
              RELATION_API_PROVIDED_BY,
              RELATION_HAS_PART,
              RELATION_PART_OF,
              RELATION_DEPENDS_ON,
              RELATION_DEPENDENCY_OF,
            ],
          }}
        />
      }
    />
  3. Bind the external routes of the catalogGraphPlugin in your packages/app/src/App.tsx:

    bindRoutes({ bind }) {
      …
      bind(catalogGraphPlugin.externalRoutes, {
        catalogEntity: catalogPlugin.routes.catalogEntity,
      });
      …
    }
  4. Add EntityCatalogGraphCard to any entity page that you want in your packages/app/src/components/catalog/EntityPage.tsx:

    <Grid item md={6} xs={12}>
      <EntityCatalogGraphCard variant="gridItem" maxHeight={400} />
    </Grid>
0.4.5-next.2

3 days ago

0.4.5-next.1

10 days ago

0.4.5-next.0

17 days ago

0.4.4

24 days ago

0.4.4-next.1

1 month ago

0.4.4-next.0

1 month ago

0.4.3

1 month ago

0.4.2

2 months ago

0.4.1

2 months ago

0.4.1-next.2

2 months ago

0.4.1-next.1

2 months ago

0.4.1-next.0

2 months ago

0.4.0

3 months ago

0.4.0-next.3

3 months ago

0.4.0-next.2

3 months ago

0.3.4-next.1

3 months ago

0.3.4-next.0

4 months ago

0.3.3

4 months ago

0.3.3-next.2

4 months ago

0.3.3-next.1

4 months ago

0.3.3-next.0

5 months ago

0.3.2

5 months ago

0.3.2-next.3

5 months ago

0.3.2-next.2

5 months ago

0.3.2-next.1

5 months ago

0.2.35-next.0

9 months ago

0.2.36-next.3

8 months ago

0.2.36-next.2

8 months ago

0.2.36-next.1

8 months ago

0.2.32-next.2

10 months ago

0.2.32-next.1

10 months ago

0.2.38-next.1

6 months ago

0.2.38-next.2

6 months ago

0.2.38-next.0

7 months ago

0.2.37-next.2

7 months ago

0.2.37-next.0

8 months ago

0.2.37-next.1

7 months ago

0.2.33-next.2

9 months ago

0.2.33-next.0

10 months ago

0.2.33-next.1

9 months ago

0.3.0

6 months ago

0.3.1

6 months ago

0.3.2-next.0

6 months ago

0.2.37

7 months ago

0.2.36

8 months ago

0.2.35

9 months ago

0.2.34

9 months ago

0.2.33

9 months ago

0.2.32

10 months ago

0.2.32-next.0

11 months ago

0.2.31-next.3

11 months ago

0.2.31-next.2

11 months ago

0.2.31

11 months ago

0.2.30-next.1

1 year ago

0.2.30-next.2

1 year ago

0.2.31-next.1

12 months ago

0.2.31-next.0

12 months ago

0.2.30

12 months ago

0.2.30-next.0

1 year ago

0.2.29-next.3

1 year ago

0.2.29

1 year ago

0.2.29-next.0

1 year ago

0.2.29-next.1

1 year ago

0.2.29-next.2

1 year ago

0.2.28-next.1

1 year ago

0.2.28-next.0

1 year ago

0.2.28-next.2

1 year ago

0.2.27

1 year ago

0.2.28

1 year ago

0.2.26-next.2

1 year ago

0.2.26-next.1

1 year ago

0.2.26

1 year ago

0.2.27-next.0

1 year ago

0.2.27-next.1

1 year ago

0.2.27-next.2

1 year ago

0.2.24-next.1

1 year ago

0.2.24-next.0

1 year ago

0.2.26-next.0

1 year ago

0.2.24-next.3

1 year ago

0.2.24-next.2

1 year ago

0.2.24-next.4

1 year ago

0.2.25

1 year ago

0.2.24

1 year ago

0.2.23

1 year ago

0.2.22

2 years ago

0.2.23-next.0

2 years ago

0.2.23-next.1

2 years ago

0.2.22-next.0

2 years ago

0.2.22-next.1

2 years ago

0.2.22-next.2

2 years ago

0.2.21

2 years ago

0.2.21-next.0

2 years ago

0.2.21-next.2

2 years ago

0.2.21-next.1

2 years ago

0.2.19-next.0

2 years ago

0.2.19-next.1

2 years ago

0.2.19-next.2

2 years ago

0.2.19-next.3

2 years ago

0.2.20-next.0

2 years ago

0.2.20-next.1

2 years ago

0.2.20

2 years ago

0.2.19

2 years ago

0.2.18

2 years ago

0.2.18-next.0

2 years ago

0.2.18-next.1

2 years ago

0.2.17

2 years ago

0.2.17-next.2

2 years ago

0.2.17-next.0

2 years ago

0.2.17-next.1

2 years ago

0.2.16

2 years ago

0.2.15

2 years ago

0.2.14

2 years ago

0.2.16-next.0

2 years ago

0.2.16-next.1

2 years ago

0.2.16-next.2

2 years ago

0.2.16-next.3

2 years ago

0.2.14-next.0

2 years ago

0.2.13

2 years ago

0.2.7-next.0

2 years ago

0.2.9-next.0

2 years ago

0.2.12

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.10-next.0

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.3

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.2

2 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago