BlogBlogtypeA post on somebody's own site or a community platform. Nobody edits it after publication, so it dates from the day it was written.See every one →SAP Community

Create your first CAP plugin

A step-by-step guide to the cds-plugin.js extension point: scaffold a package, add an index.cds for shared model artifacts, and test it locally against a throwaway CAP project before publishing to npm, with a separate section on building the same plugin in TypeScript and compiling it with tsc. Points to the author's own cds-plugin-handlers and ui5-cap-serverside-rendering-plugin as worked examples.

Where it sits

Explains
Plugin authoringCAPPlugin authoringcapabilityWriting a package that extends a framework or runtime rather than an application that uses it — a reusable extension loaded by its host, and the question you arrive at once solving a problem twice makes you want to solve it once for everyone.cds-plugin-handlersCAPcds-plugin-handlerscds-pluginA CAP plugin that structures handlers as one file per entity, in a folder per service, instead of one service implementation that keeps growing.ui5-cap-serverside-rendering-pluginCAPui5-cap-serverside-rendering-plugincds-pluginA CAP plugin that fills UI5 views and fragments with entity data on the server through Handlebars and streams them as XML, and renders a Vue app to HTML on a route of its own.cds-spreadsheetimporter-pluginCAPcds-spreadsheetimporter-plugincds-pluginA CAP plugin that adds an ImporterService accepting an uploaded Excel file, parses it on the server and writes its rows into the CDS entity named in the URL.
Since then
No major release of cds-plugin-handlers since this was published
Source
reachable

Who is behind it

Wouter LemaireWouter LemairePersonWrote this
In the atlas: maintains 25, contributes to 39, wrote 12
@lemaiwo
author

Properties

About this work

declared and crawled
Published
declared
Published on
declared
Views
crawled
4,312

For lemaiwo-cds-plugin-handlers

on the edge
Covers
authored
Shown as the author's TypeScript-based plugin that readers can study to see the possibilities of plugin authoring.
Offers here
authored
Example

For lemaiwo-ui5-cap-serverside-rendering-plugin

on the edge
Covers
authored
Shown as the author's JavaScript plugin example readers can study to see the possibilities of plugin authoring.
Offers here
authored
Example

For spreadsheetimporter-cds-spreadsheetimporter-plugin

on the edge
Covers
authored
Pointed to as a work-in-progress plugin readers can look at alongside the author's own for more plugin-authoring possibilities.
Offers here
authored
Example

More on this18

Group by18 of 18 pieces
Piece, what it offersStill applies
Also explainingPlugin authoring7
What's in Daniel Hutzel's brain?
YouTube — SAP Developers playlists, Daniel Hutzel, DJ Adams
nothing recorded
DRY CAP – Making Sustainable Solutions Through Plugins
YouTube — SAP Developers playlists, SAP Developers
nothing recorded
SAP AI Services - DOX - Gen AI with SAP CAP Plugin - Part 3
SAP Community, sabarna17, part 3 of 3
nothing recorded
How to build reusable plugin components for CAP Java applications
SAP Community, robinjayasinghe
nothing recorded
BTP CAP : Custom plugin to separate generic change log capture logic
SAP Community, sreehari_vpillai
nothing recorded
Reusable components for CAP with cds-plugin
SAP Community, Daniel SchlachterThe reasoningRunnable code
nothing recorded
AI needs a foundation: A map of the plug-in ecosystem for CAP
SAP TechEd — session catalogue, Mike ZaschkaThe reasoning
nothing recorded
Building Code-Based AI Agents on the BAIP
YouTube — SAP Developers playlists, Wouter Lemaire
nothing recorded
UI5 AI Features library is now an npm Package
SAP Community, Wouter LemaireThe reasoningRunnable code
Version drift
Agentic AI on BTP: a Multi‑Agent App with Pydantic AI
SAP Community, Wouter Lemaire
nothing recorded
Agentic AI on BTP: a Single Agent with LangGraph
SAP Community, Wouter Lemaire
nothing recorded
BTP Audit Log MCP Server: Security Monitoring with AI Assistants
SAP Community, Wouter Lemaire
nothing recorded
BTP Cloud Foundry MCP Server: Managing CF Environments with AI
SAP Community, Wouter Lemaire
nothing recorded
UI for the BTP Application Vulnerability Report
SAP Community, Wouter Lemaire
nothing recorded
Consume ABAP RFC Function Modules in CAP
SAP Community, Wouter LemaireThe reasoningRunnable code
nothing recorded
CAP multitenancy with Work Zone
SAP Community, Wouter Lemaire
nothing recorded
Upload attachments in a Freestyle UI5 and CAP app
SAP Community, Wouter LemaireThe reasoning
nothing recorded
How to add OData v2 adapter proxy to your CAP project
SAP Community, Wouter LemaireThe reasoningRunnable code
Core changed

Details

Graph7 edges
← POINTS HERE
POINTS OUT →
explainsPlugin authoringcapability, core only
explainscds-plugin-handlersartifact
published onSAP Communitypublishing source
discovered viaSAP Community
Source
Type
blog
Published on
Host
community.sap.com
Discovered via
First seen
History1
  • Entered the atlasDiscovered via SAP Community.
For your agent
Ref
content:create-your-first-cap-plugin
JSON
/content/create-your-first-cap-plugin.json
MCP
Connecting an agent