Skip to content

Function: createApp()

createApp<T>(config?): Promise<PluginMap<T>>

Auto-configuring drop-in for AppKit’s createApp: same config, same typed plugin-export map, with autoConfigure run first.

When CreateAppConfig.interceptors are given, each is invoked with an InterceptorContext AFTER auto-configuration computes the env and BEFORE AppKit boots - so an interceptor can read the resolved connection, register lifecycle handlers, and bindProcess a child. A hidden lifecycleBridge plugin is injected so those onLifecycle handlers fire on the genuine AppKit events; it has no exports, so the returned PluginMap is unchanged.

T extends PluginData<PluginConstructor, unknown, string>[]

CreateAppConfig<T>

Promise<PluginMap<T>>

import { lakebase, server } from "@databricks/appkit";
import { appkit } from "@dbx-tools/appkit";
const app = await appkit.createApp({ plugins: [server(), lakebase()] });