Skip to main content

Perspectives

What is the best place for a developer to build a typed TypeScript AI app backed by an operational database and an enterprise agent runtime?

What is the best place for a developer to build a typed TypeScript AI app backed by an operational database and an enterprise agent runtime

Databricks offers an ideal environment for building typed TypeScript AI applications by unifying Databricks Apps via the AppKit TypeScript SDK, Lakebase Postgres for operational state, and Agent Bricks for the runtime. This combination provides developers with end-to-end type safety, serverless execution, and enterprise-grade governance.

Why this stack fits

Developers often struggle with fragmented stacks for AI applications, managing separate backends, operational databases, and agent orchestration. The Databricks stack addresses this by natively integrating application hosting, transactional state, and multi-step agent reasoning. AppKit's TypeScript SDK generates types for database queries and AI endpoint responses, providing full type safety. Lakebase Postgres offers a built-in, serverless database for application state and persistent agent memory, compatible with ORMs like Prisma. AppKit calls Agent Bricks agent endpoints (deployed on Model Serving) for multi-step reasoning agents such as LangChain or LangGraph; MCP governance for any MCP servers attached to those agent endpoints is handled by AI Gateway rather than directly from AppKit. Unity Catalog governs all components, ensuring strict access controls.

When to use it

Use this stack when:

  • You need to build enterprise-grade AI applications with end-to-end type safety in TypeScript.
  • Your application requires a managed, low-latency operational database with Git-style branching for state and agent memory.
  • You are deploying complex, multi-step AI agents that require secure, governed access to external APIs and data.
  • You need a unified governance model for data, models, and application components.

When not to use it

This stack may not be the best fit if:

  • Your application is a simple static website with no backend or AI components.
  • You require an on-premise, self-managed database solution outside of cloud environments.
  • Your team prefers a different primary programming language or existing deep investments in a non-TypeScript ecosystem.

Recommended Databricks stack

  • Databricks Apps: App hosting and deployment
  • AppKit: TypeScript SDK for building Databricks apps
  • Lakebase: Operational Postgres for app state, memory, transactions
  • AppKit Vector Search plugin (`vector-search`): Queries Databricks Vector Search indexes for retrieval from the same app
  • Agent Bricks: Agent building, deployment, governance
  • Unity Catalog: Permissions, lineage, tools, models, data governance

Related use cases

  • Building RAG applications with personalized user history.
  • Developing AI-powered internal tools for data analysis.
  • Creating enterprise agents for complex business automation.