---
url: https://kit.kambium.net/docs/index.md
description: Understand the Kambium Kit server, webhooks, tasks and engines.
---

# Concepts

<span id="what-is-kambium"></span>
<span id="kambium-documentation"></span>

Kambium Kit is a TypeScript framework for integration applications. The Kit
provides provider connections, persistent tasks, authentication and a Vue
dashboard. You own the application source, integration logic and deployment.

Start with [Create an app](https://kit.kambium.net/docs/create-app.md) to generate a backend and dashboard.

A common event-driven engine follows this path:

```mermaid
flowchart TB
  accTitle: Event-driven engine execution
  accDescr: A provider webhook reaches an engine handler, which persists a task. A worker processes the task and saves its result, retrying recoverable failures.
  webhook[Provider webhook] --> handler[Engine handler]
  handler --> task[(Persisted task)]
  task --> worker[Worker]
  worker --> result[(Saved result)]
  worker -. Retry after recoverable failure .-> task
```

## A server that stays running

The backend receives provider events and runs workers even when nobody has the
dashboard open. Keep it running so the app can receive events and process work.

Supabase stores application data and authenticates users. Redis provides
coordination and caching. Desktop starts both services for local development.

## Webhooks and tasks

A webhook tells the server that something changed in a connected provider.
An engine's handlers decide what to do with that change. Work can be recorded
as a task and processed by a worker, with its progress and result saved.

Tasks allow retries and recovery after interruptions. Your engine still needs
to account for work being attempted again. See [Task execution](https://kit.kambium.net/docs/tasks.md) when
implementing handlers.

## Engines

An engine defines a kind of application behavior, including its configuration,
event handlers and tasks. Provider connections are optional: an engine can work
entirely with application data and services. One server can host several engine kinds.

A definition is reusable code. An engine instance is a saved configuration of
that kind, with its own configuration and state in a workspace, plus any connected
accounts it needs. Multiple instances can use the same code with different settings.

Users create and configure instances through the dashboard. Activating an
instance runs its lifecycle setup, such as registering a provider webhook.
To try an engine without provider accounts, follow the [Heartbeat tutorial](https://kit.kambium.net/docs/first-engine.md).

Backend engines run as trusted code. Custom routes that access workspace data
must enforce the caller's permissions. [Authenticate a custom route](https://kit.kambium.net/docs/engines.md#authenticate-a-custom-route)

## Provider connections

Kit manages Airtable and Slack connections directly. For other providers, use the
[optional Nango connection flow](https://kit.kambium.net/docs/engines.md#connect-another-provider-through-nango)
or handle authentication and API calls in your engine. External PostgreSQL
connections are available for integration data. [Kit services](https://kit.kambium.net/docs/kit-services.md)

## Desktop, dashboard and CLI

<span id="desktop-and-the-cli"></span>
<span id="what-your-app-contains"></span>

[Kambium Desktop](https://kit.kambium.net/docs/local-development.md) is a desktop application for developers
working on apps built with Kambium Kit. It starts your local backend and services, shows
logs and helps configure hosted services.

The command-line interface (CLI) creates apps and runs the same local tooling
from a terminal. A deployed backend runs on your hosting service, independently
of Desktop.

The Vue dashboard is where users manage workspaces, connections and engine
instances. By default, one Fly.io app serves the dashboard and runs the API
and background workers. [Environments and secrets](https://kit.kambium.net/docs/setup.md#services)

<span id="guides"></span>
<span id="reference"></span>

Start at [Reference](https://kit.kambium.net/docs/reference.md) to find import paths, API contracts and
extension points.
