Skip to main content

Templates

Templates to jumpstart your next Databricks app.

Use each template step by step, or copy it as a prompt for your coding agent to build for you.

Agentic Support Console
Agentic Support Console

End-to-end AI-powered support console combining Lakebase, Lakehouse Sync, a medallion pipeline, an LLM agent job, reverse sync, and a Databricks App with Genie analytics.

Vacation Rentals Operations Console
Vacation Rentals Operations Console

Vacation rental ops dashboard with revenue analytics from a SQL Warehouse, a booking queue with Lakebase-backed flags and agent notes, and an embedded Genie chat panel.

SaaS Subscription Tracker
SaaS Subscription Tracker

Internal tool for tracking team SaaS subscriptions, owners, costs, and renewals with Lakebase persistence and Genie spend analytics.

Content Moderator
Content Moderator

Internal content moderation tool with per-channel guidelines, AI-powered compliance scoring via Model Serving, and a moderator review workflow backed by Lakebase and Genie analytics.

Inventory Intelligence
Inventory Intelligence

Retail inventory management with AI-powered demand forecasting, replenishment recommendations, and optional Genie analytics. Built on a live medallion pipeline synced to Lakebase.

RAG Chat App
RAG Chat App

Streaming Retrieval-Augmented Generation chat app with pgvector retrieval from Lakebase, Wikipedia seed corpus, Model Serving generation, and Lakebase-backed chat history. Consumed via `databricks apps init`.

AI Chat App
AI Chat App

Model Serving integration, AI SDK streaming chat, and Lakebase-persisted chat history.

App with Lakebase
App with Lakebase

Wire up a Databricks App with Lakebase for persistent data storage. Includes schema setup and full CRUD API routes.

Genie Analytics App
Genie Analytics App

Build a minimal Databricks App with AI/BI Genie conversational analytics. Covers Genie space configuration, plugin wiring, and deploy.

Lakebase Off-Platform
Lakebase Off-Platform

Use Lakebase from apps hosted outside Databricks App Platform (for example on AWS, Vercel, or Netlify) with portable env, token, and Drizzle patterns.

Operational Data Analytics
Operational Data Analytics

End-to-end setup for analyzing operational database data in the lakehouse: Unity Catalog with external storage, Lakebase provisioning, Lakehouse Sync CDC replication, and a medallion architecture pipeline with silver and gold layers.

Set Up Your Local Dev Environment

Install the Databricks CLI, authenticate a profile, and verify the handshake. The strict prerequisite for every other DevHub recipe and template.

Spin Up a Databricks App

Scaffold a fresh AppKit Databricks App with `databricks apps init`, run it locally, and deploy to your workspace.

Onboard Your Coding Agent

Install Databricks agent skills (project-scoped), wire up the DevHub Docs MCP server, and bootstrap an AGENTS.md so your coding assistant knows this repo's workspace defaults.

Create a Lakebase Instance
Create a Lakebase Instance

Provision a managed Lakebase Postgres project on Databricks and collect the connection values needed by downstream templates.

Lakebase Data Persistence
Lakebase Data Persistence

Add a managed Postgres database to your Databricks app using the Lakebase plugin. Covers schema setup, table creation, and full CRUD REST API routes.

Lakebase pgvector
Lakebase pgvector

Enable vector similarity search in Lakebase using the pgvector extension. Covers extension setup, vector table design, insert and cosine retrieval helpers, and IVFFlat/HNSW index options.

Query AI Gateway Endpoints
Query AI Gateway Endpoints

Query AI Gateway endpoints for production-ready access to foundation models with built-in governance.

Generate Embeddings with AI Gateway
Generate Embeddings with AI Gateway

Generate text embeddings from a Databricks AI Gateway endpoint using the Databricks SDK.

Create a Databricks Model Serving endpoint
Create a Databricks Model Serving endpoint

Create and validate a Databricks Model Serving endpoint for AI chat inference in Databricks Apps.

Streaming AI Chat with Model Serving
Streaming AI Chat with Model Serving

Build a streaming AI chat experience using AI SDK and Databricks Model Serving endpoints.

Lakebase Agent Memory
Lakebase Agent Memory

Persist your AI agent's chat sessions and messages in Lakebase so users can resume conversations and your agent can reason over prior turns across deploys.

Lakebase Change Data Feed: Sync Lakebase to Unity Catalog (Autoscaling)
Lakebase Change Data Feed: Sync Lakebase to Unity Catalog (Autoscaling)

Replicate Lakebase Autoscaling Postgres tables into Unity Catalog as managed Delta tables using Lakehouse Sync, with CDC and SCD Type 2 history.

Sync Tables: Unity Catalog to Lakebase (Autoscaling)
Sync Tables: Unity Catalog to Lakebase (Autoscaling)

Sync Unity Catalog tables into Lakebase Autoscaling Postgres as synced tables for sub-10ms application queries, with snapshot, triggered, or continuous modes.

Set Up Unity Catalog with External Storage
Set Up Unity Catalog with External Storage

Create a Unity Catalog catalog backed by an external S3 bucket with storage credentials, external location, and a schema ready for lakehouse tables.

Genie Conversational Analytics
Genie Conversational Analytics

Embed a Databricks AI/BI Genie chat interface so users can explore data through natural language. Configure a Genie space, wire up server and client plugins, declare app resources, and deploy.

Genie Multi-Space Selector
Genie Multi-Space Selector

Add a space selector so users can switch between multiple AI/BI Genie spaces from a single page. Covers multi-alias server config, per-space bundle resources, and automatic conversation cleanup on space switch and redeployment.

Medallion Architecture from CDC History Tables
Medallion Architecture from CDC History Tables

Transform Lakehouse Sync CDC history tables into a medallion architecture with silver (current state) and gold (aggregations) layers using Lakeflow Declarative Pipelines.

Lakebase Env Management for Off-Platform Apps
Lakebase Env Management for Off-Platform Apps

Define and validate cross-platform environment variables for Lakebase-backed apps deployed outside Databricks App Platform.

Lakebase Token Management
Lakebase Token Management

Implement cached workspace and Lakebase credential token flows for secure Postgres access in off-platform deployments.

Drizzle + Lakebase in an Off-Platform App
Drizzle + Lakebase in an Off-Platform App

Connect Drizzle ORM to Lakebase with pg password callbacks and migration-time temporary DATABASE_URL credentials.

Volume File Manager
Volume File Manager

Add file upload, browsing, download, delete, file type validation, and CSV row preview to your Databricks app using Unity Catalog Volumes.

32 of 32 templates

More templates on GitHub

Looking for Streamlit, Dash, Gradio, Shiny, Flask, or FastAPI starters?

Find more pre-built templates for Databricks Apps at databricks/app-templates.

Browse on GitHub