@backstage/core-plugin-api
Home > @backstage/core-plugin-api
Core API used by Backstage plugins
Enumerations
| Enumeration | Description | 
|---|---|
| Enum representing the state of a feature flag (inactive/active). | |
| Session state values passed to subscribers of the SessionApi. | 
Functions
| Function | Description | 
|---|---|
| Provides components in the child react tree an Analytics Context, ensuring all analytics events captured within the context have relevant attributes. | |
| Stores data related to a component in a global store. | |
| Used to infer types for a standalone ApiFactory that isn't immediately passed to another function. | |
| Used to infer types for a standalone ApiFactory that isn't immediately passed to another function. | |
| Creates a reference to an API. | |
| Plain React component extension. | |
| Creates a route descriptor, to be later bound to a concrete route by the app. Used to implement cross-plugin route references. | |
| Creates Backstage Plugin from config. | |
| Used by createComponentExtension() and createRoutableExtension(). | |
| Extension for components that can have its own URL route (top-level pages, tabs etc.). | |
| Create a RouteRef from a route descriptor. | |
| Create a SubRouteRef from a route descriptor. | |
| Retrieves data attached to a component. | |
| Gets a pre-configured analytics tracker. | |
| React hook for retrieving APIs. | |
| React hook for retrieving ApiHolder, an API catalog. | |
| React hook providing AppContext. | |
| useElementFilter is a utility that helps you narrow down and retrieve data from a React element tree, typically operating on the  | |
| React hook for constructing URLs to routes. | |
| React hook for constructing URLs to routes. | |
| React hook for retrieving dynamic params from the current URL. | |
| Wrapper for giving component an API context. | 
Interfaces
| Interface | Description | 
|---|---|
| A querying interface tailored to traversing a set of selected React elements and extracting data. | |
| The feature flags API is used to toggle functionality to users across plugins and Backstage. | |
| Provides a key-value persistence API. | 
Variables
| Variable | Description | 
|---|---|
| The ApiRef of AnalyticsApi. | |
| The ApiRef of AppThemeApi. | |
| Provides authentication towards Atlassian APIs. | |
| Provides authentication towards Bitbucket APIs. | |
| Provides authentication towards Bitbucket Server APIs. | |
| The ApiRef of DiscoveryApi. | |
| The ApiRef of FeatureFlagsApi. | |
| Provides authentication towards GitHub APIs. | |
| Provides authentication towards GitLab APIs. | |
| Provides authentication towards Google APIs and identities. | |
| The ApiRef of IdentityApi. | |
| Provides authentication towards Microsoft APIs and identities. | |
| The ApiRef of OAuthRequestApi. | |
| Provides authentication towards Okta APIs. | |
| Provides authentication towards OneLogin APIs. | |
| Provides authentication towards OpenShift APIs and identities. | |
| The ApiRef of StorageApi. | |
| Provides authentication towards VMware Cloud APIs and identities. | 
Type Aliases
| Type Alias | Description | 
|---|---|
| The alert API is used to report alerts to the app, and display them to the user. | |
| Message handled by the AlertApi. | |
| The Analytics API is used to track user behavior in a Backstage instance. | |
| Analytics context envelope. | |
| Represents an event worth tracking in an analytics system that could inform how users of a Backstage instance are using its features. | |
| A structure allowing other arbitrary metadata to be provided by analytics event emitters. | |
| Represents a tracker with methods that can be called to track events in a configured analytics service. | |
| Catch-all ApiFactory type. | |
| Catch-all ApiRef type. | |
| Catch-all type for ExternalRouteRefs. | |
| Catch-all type for route params. | |
| Catch-all route type. | |
| Describes type returning API implementations. | |
| Provides lookup of APIs through their ApiRefs. | |
| API reference. | |
| API reference configuration - holds an ID of the referenced API. | |
| A set of replaceable core components that are part of every Backstage app. | |
| The central context providing runtime app specific state that plugin views want to consume. | |
| Describes a theme provided by the app. | |
| The AppThemeApi gives access to the current app theme, and allows switching to other options that have been registered as a part of the App. | |
| Information about the auth provider. | |
| Configuration of an authentication request. | |
| This API provides access to the user's identity within Backstage. | |
| Token and Identity response, with the users claims in the Identity. | |
| Plugin type. | |
| User identity information within Backstage. | |
| Props for the  | |
| Common analytics context attributes. | |
| Lazy or synchronous retrieving of extension components. | |
| The Config API is used to provide a mechanism to access the runtime configuration of the system. | |
| The discovery API is used to provide a mechanism for plugins to discover the endpoint to use to talk to their backend counterpart. | |
| The error API is used to report errors to the app, and display them to the user. | |
| Mirrors the JavaScript Error class, for the purpose of providing documentation and optional fields. | |
| Provides additional information about an error that was posted to the application. | |
| Props for the fallback error boundary. | |
| Plugin extension type. | |
| Route descriptor, to be later bound to a concrete route by the app. Used to implement cross-plugin route references. | |
| Feature flag descriptor. | |
| Interface for registering feature flags hooks. | |
| Options to use when saving feature flags. | |
| A wrapper for the fetch API, that has additional behaviors such as the ability to automatically inject auth information where necessary. | |
| IconComponent is the common icon type used throughout Backstage when working with and rendering generic icons, including the app system icons. | |
| The Identity API used to identify and get information about the signed in user. | |
| Creates a SubRouteRef type given the desired parameters and parent route parameters. The parameters types are merged together while ensuring that there is no overlap between the two. | |
| Merges a param object type with an optional params type into a params object. | |
| This API provides access to OAuth 2 credentials. It lets you request access tokens, which can be used to act on behalf of the user when talking to APIs. | |
| Provides helpers for implemented OAuth login flows within Backstage. | |
| Function used to trigger new auth requests for a set of scopes. | |
| Describes how to handle auth requests. Both how to show them to the user, and what to do when the user accesses the auth request. | |
| An array of scopes, or a scope string formatted according to the auth provider, which is typically a space separated list. | |
| This API provides access to OpenID Connect credentials. It lets you request ID tokens, which can be passed to backend services to prove the user's identity. | |
| Optional route params. | |
| Type describing the key type of a route parameter mapping. | |
| Used in PathParams type declaration. | |
| Used in PathParams type declaration. | |
| This utility type helps us infer a Param object type from a string path For example,  | |
| An pending auth request for a single auth provider. The request will remain in this pending state until either reject() or trigger() is called. | |
| Plugin descriptor type. | |
| Plugin feature flag configuration. | |
| Profile information of the user. | |
| This API provides access to profile information of the user from an auth provider. | |
| TS magic for handling route parameters. | |
| Absolute route reference. | |
| The SessionApi provides basic controls for any auth provider that is tied to a persistent session. | |
| Props for the  | |
| A snapshot in time of the current known value of a storage key. | |
| Descriptor of a route relative to an absolute RouteRef. | |
| Wraps a type with API properties into a type holding their respective ApiRefs. |