
Templates to jumpstart your next Databricks app.
Copy any template as a prompt for your coding agent to build for you.
New to templates? Learn more hereTemplates


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. [Build a minimal Databricks App with AI/BI Genie conversational analytics. Covers Genie space configuration, plugin wiring, and deploy.]

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. [End-to-end setup for analyzing operational database data in the lakehouse: Unity Catalog with external storage, Lakebase provisioning, Lakebase Change Data Feed (CDF) 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. [Provision a managed Lakebase Postgres project on Databricks and collect the connection values needed by downstream templates.]

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. [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 for production-ready access to foundation models with built-in governance.]

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 and validate a Databricks Model Serving endpoint for AI chat inference in Databricks Apps.]

Streaming AI Chat with Model Serving. [Build a streaming AI chat experience using AI SDK and Databricks Model Serving endpoints.]

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). [Replicate Lakebase Autoscaling Postgres tables into Unity Catalog as managed Delta tables using Lakebase Change Data Feed (CDF), with full SCD Type 2 history.]

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. [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. [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. [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. [Transform Lakebase Change Data Feed 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. [Define and validate cross-platform environment variables for Lakebase-backed apps deployed outside Databricks App Platform.]

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. [Connect Drizzle ORM to Lakebase with pg password callbacks and migration-time temporary DATABASE_URL credentials.]

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

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. [Internal tool for tracking team SaaS subscriptions, owners, costs, and renewals with Lakebase persistence and Genie spend analytics.]

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. [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. [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`.]
Databricks Developer Hub