src/platform/plugins/shared/console/packaging/README.md
One Console is a standalone, packaged version of the Kibana Console plugin that can be embedded into external applications as a React component.
Instead of requiring the full Kibana platform, One Console bundles all necessary dependencies using Webpack, making it possible to integrate the Console's powerful Elasticsearch query editor and execution capabilities into any React application.
import { OneConsole } from 'one-console';
<OneConsole
lang="en"
http={customHttpClient}
notifications={customNotificationHandlers}
/>
One Console mocks several Kibana core services (analytics, theme, i18n, doc links, etc.) to provide a self-contained environment. It uses:
@kbn/monaco for the Monaco editor integrationThe StandaloneParsedRequestsProvider is a critical component that enables One Console to parse and understand Elasticsearch API requests typed into the Monaco editor. It provides the same interface as Kibana's ConsoleParsedRequestsProvider but operates independently without requiring the full Kibana plugin context.
The provider analyzes the text content of the Monaco editor and extracts structured information about Elasticsearch requests, including:
Editor Text → StandaloneConsoleParser → ParsedRequest[]
→ ParseError[]
getRequests() or getErrors() is called, it reads the current text from the model@kbn/monacoIn the full Kibana environment, the Console plugin has access to the Monaco language service workers and parser infrastructure. However, One Console runs in external applications where these services may not be available. The StandaloneParsedRequestsProvider bridges this gap by providing a self-contained parsing solution that works in any environment where Monaco editor can run.