# @dweber019/backstage-plugin-accentuate

> Welcome to the accentuate plugin.

Latest version **0.1.2** (published 2025-12-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dweber019/backstage-plugin-accentuate
pnpm add @dweber019/backstage-plugin-accentuate
yarn add @dweber019/backstage-plugin-accentuate
bun add @dweber019/backstage-plugin-accentuate
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2025-12-19 |
| First published | 2024-04-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 16 |
| Unpacked size | 110.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 45 |
| Maintainers | dweber019 |

## Links

- npm: https://www.npmjs.com/package/@dweber019/backstage-plugin-accentuate
- Repository: https://github.com/dweber019/backstage-plugins
- Homepage: https://github.com/dweber019/backstage-plugins/tree/main/plugins/accentuate
- Issues: https://github.com/dweber019/backstage-plugins/issues
- npm.io page: https://npm.io/package/@dweber019/backstage-plugin-accentuate

## Dependencies (16)

- [react-use](https://npm.io/package/react-use.md) ^17.5.0
- [@rjsf/core](https://npm.io/package/@rjsf/core.md) 5.20.1
- [@rjsf/utils](https://npm.io/package/@rjsf/utils.md) 5.20.1
- [@backstage/types](https://npm.io/package/@backstage/types.md) ^1.2.2
- [@material-ui/lab](https://npm.io/package/@material-ui/lab.md) 4.0.0-alpha.61
- [@backstage/errors](https://npm.io/package/@backstage/errors.md) ^1.2.7
- [@material-ui/core](https://npm.io/package/@material-ui/core.md) ^4.12.2
- [@rjsf/material-ui](https://npm.io/package/@rjsf/material-ui.md) 5.20.1
- [@material-ui/icons](https://npm.io/package/@material-ui/icons.md) ^4.11.3
- [@rjsf/validator-ajv8](https://npm.io/package/@rjsf/validator-ajv8.md) 5.20.1
- [@backstage/catalog-model](https://npm.io/package/@backstage/catalog-model.md) ^1.7.6
- [@backstage/plugin-catalog](https://npm.io/package/@backstage/plugin-catalog.md) ^1.32.1
- [@backstage/core-components](https://npm.io/package/@backstage/core-components.md) ^0.18.4
- [@backstage/core-plugin-api](https://npm.io/package/@backstage/core-plugin-api.md) ^1.12.1
- [@backstage/plugin-catalog-react](https://npm.io/package/@backstage/plugin-catalog-react.md) ^1.21.4
- [@dweber019/backstage-plugin-accentuate-common](https://npm.io/package/@dweber019/backstage-plugin-accentuate-common.md) ^0.1.2

## Recent versions

- 0.1.2 (latest) — 2025-12-19
- 0.1.1 — 2025-08-15
- 0.1.0 — 2025-06-27
- 0.0.14 — 2025-03-17
- 0.0.13 — 2025-01-20
- 0.0.12 — 2024-12-28
- 0.0.11 — 2024-10-21
- 0.0.10 — 2024-09-25
- 0.0.9 — 2024-08-29
- 0.0.8 — 2024-08-24
- 0.0.7 — 2024-07-29
- 0.0.6 — 2024-07-20
- 0.0.5 — 2024-07-06
- 0.0.4 — 2024-06-02
- 0.0.3 — 2024-05-15
- … 2 more at https://npm.io/package/@dweber019/backstage-plugin-accentuate/versions

## README

# Accentuate Plugin

Welcome to the accentuate plugin.

This plugin provides the ability to overwrite entities in the UI without change the backing YAML definition from SCM.

Provided are the following functionalities:

- Component to show that an entity has been overwritten
- Component to edit entities based on JSON schemas
- Page to get an overview what has been overwritten
- Backend storing additional data in the database and responsible for merging

Future ideas:

- Provide ability to create entities
- Integrate in inspect dialog

![entity-json-schema-editor](./docs/entity-json-schema-editor.png)

## Setup

Install this plugin:

```bash
# From your Backstage root directory
yarn --cwd packages/app add @dweber019/backstage-plugin-accentuate
```

### Configuration

You need to have the [accentuate backend plugin](../accentuate-backend/README.md) configured.

#### Allowed kinds

You can configure which entity kind (e.g. Group) are modifiable by the plugin by using

```yaml
accentuate:
  allowedKinds:
    - kind: 'User'
    - kind: 'Group'
    - kind: 'Group'
    - kind: 'Component'
    - kind: 'Resource'
    - kind: 'System'
    - kind: 'Domain'
```

The list above is the default.

You can even more specific control the allowed entities over the `spec.type` with

```yaml
accentuate:
  allowedKinds:
    - kind: 'Component'
      specType: 'service'
```

This could mean only components of type service are allowed to be accentuated.

#### Annotations

You can use the following annotation to disable modification on a per-entity level

```yaml
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: component-accentuate
  annotations:
    accentuate/disable: 'true'
spec: ...
```

### Entity Pages

You have two options to show and edit an entity.

#### Info banner

![entity-info-banner](./docs/entity-info-banner.png)

For this implement the `EntityAccentuateInfo` like

```tsx
// packages/app/src/components/catalog/EntityPage.tsx

import {
  EntityAccentuateInfo,
  isAccentuateEnabled,
} from '@dweber019/backstage-plugin-accentuate';

const entityWarningContent = (
  <>
    ...
    <EntitySwitch>
      <EntitySwitch.Case if={isAccentuateEnabled}>
        <Grid item xs={12}>
          <EntityAccentuateInfo />
        </Grid>
      </EntitySwitch.Case>
    </EntitySwitch>
  </>
);
```

#### Context menu

![entity-context-menu](./docs/entity-context-menu.png)

For this implement the `EntityAccentuateInfo` like

```tsx
// packages/app/src/components/catalog/EntityPage.tsx

import { EntityLayoutWrapper } from '@dweber019/backstage-plugin-accentuate';

const serviceEntityPage = (
  <EntityLayoutWrapper>
    <EntityLayout.Route path="/" title="Overview">
      {overviewContent}
    </EntityLayout.Route>
    ...
  </EntityLayoutWrapper>
);
```

> If you are other plugins using context menu, you most probably have to reimplement this you own.

### Overview page

![page-overview](./docs/page-overview.png)

To add the overview page you have to add the page at

```tsx
// packages/app/src/App.tsx

import { AccentuatePage } from '@dweber019/backstage-plugin-accentuate';

const routes = (
  <FlatRoutes>
    ...
    <Route path="/accentuate" element={<AccentuatePage />} />
  </FlatRoutes>
);
```

Then extend the navigation like

```tsx
// packages/app/src/components/Root/Root.tsx

import BrushIcon from '@material-ui/icons/Brush';

export const Root = ({ children }: PropsWithChildren<{}>) => (
  <SidebarPage>
    <Sidebar>
      <SidebarGroup label="Menu" icon={<MenuIcon />}>
        <SidebarScrollWrapper>
          ...
          <SidebarItem icon={BrushIcon} to="accentuate" text="Accentuate" />
        </SidebarScrollWrapper>
      </SidebarGroup>
    </Sidebar>
    {children}
  </SidebarPage>
);
```

## Icon

Thanks to [Dust icons created by Konkapp - Flaticon](https://www.flaticon.com/free-icons/dust) for the icon.

---
_Source: https://npm.io/package/@dweber019/backstage-plugin-accentuate · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
