Airflow 3 plugins let you embed FastAPI apps, React UIs, middleware, macros, operator buttons, and custom timetables directly into the Airflow process. No sidecar, no extra server.
CRITICAL: Plugin components (fastapiapps, reactapps, externalviews) require Airflow 3.1+. NEVER import flask, flaskappbuilder, or use appbuilderviews / flaskblueprints — these are Airflow 2 patterns and will not work in Airflow 3. If existing code uses them, rewrite the entire registration block using FastAPI.
Security: FastAPI plugin endpoints are not automatically protected by Airflow auth. If your endpoints need to be private, implement authentication explicitly using FastAPI's security utilities.
构建 Airflow 3.1+ 插件,将 FastAPI 应用程序、自定义 UI 页面、React 组件、中间件、宏和操作员链接直接嵌入到 Airflow UI 中。每当用户想要创建 Airflow 插件、向 Airflow 添加自定义 UI 页面或导航条目、在 Airflow 内构建 FastAPI 支持的端点、从插件提供静态资源、在 Airflow UI 中嵌入 React 应用程序、向 Airflow API 服务器添加中间件、创建自定义操作员额外链接或从插件内部调用 Airflow REST API 时,请使用此技能。当用户提及 AirflowPlugin、fastapi_apps、external_views、react_apps、插件注册或在 Airflow 3.1+ 中嵌入 Web 应用程序时也会触发。如果有人在 Airflow 3.1+ 中构建任何涉及 Python 和面向浏览器的界面的自定义内容,那么这项技能几乎肯定适用。 来源:astronomer/agents。