/fe-app-toolkit:configurable-react-templatefrom fe-app-toolkit
Building a Databricks App frontend, adding UI features (admin, chat, reports, branding), scaffolding a React app for Databricks
Ships in fe-app-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Pluggable React component library for building Databricks App frontends with runtime branding, admin panels, chat, and reports.
https://github.com/databricks-field-eng/configurable-react-client-template-for-coding-agents.git@configurable-react-client/templateUse this template whenever you are building a Databricks App that needs a React frontend. It provides:
npm install @configurable-react-client/template
import {
BrandingProvider, AppShell, FloatingChat,
useChatState, createChatApi, createConfigApi,
} from "@configurable-react-client/template";
const chatApi = createChatApi("/api");
const configApi = createConfigApi("/api");
export default function App() {
const chatState = useChatState({ api: chatApi, storageKey: "my-app" });
return (
<BrandingProvider configApi={configApi}>
<AppShell companyName="My Company" tabs={[{ id: "home", label: "Home" }]} activeTab="home" onTabChange={() => {}}>
<div>Home content</div>
</AppShell>
<FloatingChat chatState={chatState} visible={true} />
</BrandingProvider>
);
}
| Module | Purpose |
|---|---|
api/ | createChatApi, createConfigApi, createReportsApi, createAdminApi, fetchJson |
layout/ | AppShell, HeaderBar, TabBar, GearMenu |
branding/ | BrandingProvider, CSS variable injection |
admin/ | AdminPage, plugin system, all built-in plugins |
chat/ | FloatingChat, ChatMessage, MentionDropdown, MentionChips |
reports/ | ReportsPage, ReportDraftIndicator, AddToReportButton |
monitoring/ | Cache, memory, chat-log, system monitoring tabs |
hooks/ | useChatState, useMentionState, useReportDraft |
All components receive their dependencies as props (API callbacks, config, state). Never via React Context directly. This makes components testable and reusable across apps.
<AdminPage plugins={[...]} configApi={configApi} onBack={handleBack} />
<FloatingChat chatState={chatState} visible={showChat} />
All visual theming flows through CSS variables. BrandingProvider sets them on :root:
--color-primary, --color-accent, --color-header-bg, --color-success,
--color-warning, --color-danger, --color-light-bg,
--font-sans, --font-mono
The admin panel is composed of plugins. Each plugin is a function returning an AdminPlugin object:
interface AdminPlugin {
id: string;
label: string;
icon: string | ReactNode;
group: "settings" | "monitoring";
component: React.ComponentType<AdminPluginProps>;
enabled?: boolean;
order?: number;
}
| Plugin | Group | Purpose |
|---|---|---|
generalPlugin() | settings | Company name, logo upload |
typographyPlugin() | settings | Font selection, custom font upload |
colorsPlugin({ extraGroups?, uiFields? }) | settings | Color pickers, custom color groups via ColorFieldDef |
linksPlugin() | settings | Header links and CTA |
presetsPlugin() | settings | Save/load branding presets |
cachePlugin() | monitoring | Semantic cache stats, entries, events, action buttons (purge expired, invalidate, clear all), inline settings (threshold, TTL, stats toggle) |
memoryPlugin() | monitoring | Agent memory entries, search, delete |
chatLogPlugin() | monitoring | Chat session transcripts, message viewer |
systemPlugin() | monitoring | PG diagnostics, env vars, pgvector install |
Important: Settings plugins (general, colors, typography, links, presets) must be composed into a single "Branding" sidebar tab with inner tab navigation — NOT registered as separate
AdminPageplugins. Monitoring plugins are registered separately. Seeintegration-patterns.mdfor the requiredadminPlugins.tsxpattern.Important: Register ALL monitoring plugins, not just some. Every
*TabApiyou wire inapiFactories.tsneeds its corresponding plugin in theAdminPage pluginsarray. Seeintegration-patterns.mdfor the full list.
import { colorsPlugin, type ColorFieldDef } from "@configurable-react-client/template";
const myColors: ColorFieldDef[] = [
{ label: "Card Background", key: "color_card_bg", desc: "Background for dashboard cards" },
{ label: "Sidebar", key: "color_sidebar", desc: "Sidebar navigation background" },
];
colorsPlugin({ extraGroups: [{ title: "Dashboard Colors", fields: myColors }] });
Use AppShell which combines HeaderBar + TabBar. Do NOT use AppShell combined with an explicit HeaderBar -- they are redundant.
<AppShell
companyName="My Company"
tabs={[{ id: "home", label: "Home" }, { id: "admin", label: "Settings" }]}
activeTab={activeTab}
onTabChange={setActiveTab}
gearMenuItems={[{ label: "Settings", onClick: () => setActiveTab("admin") }]}
>
{/* tab content */}
</AppShell>
// vite.config.ts
resolve: {
dedupe: ["react", "react-dom"], // prevent dual React instances
}
// tailwind.config.js
content: [
"./src/**/*.{js,ts,jsx,tsx}",
"./node_modules/@configurable-react-client/template/dist/**/*.{js,mjs,cjs}",
]
The API factories expect these endpoints on your FastAPI backend:
| Factory | Endpoints |
|---|---|
createChatApi("/api") | POST /api/chat, GET /api/chat/history, GET /api/chat/sessions, DELETE /api/chat/sessions/:id |
createConfigApi("/api") | GET /api/config, PATCH /api/config, POST /api/config/logo, POST /api/config/font, POST /api/config/reset, GET /api/config/presets, POST /api/config/presets, DELETE /api/config/presets/:name |
createReportsApi("/api") | CRUD on /api/reports, export |
createAdminApi("/api") | /api/admin/cache/*, /api/admin/memory/*, /api/admin/system, /api/admin/chat/* |
These backend routers can be generated by the chat-app-utilities package (see that skill).
AdminPlugin, AdminPluginProps, ColorFieldDef, BrandingConfig, ChatState, ChatApiCallbacks, ConfigApiCallbacks, ReportsApiCallbacks, TabDefinition, GearMenuItem
See references/type-inventory.md for complete type definitions.
See references/integration-patterns.md for full code examples.
AppShell with an explicit HeaderBar -- AppShell already includes it.generalPlugin(), colorsPlugin(), typographyPlugin(), linksPlugin(), or presetsPlugin() as separate AdminPage plugins -- compose them into a single "Branding" tab with inner navigation. See integration-patterns.md for the adminPlugins.tsx pattern.cachePlugin, memoryPlugin, chatLogPlugin, systemPlugin) -- not just some.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub sarah-hord-db/vibe --plugin fe-app-toolkit4 skills in this plugin
/agent-memory-servicePersistent memory for AI agents, MCP memory service, cross-conversation agent memory on Databricks/chat-app-utilitiesAdding admin monitoring, config CRUD, chat pipeline with Genie/KA sources, FastAPI router factories for Databricks Apps/lakebase-semantic-cacheAdding semantic caching to a Databricks App, reducing duplicate LLM calls, pgvector caching