webc-generator

webc-generator is an agent for coding agents from SAP/fundamental-ngx. It costs 0 tokens per session (2,886 once invoked), scanned A, original, Apache-2.0.

An NX build tool that generates Angular wrapper components for UI5 Web Components. UI5 Web Components are reusable web interface elements, and Angular wrappers let Angular projects use them more naturally.

In plain words
What is it for?
Use it to generate Angular components, secondary package entry points, form-value handling, and theming-related files from UI5 Web Component metadata in an NX workspace.
Why use it?
It removes the need to create and maintain a large set of wrapper files by hand. The generator keeps the wrappers based on the component definitions in a Custom Elements Manifest, a JSON description of web components.

Agent

About the project

Fundamental Library for Angular is an SAP-maintained Angular component library implementing SAP's design system and wrapping UI5 Web Components. Angular developers use its typed UI components and higher-level composites to build SAP-style web interfaces. Catalogue entries provide skills, agents, instructions, and a rule for working with the library.

SAP/fundamental-ngx · 294 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/sap/fundamental-ngx/webc-generator
Clone the repo
git clone --depth 1 https://github.com/SAP/fundamental-ngx

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for webc-generator

README.md
[![agentmods](https://agentmods.dev/badge/agents/sap/fundamental-ngx/webc-generator.svg)](https://agentmods.dev/agents/sap/fundamental-ngx/webc-generator)
Your own site
<a href="https://agentmods.dev/agents/sap/fundamental-ngx/webc-generator"><img src="https://agentmods.dev/badge/agents/sap/fundamental-ngx/webc-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,886 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.02886
Opus 5 $0.00000 $0.01443
Sonnet 5 $0.00000 $0.00577
Haiku 4.5 $0.00000 $0.00289

Measured 5d ago against content hash c8dab8df66c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

webc-generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/agents/webc-generator.md · 287 lines

How it starts

The opening of the file, as written. The whole thing — 287 lines — stays where its author put it; the contents beside it link to each section on GitHub.

webc-generator: Technical Summary

The webc-generator is an NX executor that automatically converts UI5 Web Components into Angular-native wrapper components. It eliminates manual maintenance of 100+ component wrappers by reading a Custom Elements Manifest (CEM) and generating the full library from it.

Do not hand-edit files under libs/ui5-webcomponents*/ — run the generator instead.


Directory Structure

libs/webc-generator/
├── src/
│   ├── executors/generate/
│   │   ├── executor.ts               # Main orchestration logic
│   │   ├── schema.json / schema.d.ts # NX executor options schema
│   │   ├── component-template.ts     # Angular component code generator
│   │   └── utils/
│   │       ├── cva.ts                # GenericControlValueAccessor directive
│   │       ├── ng-package.json       # Template for secondary entry points
│   │       └── theming-service-template.tpl
│   └── index.ts
├── executors.json                    # Registers the "generate" executor
└── package.json

Pipeline Overview

CEM JSON file (from @ui5/webcomponents package)
        │
        ▼
  loadCemData()        — resolve & parse JSON
        │
        ▼
  extractCemData()     — filter custom element declarations, collect enums
        │
        ├─▶ generateTypesFiles()      — types/ secondary entry point (enum re-exports)
        ├─▶ generateThemingFiles()    — theming/ secondary entry point (ThemingService)
        ├─▶ generateCvaFile()         — utils/cva.ts (Control Value Accessor)
        ├─▶ generateUtilsFiles()      — utils/ secondary entry point
        └─▶ generateComponentFiles() — one directory per component (parallel)
                    │
                    ▼
             componentTemplate()     — produces the Angular wrapper class
        │
        ▼
  Root index.ts        — aggregates all component + secondary entry point exports

Inputs

The executor is configured per-library in the library's project.json:

{
    "executor": "@fundamental-ngx/webc-generator:generate",
    "options": {
        "cemFile": "@ui5/webcomponents/dist/custom-elements-internal.json",
        "targetDir": ".",
        "packageName": "@ui5/webcomponents",
        "outputPath": "libs/ui5-webcomponents",
        "tsConfig": "libs/ui5-webcomponents/tsconfig.lib.json"
    }
}

Read the full file on GitHub · 287 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 287 lines · 0 tokens per session scan A c8dab8df66c3

Subscribe to this mod's changes

webc-generator is an agent published in the GitHub repository SAP/fundamental-ngx (294 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,886 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.