This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our serverless docs for more details.
Kibana Core API
editKibana Core API
editThis functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.
Kibana Core provides a set of low-level API’s required to run all Kibana plugins. These API’s are injected into your plugin’s lifecycle methods and may be invoked during that lifecycle only:
import type { PluginInitializerContext, CoreSetup, CoreStart } from '@kbn/core/server'; export class MyPlugin { constructor(initializerContext: PluginInitializerContext) {} public setup(core: CoreSetup) { // called when plugin is setting up during Kibana's startup sequence } public start(core: CoreStart) { // called after all plugins are set up } public stop() { // called when plugin is torn down during Kibana's shutdown sequence } }
The services that core provides are:
Core provides the Kibana building blocks for plugins and is implemented as a collection of packages.