netresearch / nr-llm-compat
LLM Compatibility Layer - Routes the LLM provider calls of third-party AI extensions through nr-llm at runtime, so its provider management, budgets and telemetry apply without modifying them.
Package info
github.com/netresearch/t3x-nr-llm-compat
Type:typo3-cms-extension
pkg:composer/netresearch/nr-llm-compat
Requires
- php: ^8.2
- composer-runtime-api: ^2.2
- composer/semver: ^3.4
- netresearch/nr-llm: ^0.35 || ^0.36 || ^0.37 || ^0.38 || ^0.39 || ^0.40 || ^0.41 || ^0.42 || ^0.43 || ^0.44 || ^0.45 || ^0.46 || ^0.47 || ^0.48 || ^0.49 || ^0.50 || ^0.51 || ^0.52 || ^0.53 || ^0.54 || ^0.55
- symfony/console: ^6.4 || ^7.0 || ^8.0
- symfony/dependency-injection: ^6.4 || ^7.0 || ^8.0
- typo3/cms-core: ^13.4 || ^14.3
Requires (Dev)
- georgringer/news: ^14.0
- in2code/sitescore: ^3.1
- in2code/texter: ^3.0
- mfd/ai-filemetadata: >=1.6.0 <1.6.7 || >=1.7.0 <1.7.2
- netresearch/typo3-ci-workflows: ^2.3
- nitsan/ns-t3ai: ^14.0.2
- passionweb/ai-seo-helper: ^0.7.2
- typo3/cms-dashboard: ^13.4 || ^14.3
- typo3/cms-filemetadata: ^13.4 || ^14.3
- typo3/cms-install: ^13.4 || ^14.3
- typo3/cms-seo: ^13.4 || ^14.3
Suggests
- eliashaeussler/typo3-solver: The exception solver's completions are routed through nr-llm via its official provider setting when the integration is enabled
- georgringer/news: nr-llm's assistant gets a create_news_draft tool that drafts hidden news articles as the acting backend user when the integration is enabled
- in2code/sitescore: Sitescore's page analysis is routed through nr-llm via its official llmRepositoryClass hook when the integration is enabled
- in2code/texter: Texter's LLM calls are routed through nr-llm via its official llmRepositoryClass hook when the integration is enabled
- mfd/ai-filemetadata: AI File Metadata's alt-text vision calls are routed through nr-llm when the integration is enabled
- nitsan/ns-t3ai: T3AI's OpenAI calls are routed through nr-llm when the integration is enabled
- passionweb/ai-seo-helper: AI SEO Helper's OpenAI calls are routed through nr-llm when the integration is enabled
Provides
None
Conflicts
None
Replaces
None
- dev-main
- v0.5.12
- v0.5.11
- v0.5.10
- v0.5.9
- v0.5.8
- v0.5.7
- v0.5.6
- v0.5.5
- v0.5.4
- v0.5.3
- v0.5.2
- v0.5.1
- v0.5.0
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.0
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- dev-feat/96-ai-filemetadata-171
- dev-release/v0.5.11
- dev-chore/nr-llm-0.54
- dev-docs/changelog-php-8.6-news
- dev-release/v0.5.10
- dev-chore/nr-llm-0.53
- dev-fix/ai-filemetadata-1.7.1
- dev-release/0.5.7
- dev-chore/nr-llm-0.50
- dev-release/0.5.6
- dev-chore/allow-nr-llm-0.49
- dev-release/0.5.5
- dev-chore/nr-llm-0.48
- dev-release/0.5.3
- dev-fix/admit-nr-llm-0.46
- dev-release/0.5.2
- dev-fix/accept-nr-llm-0.45
- dev-release/v0.5.1
- dev-fix/accept-nr-llm-0.44
- dev-docs/agents-supersede-596
- dev-sync-checks-597
- dev-chore/sync-checks-template
- dev-docs/agents-changelog
- dev-release/v0.5.0
- dev-feat/sitescore-integration
- dev-release/v0.4.3
- dev-sync/template-typo3-extension-20260918-123046
- dev-chore/agents-md-sync
This package is auto-updated.
Last update: 2026-11-28 01:52:18 UTC
README
LLM Compatibility Layer for TYPO3
Runtime LLM compatibility layer for third-party TYPO3 AI extensions.
nr_llm_compat takes over the LLM provider calls of installed third-party AI extensions at runtime and routes them through nr-llm — centralized provider management, budgets, rate limits, telemetry and privacy policies apply to those extensions without modifying a single line of their code.
How it works
The extension ships one integration per supported third-party extension. An integration declares:
- the Composer package and supported version range,
- the PHP contract it relies on (classes, method signatures, properties — verified via reflection at container build time),
- the strategy (DI service class replacement, provider configuration, or tool provision),
- the adapter that reroutes the final provider call into nr-llm — or, for an extension that makes no LLM calls but has no nr-llm writer for its records, the tool this layer ships on its behalf.
An integration only activates when all of the following hold — otherwise nr-llm does not intercept and the third-party extension behaves as if nr_llm_compat were not installed:
- the third-party extension is installed in a supported version,
- the verified PHP contract matches (a silent upstream refactoring deactivates the integration instead of fataling in production),
- the integration is explicitly enabled in the extension configuration (nothing is intercepted by default).
Once an integration is enabled, it is fail closed: if nr-llm cannot serve a request, the call fails — it never silently falls back to the third-party extension's own provider, so budgets, policies and telemetry cannot be bypassed by an error path.
Supported integrations
| Extension | Package | Strategy | Since |
|---|---|---|---|
| AI SEO Helper | passionweb/ai-seo-helper |
DI class replacement | 0.1.0 |
| T3AI | nitsan/ns-t3ai |
DI class replacement | 0.1.0 |
| AI File Metadata | mfd/ai-filemetadata |
DI class replacement (vision) | 0.1.0 |
| Texter | in2code/texter |
Provider configuration | 0.1.0 |
| Exception Solver | eliashaeussler/typo3-solver |
Provider configuration | 0.1.0 |
| News | georgringer/news |
Tool provision (create_news_draft) |
0.2.0 |
| Sitescore | in2code/sitescore |
Provider configuration | 0.5.0 |
AI File Metadata is supported up to 1.6.6 and 1.7.1, the verified releases (>=1.6.0 <1.6.7 || >=1.7.0 <1.7.2). The bridge rebuilds the extension's OpenAI request data itself, and upstream already changed that contract in a patch release (1.7.1), so each new release is diffed against the bridge before the range is widened. From 1.7.1 on, the extension lets listeners of its ModifyRequestDataEvent change the OpenAI request; the bridge dispatches that event too and passes on a changed system prompt as nr-llm's prompt, which every nr-llm vision provider sends. nr-llm sends that prompt as the text part of the user message, not as a system message, and the original's fixed user text ("Generate alt text.") is not sent; the same holds for the extension's own prompt. A detail level of auto counts as unchanged, because nr-llm sends auto when none is set. If a listener changes anything else, for example adds tools, picks another model, or changes a token limit or the image's detail level to low or high, the bridge refuses that request with an exception that names the changed keys (ai_filemetadata's upload listener logs it as a warning), so no alt text is generated for that file. A changed or removed temperature is accepted and changes nothing, because nr-llm's vision providers do not send a temperature (netresearch/t3x-nr-llm#1474). A token limit is refused because nr-llm reports no finish reason (netresearch/t3x-nr-llm#1473), so an answer cut off at a listener's token limit could not be detected. Only the OpenAI-style providers send an image detail level, and the bridge cannot know in advance which provider nr-llm resolves. The bridge does not send a refused request to OpenAI instead, because that needs the extension's own API key and would bypass nr-llm (fail closed, see above). From 1.7.1 on, an empty answer raises an exception, so no empty alt text is stored; 1.7.1's upload listener catches it and the upload succeeds, while ai:generate-alt-texts stops at that file and the backend's alt-text suggestion button reports a failed request, as the original 1.7.1 does with its own exception. From 1.7.1 on, a file whose answer is always empty therefore stops ai:generate-alt-texts at that file on every run, the same as upstream 1.7.1. Before 1.7.1 the upload listener catches no exception, so the bridge keeps returning an empty text there, which ai_filemetadata stores together with its generation date and does not retry. An empty (0-byte) image, in contrast, returns an empty text on every version: it can never succeed, while an empty answer can succeed on a retry, so the file is marked done instead of stopping ai:generate-alt-texts at it on every run. The original also refuses an answer that ended for another reason than stop; the bridge cannot check that until nr-llm reports a finish reason.
AI File Metadata's own temperature setting has no effect while the integration is active: nr-llm's vision providers do not send a temperature yet (netresearch/t3x-nr-llm#1474).
Upgrading with a
ModifyRequestDataEventlistener: a site whose listener adds tools or changes anything but the system prompt gets no alt texts while the integration is active. A changed or removed temperature and an image detail level ofautoare the exceptions: they are accepted and have no effect. Every request is refused. An upload logs the refusal.ai:generate-alt-textsstops at the first file. The backend's alt-text suggestion button reports a failed request, because its AJAX action has no error handling.vendor/bin/typo3 nrllm:compat:statusnames the registered listeners, also before the integration is enabled. Remove or adapt such a listener, or leave the integration disabled.
Diagnostics
vendor/bin/typo3 nrllm:compat:status
reports for every known integration: installed version, contract verification result, strategy, and whether it is active.
Definition of supported
An integration is only supported when the third-party extension can be installed unmodified from its official Composer package and its normal workflow runs entirely through nr-llm without the extension's own provider API key.
Installation
composer require netresearch/nr-llm-compat
Requires TYPO3 13.4 or 14.3 and a configured nr-llm. Enable individual integrations in the extension configuration of nr_llm_compat.
Security
Which credentials the extension handles, what data each integration sends to LLM providers through nr-llm, and what users can and cannot expect in terms of security is in docs/SECURITY-ASSURANCE.md. Report vulnerabilities privately as described in the organisation's SECURITY.md, not in a public issue. A change that adds or removes a security control updates that document.
Governance and policies
This extension follows the organisation-wide Netresearch policies:
- Governance: ownership, roles and their responsibilities, how decisions are made and how disagreements are resolved.
- Roadmap: planned and excluded work for the next twelve months. It applies here because this repository has no
ROADMAP.mdof its own. - Handling of dependency and code analysis findings: which vulnerability, licence and static-analysis findings must be fixed, by when, and how exceptions are recorded.
- Secret management: where CI and release credentials are stored, who may use them, and when they are rotated.
- Access roster: the accounts with admin, maintain or write access to this repository.
Checks that run on every pull request in this repository:
.github/workflows/checks.yml: Composer Audit (fails on any advisory for an installed package) and Opengrep SAST, both throughsecurity.ymlofnetresearch/typo3-ci-workflows(which Opengrep findings block a pull request is set by the organisation's static analysis rule); Dependency Review (fails on added or changed dependencies with a vulnerability of severity high or higher); PHP licence check (license-check.yml, fails when thecomposer licensesoutput matches its forbidden-licence pattern, which by default refusesSSPL,BSLandBUSLand everySSPL-orBUSL-identifier of any version (BSL-1.0passes)); CodeQL for the workflow files (the repository has no JavaScript or Go, and CodeQL has no PHP analyser); Betterleaks secret scanning; zizmor for the workflow files; the pull request quality gate (pr-quality.yml: a size check on non-draft pull requests and the solo-maintainer auto-approval for non-draft pull requests that an owner, member or collaborator opens from a branch of this repository); and the aggregateAll security checksjob, which fails unless every one of these jobs succeeded or was skipped. Thefuzzjob is called but runs nothing here, asBuild/phpunit.xmlhas no fuzz test suite..github/workflows/ci.yml: PHPStan level 10 (ci:test:php:phpstan), unit and functional tests for PHP 8.2 to 8.6 and TYPO3 13.4 and 14.3; PHP lint once per PHP version; code style (ci:test:php:cgl), Rector (ci:test:php:rector) and the isolated typo3-solver test environment (ci:test:repo) once, on PHP 8.2; and the aggregateAll CI checksjob, which fails unless every CI job succeeded or was skipped..github/workflows/check-template-drift.yml: Template drift compares the.github/files managed by the organisation's typo3-extension template with that template..github/workflows/harness-verify.yml:Build/Scripts/verify-harness.shchecks thatAGENTS.mdanddocs/match the repository.
No exception is recorded: composer.json has no config.audit.ignore entry.
License
GPL-2.0-or-later