# Netresearch TYPO3 Demo
A reproducible, disposable TYPO3 14 showcase for the Netresearch extension suite.
Live at **<https://typo3-demo.netresearch.de/>**.
The instance runs the **same container stack in local dev and in production**
(web, worker, MariaDB, Valkey, Caddy) so what you see locally matches the
deployed site. It is fully GitOps-driven: merge to `main` → images build → the
host pulls and updates itself. There is no manual server editing.
## Showcased extensions
| Extension | What it demonstrates | Backend entry point |
|-----------|----------------------|---------------------|
| `netresearch/nr-llm` | Central AI/LLM foundation (providers, encrypted keys, chat/vision/embeddings) | Admin Tools › LLM |
| `netresearch/nr-mcp-agent` | Tool-using AI chat agent in the backend | Admin Tools › AI Chat |
| `netresearch/nr-vault` | Encrypted secrets management (backs the LLM API keys) | Admin Tools › Vault |
| `netresearch/nr-passkeys-be` | Passwordless backend login (WebAuthn/FIDO2) | User Settings › Account security |
| `netresearch/nr-passkeys-fe` | Passkey login for frontend users | Frontend Passkeys module |
| `netresearch/nr-repurpose` | Turn a page/PDF into a podcast, diagram and story | Content › Repurpose |
| `netresearch/nr-landingpage` | AI-generated landing pages from reusable templates | Content › Landing Pages |
| `netresearch/nr-browser-ai` | On-device page assistant via Chrome's built-in AI, no API key and no server call | (content element on `/extensions/browser-ai`) |
| `netresearch/t3-cowriter` | AI writing assistant inside CKEditor, in the backend form and in the Visual Editor | Tools › Cowriter Status; Content › Edit |
| `netresearch/nr-temporal-cache` | Time-based page-cache invalidation | Tools › Temporal Cache |
| `netresearch/rte-ckeditor-image` | Image support inside the RTE | (RTE toolbar) |
The AI extensions in this table are also available as one package,
[`netresearch/typo3-ai-edition`](https://github.com/netresearch/typo3-ai-edition):
a Composer metapackage that installs nr-llm, nr-vault, t3-cowriter,
nr-mcp-agent, nr-landingpage and nr-repurpose in versions a weekly CI run
installs and tests together on TYPO3 14.3. This demo requires the extensions
individually, so its installed versions can differ from the ones the edition
has tested.
The backend has two dashboards: **Netresearch Demo** (one explainer card per
extension, each with its demo steps under a collapsed "Try it yourself") and
**Netresearch Widgets** (the extensions' own live dashboard widgets).
## Quick start
Requires Docker with the Compose plugin, plus one login: the database runs the
**MariaDB Docker Hardened Image**, and `dhi.io` serves no anonymous pulls.
```bash
docker login dhi.io # Docker Hub account with DHI entitlement
make up # pulls prebuilt images from GHCR, starts the stack, seeds on first boot
```
The hardened image carries a minimal debian-13 base and an entrypoint that
honours `MARIADB_ROOT_PASSWORD` and nothing else. Creating the application
database and user and importing `data/db.sql.gz` is therefore done by the
one-shot `db-init` service (`docker/db/init.sh`) instead of by the image.
Then open the URL printed by `make up` (defaults to `localhost`). The backend is
at `/typo3/`. Backend user is **`nr_admin`**; the demo password lives in the
team password manager (it is not stored in this repo). To see the backend as an
editor, log in as **`redakteur_ki`**: a non-admin with the AI Tasks module and a
small AI budget, whose own usage the module and the Cowriter dialog show. On the
deployed demo its password is in the team password manager too; after a fresh
install there the workflow `Set AI Tasks Editor Password` sets it again. That
workflow only reaches the deployed host, so on a local stack the account has no
password and is entered through "Switch to user" like the others. The other demo editors
(`redakteur_entwurf`, `redakteur_repurpose`) have no password and are entered
through Backend Users > "Switch to user". The database seed is
imported automatically on first boot, including demo content, landing-page
templates and both dashboards.
```bash
make down # stop
make logs # tail service logs
make shell # shell in the web container
make db-shell # MariaDB shell
```
## Local development
```bash
make dev # builds locally; bind-mounts packages/ and config/, Xdebug on, DB on 127.0.0.1:${DB_PORT:-3306}
make dev-down
```
`make dev` is the mode to use when editing the site package or an extension
symlinked into `packages/` — changes are reflected without a rebuild.
### Rendering locally without a dhi.io login
The `db`, `db-init` and `caddy` services need `dhi.io`; the app image and the
seed do not. To render the frontend, skip Compose: the stock MariaDB entrypoint
imports `data/db.sql.gz` on first boot, and nginx in the app container answers
directly (no Caddy, no TLS, no `db-init`).
```bash
docker network create t3net
docker run -d --name t3db --network t3net \
-e MARIADB_ROOT_PASSWORD=root -e MARIADB_DATABASE=typo3 \
-e MARIADB_USER=typo3 -e MARIADB_PASSWORD=typo3 \
-v "$PWD/data/db.sql.gz:/docker-entrypoint-initdb.d/db.sql.gz:ro" mariadb:12
docker exec t3db mariadb-admin --protocol=tcp -h127.0.0.1 -uroot -proot ping --wait=120 --silent
docker run -d --name t3web --network t3net \
-e MARIADB_HOST=t3db -e MARIADB_DATABASE=typo3 -e MARIADB_USER=typo3 -e MARIADB_PASSWORD=typo3 \
-e TYPO3_CONTEXT=Production -e TYPO3_DOMAIN=localhost -e TYPO3_SITE_BASE=/ \
-e TYPO3_ENCRYPTION_KEY="$(openssl rand -hex 32)" \
-p 127.0.0.1:<free port>:80 ghcr.io/netresearch/typo3-demo:latest
while [ "$(docker inspect -f '{{.State.Health.Status}}' t3web)" = starting ]; do sleep 5; done
curl -H 'Host: localhost' http://127.0.0.1:<free port>/
```
`:latest` is the image built from the current `main`. For a checkout of an
older commit of `main`, use `:sha-<full commit sha>` so the image matches the
checked-out `data/db.sql.gz`.
Check that the port is free first and that `docker logs t3web` shows your
request: on a busy port `docker run` fails while `curl` gets an answer from
whatever already holds the port.
The backend (`/typo3/`) needs four overrides, because the generated
`settings.php` is written for production behind Caddy. Append the first three
to the end of `config/system/additional.php` inside the container. The
entrypoint moves its managed blocks back to the end of that file on every
boot, and one of them sets `lockSSL`, so append them again after a restart:
- `trustedHostsPattern` must include the port. Keep it strict: with `.*`,
`nr-passkeys-be` refuses to derive a WebAuthn RP ID from an unvalidated host
(exception 1700000060).
- Clear `reverseProxySSL` and `reverseProxyIP`. With `reverseProxySSL => '*'`
TYPO3 builds `https://` URLs and the login redirects to a port that speaks
plain HTTP.
- Set `$GLOBALS['TYPO3_CONF_VARS']['BE']['lockSSL'] = false;`. The entrypoint
locks the backend to HTTPS, and this container answers only plain HTTP.
- Give a disposable admin a password hash
(`php -r 'echo password_hash($argv[1], PASSWORD_ARGON2ID);' <pw>` into
`be_users.password`).
Screenshots taken this way must not publish the container's own state: vault
secrets and audit entries are created at deploy time, not by the seed, so
their lists are empty; readiness panels report the container's
misconfiguration; and `nr-passkeys-be` shows the detected RP ID, which names
your machine. State that comes from the seed is fine to publish.
A script that fetches a backend module directly (rather than through the
backend shell) gets the shell back unless it sends `Sec-Fetch-Dest: iframe`
and a `Referer` of `/typo3/main`; module URLs carry a per-session `token`, so
read them from a rendered page instead of building them.
## Data lifecycle
The database and fileadmin live in named Docker volumes. Only these commands
touch data:
```bash
make reset # purge app data + re-seed from data/db.sql.gz (preserves Caddy TLS certs)
make update # pull new images + migrate + apply seed-extensions + flush caches (no data purge)
make seed-extensions # (idempotent) apply data/seed-extensions.sql — extra demo records, dashboards, templates —
# and data/seed-falkenquell.sql (the Falkenquell site, see below)
make export-seed # dump the current DB back to data/db.sql.gz
```
`make up` and `make update` prune dangling images automatically, so the host
disk stays bounded across repeated deploys.
To change installed extension **versions**, edit the constraints in
`composer.json` **and refresh `composer.lock` in the same commit**:
```bash
composer update <package> --no-install --no-scripts
```
A partial update leaves every other package at its locked version.
`composer validate` in the `composer-audit` job is the freshness gate and fails
the build when the two files disagree — the image and the attested SBOM would
otherwise describe different resolutions.
Every `composer update`, a partial one included, needs two tokens. Composer
reads each `vcs` repository in `composer.json` in full before it resolves
anything, whichever package is named:
- `https://git.netresearch.de/support/nr-ai-search.git` is private and needs a
GitLab token for `git.netresearch.de` that can read that project.
- `t3x-nr-temporal-cache`, `t3x-nr-bug-reporter` and `t3x-rte_ckeditor_image`
on `github.com` are public, but Composer reads them through the GitHub API,
with requests for every tag. That is more than the 60 requests an hour
GitHub allows without a token, so the update stops with
`Could not authenticate against github.com`.
Pass both in the environment, not in a file, and read them without echo so
that neither lands in the shell history:
```bash
read -rsp 'GitLab token: ' GITLAB_TOKEN; echo
read -rsp 'GitHub token: ' GITHUB_TOKEN; echo
COMPOSER_AUTH="{\"gitlab-token\": {\"git.netresearch.de\": \"$GITLAB_TOKEN\"}, \"github-oauth\": {\"github.com\": \"$GITHUB_TOKEN\"}}" \
composer update <package> --no-install --no-scripts
```
The Build workflow sets the same `COMPOSER_AUTH`; pull requests from forks
have neither token.
An extension update on the demo is nevertheless a full update, so that one
deploy carries everything: raise the netresearch extensions' constraints to
their newest releases, run `composer update --no-install --no-scripts` without
a package name, and update the base images in `docker/web/Dockerfile` in the
same pull request. Close the open dependency-bot pull requests it supersedes,
with a comment naming it. It needs the same two tokens.
Raising `netresearch/nr-llm` past a range its consumers admit (for example to
a new minor in the 0.x series) only resolves once every extension in
`composer.lock` that requires `netresearch/nr-llm` has a release that admits
the new version. List them before starting, not after the resolve fails:
```bash
jq -r '.packages[] | select(.require["netresearch/nr-llm"]) | .name' composer.lock
```
## How deployment works
Merging to `main` triggers, in order:
1. **Build** (`.github/workflows/build.yml`) — builds and pushes the multi-arch
image to GHCR as `:latest` and `:sha-<commit>`; a `validate` job brings the
stack up on push to `main`.
2. **Deploy (Update)** (`update.yml`) — SSHes into the host, fast-forwards the
checkout to the commit that Build built (a manual run: `main`'s head),
stores `TYPO3_DEMO_IMAGE_TAG=sha-<commit>` in `.env` and runs `make update`,
so code and image always come from the same commit. A Build older than the
deployed commit deploys nothing; a commit without an image fails the run.
Never SSH in to edit files by hand; change the repo and let the pipeline deploy.
## Install Tool checks
`make install-tool-check` runs the checks behind four views of the Install
Tool and prints every finding with its severity, check and message:
| Install Tool view | What runs | Check name in the output |
|-------------------|-----------|--------------------------|
| Environment › Environment Status | core's `Check`, `SetupCheck`, `DatabaseCheck` and `ServerResponseCheck` | `environment`, `sapi`, `server-response` |
| Environment › Directory Status | the `DefaultFactory` folder structure (nginx counts as "other web server") and the two create-mask checks | `directory` |
| Maintenance › Analyze Database Structure | `SchemaMigrator::getUpdateSuggestions()` with and without removals | `database` |
| Environment › Image Processing | the read, write, scale and convert tests, on core's own test images | `image` |
It runs the site package's `demo:install-tool:check`. Core ships no command for
any of these views, and `database:updateschema` belongs to typo3-console, which
this project does not install. The command applies nothing: the schema
comparison only lists statements. Like the backend, the server response probe,
the writability test of the directory check and the image tests write temporary
files and delete them again. Image Processing covers the ImageMagick read,
write, scale and convert tests; the view's TrueType, combine-mask and GDlib
tests produce images that only a person can compare with the reference, and
are not run.
The backend runs these checks under php-fpm; the command runs under the CLI.
Core skips the trusted-hosts comparison on the CLI and accepts the CLI's
unlimited `max_execution_time`, so the command evaluates both for php-fpm: the
trusted-hosts result appears under `environment`, `max_execution_time` under
`sapi`, together with every php.ini directive or PHP extension the checks read
that differs between the two SAPIs. The server response probe requests
its test files from the nginx in the `web` container: Caddy in front adds none
of the headers the probe evaluates.
`make update` runs the check after the cache warmup and the removal of the
schema leftovers ([below](#schema-leftovers)). A finding does not stop
the deploy, which has replaced the containers by then: unexpected findings
give the run a warning annotation, a check that did not run an error
annotation, and the full list is in the job log. The pull-request build runs
the same check on the image under test and fails on any unexpected finding.
A finding at warning or above counts as unexpected unless
[`expected-findings.yaml`](packages/netresearch-demo-site/Configuration/InstallTool/expected-findings.yaml)
lists it with the reason it is expected here.
### Expected Install Tool findings
What the four views show on this instance, and why. Entries marked
*listed* are in `expected-findings.yaml`; notices and information are below
the floor and listed here only.
| View | Severity | Finding | Class | Why |
|------|----------|---------|-------|-----|
| Directory Status | error | `/`, `/public`, `/config`, `/config/sites` not writable | intended, listed | The image owns the code and the site configuration; only `var/`, `config/system/`, `fileadmin/` and `typo3temp/` belong to `www-data`. Site configuration is versioned in `config/sites/` here, not edited in the backend. |
| Directory Status | warning | `/var/.htaccess` does not exist | false positive, listed | `var/` lies outside the document root, so the file would protect nothing. Core gates only the root `.htaccess` on the web server type. |
| Directory Status | notice | permissions mismatch (`0755`/`0644` instead of `2775`/`0664`) | intended | The image and the entrypoint create directories with the default umask; nginx reads `fileadmin/` and `typo3temp/` as another user, which these modes allow. |
| Directory Status | notice | `fileadmin/.htaccess` and `user_upload/_temp_/importexport/index.html` content differs | intended | The seed's copies; nginx ignores `.htaccess`, and `nginx.conf` denies the temp folders itself. |
| Directory Status | notice | create masks readable by anyone (`0664`, `2775`) | intended | nginx serves `fileadmin/` and `typo3temp/` as user `nginx`, not `www-data`; core's recommended `0660`/`2770` would make those files unreadable for it. |
| Environment Status | information | empty `systemLocale` | intended | No UTF-8 file names are in use (`UTF8filesystem` is off). |
Analyze Database Structure has no expected finding. `make update` and the
pull-request build remove the schema leftovers it used to list before the
check runs (next section), so every suggestion they report is new, unless the
removal failed: `make update` then adds an error annotation and still runs the
check. `data/db.sql.gz` still carries the leftovers
([#412](https://github.com/netresearch/typo3-demo/issues/412)): on a stack
started with `make up` alone, run `make remove-schema-leftovers` first, or the
check reports them as unexpected.
## Schema leftovers
`make remove-schema-leftovers` removes the tables, columns and indexes that
[`schema-leftovers.yaml`](packages/netresearch-demo-site/Configuration/InstallTool/schema-leftovers.yaml)
lists: 25 tables, 109 columns and 5 indexes that Analyze Database Structure
suggested removing on the live instance, left over from extensions and core
versions this project no longer installs
([#397](https://github.com/netresearch/typo3-demo/issues/397)). It deletes the
data in them; the repository holds everything the demo needs, so no backup is
taken. `make update` runs it on every deploy, after the cache warmup and
before the Install Tool checks.
It runs the site package's `demo:schema:remove-leftovers` and uses core's own
statements, the ones the Install Tool offers:
1. drop the listed indexes,
2. rename the listed tables and columns with the `zzz_deleted_` prefix,
3. drop those renamed copies, and no other `zzz_deleted_` object.
Before each step it asks core's schema comparison again and executes a
statement only when it is a removal suggestion of core and names an object on
the list. So nothing that is not listed is ever removed, and a listed object
that a package defines again is kept and reported as `kept`. Every executed
statement is printed, with the row count of each table. A second run finds
nothing to do and prints `Nothing to do`. `--dry-run` prints the statements
that could run now without executing them; the drop of a renamed copy appears
only once the rename has run.
The run fails (exit 1) when a statement fails, when an object it removed (or
its `zzz_deleted_` copy) is still there afterwards, or when core suggests a removal statement the command cannot
read, because that statement could name a listed object.
On the live instance, before the first run, the tables held: `index_rel` 8,855
rows, `index_words` 2,231, four more `index_*` tables 105 to 129 each,
`sys_language` 2, every other table 0.
A git revert of the change that added the command does not bring the dropped
objects back. It would restore seed statements that write to dropped columns,
and `make seed-extensions`, and with it the deploy, would then fail.
A new removal suggestion, for example from an extension that is uninstalled
later, is not removed: `make install-tool-check` reports it, and removing it
means adding it to the list.
## The OpenAI key
Every AI module on this instance resolves its key through nr-vault, and the
committed dump deliberately carries neither the vault secret nor the provider's
reference to it — `scripts/export-seed-sanitized.sh` strips both before the dump
is published, because the repository is public.
Something therefore has to put the key back after every import, and that is the
`OPENAI_API_KEY` repository secret. `make update` runs `make provision-llm-key`
just before the seed: it stores the value as the vault secret `openai-api-key`
(passed on stdin, never as an argument, never echoed) and points
`tx_nrllm_provider.api_key` at that identifier. The step is idempotent, verifies
both halves afterwards, and fails the deploy if either is missing.
Without the secret the deploy still succeeds and says so — a missing key must
not take the whole instance down — but every AI module reports "API key
identifier is required for provider OpenAI" until it is set. Rotating the key
means updating the repository secret and re-running the deploy; nothing has to
be clicked in the backend, and no reset can lose it again.
## Alternative texts (ai_filemetadata)
`mfd/ai-filemetadata` generates alt texts for FAL images: a generate button next
to the alt-text field, an automatic run on upload, and `vendor/bin/typo3
ai:generate-alt-texts` for the existing stock. It ships no backend module.
It cannot use nr-vault. Like autotranslate it reads a plain key from its own
extension configuration — but unlike DeepL it speaks the OpenAI API directly, so
the existing `OPENAI_API_KEY` secret covers it and no second secret is needed.
`make update` runs `make persist-env-secret SECRET_NAME=OPENAI_API_KEY` before
`up`, which writes the value into the host `.env` (so a reboot keeps it); compose
passes it to `web`; and the entrypoint writes it, together with the four
behaviour settings, into **`config/system/settings.php`**.
That file, not `additional.php`, is the one that works — and the difference is
not cosmetic. The extension reads its behaviour settings through
`ConfigurationService` → `ConfigurationManager::getMergedLocalConfiguration()`,
which is `getDefaultConfiguration()` merged with `require settings.php`.
`additional.php` is applied on top of `$GLOBALS` instead and never reaches that
call, so four of the five keys would silently fall back to the extension's
catch-defaults — and those fail **open**: `imageResizing = 0` (no downscaling,
full-resolution images billed by the pixel) and `generateAltTextInFrontend =
true` (a synchronous OpenAI call while a visitor waits for the page). Only
`apiKey` would have arrived, because that one is read via
`ExtensionConfiguration::get()`, which does read `$GLOBALS`.
The key therefore sits in `settings.php` in plaintext, next to
`MARIADB_PASSWORD`. There is no alternative for this extension: it has no
nr-vault support, and `typo3 extension:setup` would copy the value there anyway.
Two things that cost a measurement each, so they are written down rather than
rediscovered:
- **`.env` values are interpolated, and `$$` is the escape.** compose expands
`$NAME` in a `.env` value and collapses `$$` back to one literal `$` there,
exactly as it does in `compose.yml`. `persist-env-secret` doubles dollars on
the way in. **Do not verify this with `docker compose config`** — it
re-escapes a literal `$` back to `$$` in its own output, which reads exactly
like a failure and is not one. Measure with `printenv` inside a running
container; against compose v5.3.1, `V=sk-a$$b` in `.env` arrives as `sk-a$b`.
- **`imageResizing` is a cost control, not a quality setting.** Images are
billed by the pixel and a 50-word alt text does not need full resolution;
the demo shrinks to 512.
`generateAltTextInFrontend` is off: a missing alt text must not trigger a
synchronous API call while a visitor waits for the page. `enableTokenTracking`
is on, and the three token widgets sit on the Netresearch Widgets dashboard.
The automatic run on upload happens only in a **backend request** — an upload
in the file list or a file field. Upstream's listener only skips frontend
requests, so it also ran on the CLI: nr_repurpose saves its rendered images to
FAL, each save called the vision model, nothing in the chain catches an
exception, and one failed call aborted the artifact. The composer patch
`patches/mfd-ai-filemetadata-application-type.patch` narrows the guard to the
backend, and the image build fails if the installed listener lacks it. Existing
images without an alt text still get one from the generate button or
`ai:generate-alt-texts`.
An upload generates the alt text in **English and German**. The entrypoint
writes `EXTCONF.ai_filemetadata.falLanguageMappings` into `settings.php` —
again the only file the extension reads — with `"1:/" => [0 => "en_US.UTF-8",
1 => "de_DE.UTF-8"]`: all of fileadmin (storage 1), site languages 0 and 1. The
listener writes the English text into the new metadata record and then creates
the German metadata translation (`sys_language_uid = 1`) with its own call, so
an upload is expected to cost two vision calls. Without the mapping only English
was generated. `falExcludedPrefixes` is not configured: the upload listener does
not consult it.
A failed generation never fails the upload. The same composer patch wraps the
vision call, the metadata update and the German translation in a `try`; on any
exception the upload succeeds and the TYPO3 log gets a warning "Alt text
generation on upload failed for file …" with the file uid, exception class and
message — not the file name, which may carry personal data. That file then has
no alt text (vision call failed) or no German one (translation failed); the
generate button fills it later. A second patch,
`patches/mfd-ai-filemetadata-fal-adapter-log.patch`, makes the extension log
its DataHandler errors as a warning instead of `var_dump()`ing them as HTML
into the upload's AJAX response.
The German record is written through DataHandler as the uploading user.
`bypassAccessCheckForRecords` skips only the page permission check, so a
non-admin needs modify access to `sys_file_metadata` and access to language 1
to get a German alt text; without it the upload keeps only the English text
and logs the warning. All seeded accounts that can upload are admins.
## Search index (lochmueller/index)
The AI search reads the page index of `lochmueller/index`, which indexes a page
from its content records after a backend save, a record command or a cache
clear. Its Bootstrap Package handlers read each field with `Record::get()`,
which throws for a field the record's type does not have: a carousel item of
type "header" has no bodytext, one of type "image" or "background image" no
subheader. The handler catches the exception for the whole page, logs it as
`Record property "bodytext" is not available.` and leaves that page out of the
index. The composer patch
`patches/lochmueller-index-bootstrap-package-optional-fields.patch` reads a
field only where the type has it, and the image build fails if the installed
handler lacks the check.
## Extension advisor chat (nr_ai_search)
The hidden AI Search page (`/extensions/ai-search`) carries an AI Chat element
"AI Chat: Extension advisor" (tt_content 9243, German 9244). Its topic area is
the Extensions page and its subpages, and its nr_llm configuration
`nr_ai_search.chat.advisor` has a system prompt that asks for the visitor's
need, recommends at most three extensions from the retrieved pages and links
them. Both settings are per element (nr_ai_search ADR-041). Two other elements
on the page set them too: "AI Search: Secrets Vault only" (9233, German 9234)
searches the Secrets Vault page (107) with the `nr_ai_search.chat.brief`
configuration, and the search the page template renders (9241, German 9242)
searches page 107 with the default configuration; the remaining elements use
the whole index and the default configuration. It stays on the hidden page for
the same reason as the other widgets: a public chat lets any visitor start paid
model calls.
The configuration is created once by the seed; an admin's later edits to its
prompt are kept. Each deploy refreshes its model binding and sets it active
again, so a configuration an admin switched off is switched back on.
## Structured data and Markdown for AI crawlers
`brotkrueml/schema` writes the JSON-LD of every page: one block before
`</body>` with the `WebSite` and `Organization` nodes from SCHEMA objects in
the NetresearchDemo set, and the `WebPage` node the extension adds itself. The
Browser AI form assistant page (9004) adds a `SoftwareApplication`, its
`SoftwareSourceCode` and a `HowTo` with four steps from the listener
`Classes/EventListener/AddBrowserAiFormAssistantStructuredData.php`, because a
SCHEMA object cannot express a list of typed nodes.
`b13/ai-bots-love-markdown` answers a page with Markdown when the request
sends `Accept: text/markdown`: the content of `<main>` with the page metadata
as YAML front matter, `X-Robots-Tag: noindex`. Every HTML page announces it
with `<link rel="alternate" type="text/markdown">`. The site has no PageType
route enhancer, so that link reads `?type=2026` rather than ending in
`/ai-bots-love.md`; adding an enhancer would change the URL of every page. It
is root-relative (`/extensions?type=2026`) although the extension asks for an
absolute URL: the site base is `/` (`TYPO3_SITE_BASE`), the same reason the
`og:image` tag is built from `TYPO3_SITE_URL`.
The middleware sends `Vary: Accept` on every HTML response; nginx passes it
through, Caddy's compression adds `Accept-Encoding` to the list, and the
`validate` job of the Build workflow checks that `Accept` arrives.
`/llms.txt` is not affected: nginx still serves the curated one.
## Page scores (sitescore)
`in2code/sitescore` adds a score dashboard (GEO & SEO, performance, semantics,
keyword, accessibility) with suggestions at the top of the Page module; "Analyze
Page" starts an analysis. Sitescore asks Google Gemini by default and needs a
Gemini key for that. This instance has none: `docker/web/entrypoint.sh` enables
the `sitescore` integration of `netresearch/nr-llm-compat` (0.5.0 and later),
which points sitescore's `llmRepositoryClass` hook at a bridge that sends the
analysis through nr-llm's default configuration and its provider key.
Sitescore fetches the page's rendered HTML over HTTP from the backend request's
domain and sends all of it, with the page title and the page's
`tx_sitescore_keyword`, to the model. `vendor/bin/typo3 nrllm:compat:status`
shows whether the integration is active. `vendor/bin/typo3
sitescore:analyzePage` does not work here: with the site base `/` it cannot
build an absolute page URL outside a backend request. On a local `make up`
with `TYPO3_DOMAIN=localhost`, "Analyze Page" fails as well: the fetch goes to
`https://localhost/`, which inside the `web` container is the container itself,
and it serves plain HTTP only. On a public domain the fetch leaves the container
and reaches Caddy.
## AI actions on files and image categories (nr-llm)
Right-clicking a file or folder in Media › Filelist offers "AI actions"
(nr-llm 0.43.21): the Editor Action Center for that file, or the batch page for
the folder. It has no setting of its own; the item appears for users with the
nr-llm task grant and the AI tasks module, which includes the admin login, and
only while at least one editor action is left for `sys_file`. All three of
them (alternative text, file metadata, categories from the image) read the
image, so the default configuration's model must declare the `vision`
capability (or no capability at all). The default model here (uid 1,
`gpt-6.1-sol`) lost `vision` in a backend edit, and the file list showed no
item at all until `data/seed-extensions.sql` declared it again (#494). If the
item disappears, check the model's capabilities in the nr-llm Models module.
For a non-admin user the item also needs the right to change the file's
metadata (on a file) or read access to the folder (on a folder), as nr-llm's
file storage gate decides it.
One of the actions, "Set categories from the image", lets the model choose
categories for an image from what it shows, but only existing categories below
the root named in `vision.categories.rootUid`. The entrypoint sets that root to
`sys_category` 7100 in the managed `nr_ai_search` block of
`config/system/additional.php`, and seeds the tree on every boot: the root
"Bildthemen" (7100) with eight children (7101–7108: Menschen und Team, Büro und
Arbeitsplatz, Sport und Fitness, Gesundheit und Therapie, Logistik und
Industrie, Natur und Landschaft, Logos und Grafiken, Screenshots und Software)
that match the images in `fileadmin`. The writing tool behind the action,
`set_file_categories`, ships disabled; `data/seed-extensions.sql` (step 8g2)
enables it like the other writers. Every proposal stops at an approval card.
## Audience variants (Cowriter) and the AI crawler context
The Cowriter's "Create an audience variant" button (t3-cowriter 3.27) sits next
to the rich text of Text, Text & Images and Text & Media elements. The model
rewrites header and text for an audience, the editor reviews the proposal, and
a hidden copy is created after the original; with `netresearch/contexts` the
editor can give the copy a context and show it there. The entrypoint switches
it on (`variant.enable = "1"` in `settings.php`, next to the other Cowriter
switches) and seeds the prompt snippets the dialog offers: three tagged
`audience` (7111–7113: Einsteiger, Entscheider, Entwicklerinnen und Entwickler)
and two tagged `tone_of_voice` (7114–7115: sachlich, freundlich). The button
does not appear without an active `audience` snippet. An element that has
translations, or is a connected translation, gets no variant; a new text
element without translations is the simplest way to try it.
contexts 5.1 adds the context type "AI crawler", which is active while the
User-Agent names a known AI crawler or fetcher (GPTBot, ClaudeBot,
PerplexityBot and others). The entrypoint seeds one such context, "KI-Crawler"
(`tx_contexts_contexts` uid 7120, alias `ai-crawler`), so a variant can be
given to AI crawlers only. The User-Agent is set by the client; the context
detects what a client claims to be.
## AI Chat turns
`chat-worker` runs the turns of the AI Chat, in two replicas. A booted process waits
for a turn, runs it and ends, and the loop in the service starts the next one, so a
reader does not wait for TYPO3 to boot. A turn that finds no free worker starts a
process of its own in the web container (nr_mcp_agent ADR-029). The strategy is set
in `docker/web/entrypoint.sh`.
## Background AI runs
nr-llm stores a background run and leaves it there. The `scheduler` service runs
`scheduler:run` once a minute, and four Scheduler tasks (seeded in
`data/seed-extensions.sql`, step 3g, uids 9001 to 9004) are what it executes:
- `nrllm:agent:work` every minute and `nrllm:agent:reap` every minute. Without
them a queued run stays queued. They replaced the former `llm-agent-worker`
loop: one executor of the queue keeps the Planer's last-execution time and the
run's start time comparable.
- `autotranslate:batch:run` every five minutes translates the waiting items of the
Batch Translation module.
- `nrllm:a2a:poll` every minute delivers the push notifications of the A2A server
role (next section).
Frequency and the disabled flag can be changed in the Scheduler module; a deploy
does not reset a changed row. The tasks allow overlapping executions, so a task a
deploy killed does not stay marked as running. Another loop service does the rest,
in the style of `chat-cleanup`:
- `alt-text-batch` runs `nrllm:editor-action:batch set_file_alternative_text` over
`1:/introduction/images/unsplash/` once a day and after every deploy. Each of the
five images without a text becomes one run, which sends the image to the model
and stops at its approval card. Nothing is written before an admin approves the
card in **AI > Agent Runs**.
A repeat costs nothing: a file with an open or decided card, or with a text, is
skipped. The run history is **Background runs** in the same module.
The worker task and `alt-text-batch` act as `nr_llm_worker` (be_user 994), seeded in
`data/seed-extensions.sql`. It is not an admin and cannot log in. Its one file mount
is that folder, because the rights of `--user` decide which files a run reaches. On
the command line nr_vault refuses the provider key to a process without a logged-in
user, and `allowCliAccess` stays off here, so `worker.technicalBeUserUid = 994`
(written by the entrypoint) makes the worker read the key as this user, whose group
holds the read tier on that one secret.
`fieldFill.fields` stays empty on purpose: a save does not start a background run
here.
## A2A server role (nr-llm)
The default site answers the Agent2Agent protocol (A2A 1.0) of nr-llm. Another
agent reads the agent card at `https://<domain>/a2a/.well-known/agent-card.json`,
sends tasks to `https://<domain>/a2a` with a bearer token, follows them with
Server-Sent Events, can register a webhook for push notifications and can send a
text or JSON file.
- **Base URL.** `nrllm.a2a.baseUrl` in `config/sites/default/settings.yaml`, built
from `TYPO3_DOMAIN`, written nested (`nrllm:` / `a2a:` / `baseUrl:`). TYPO3 reads
a dotted key such as `nrllm.a2a.baseUrl` only while a set of the site defines it;
the nested form is read either way. The site also depends on the set
`netresearch/nr-llm`, which shows nr-llm's settings in the Site Settings module.
- **nginx.** `nginx.conf` denies every path with a dot segment (`.git`, `.env`
and the like). One exact location lets `/a2a/.well-known/agent-card.json`
through to TYPO3; every other dot path stays denied.
- **Switches.** The entrypoint block `nr_llm_a2a` in `additional.php` turns on the
server role, push notifications and client files.
- **Records.** The entrypoint seeds them after `extension:setup`, found by name,
created once:
- `demo_text`: answers a request with the text skill, read-only;
- `page_metadata`: writes metadata fields of one page as a draft in the workspace
"Entwurf", each write after an approval in **AI > Agent Runs**. It reads the
page with `get_page_content` first, so the seed enables that tool as well;
- `file_inbox`: stores a text, JSON or PDF file the client sent in the inbox
folder with `adopt_client_file`, each file after an approval in
**AI > Agent Runs**;
- the client "Demo A2A client", which runs as the non-admin `a2a_demo_client`
in that workspace.
- **Inbox.** The storage "A2A inbox" is a Local storage with the absolute base
path `/var/www/var/a2a-inbox/` in the `typo3-var` volume: outside the web root
and not public, as nr-llm requires for an inbox. The group "A2A demo client"
has a writable file mount on it; the technical user writes the file, the
approving editor's rights do not count. Nothing references an adopted file
until an editor uses it.
- **Token.** The client has none until an administrator issues one in
**AI > A2A tokens**. Revoke it there after use. A revoke also disables the
client record, and a token for a disabled record is refused with `401`: the
next token takes **Enable and generate token** in the same module (nr-llm
0.51.0 and later), which switches the record on and issues the token in one
step. The seed does not switch the record on again.
## Social posts and the webhook test receiver (nr-repurpose)
nr-repurpose does not post to social networks itself. When an approved social
post is due, `nr_repurpose:publish-due` sends it as JSON by POST to the URL in its
extension setting `socialWebhookUrl`; a scheduling tool, an automation service or
an own endpoint takes it from there. The `social-publish` service runs that command
every five minutes.
On this demo the URL points at a test receiver of the site package, so the whole
path can be shown without a network account:
- `docker/web/entrypoint.sh` sets `socialWebhookUrl` to
`https://$TYPO3_DOMAIN/_social-webhook-test` and `socialWebhookSecretIdentifier`
to `demo_social_webhook_test`. nr-repurpose sends only to a host whose addresses
are all public, so with `TYPO3_DOMAIN=localhost` the URL stays empty and the
command only counts the due posts.
- `make provision-social-webhook-secret` (part of `make update`) creates that vault
secret once, from random bytes, as the provisioning identity 991; it never prints
it. The seed (step 3f in `data/seed-extensions.sql`) gives group 992 the read tier
on it.
- nr-repurpose signs every post with it (`X-Nr-Repurpose-Signature: sha256=<HMAC>`),
reading as be_user 992. The receiver
(`packages/netresearch-demo-site/Classes/Middleware/SocialWebhookTestReceiver.php`)
reads the same secret as the same user and stores a post only when the signature
matches. It answers 401 without a well-formed signature, 403 for a wrong one, 503
when it cannot read the secret, 400 for a body that is not a JSON object and 413
above 64 KB. nr-repurpose shows that code at the post as "Webhook answered
HTTP …". A GET to the path gets the site's 404.
- Accepted posts are records of `tx_netresearchdemosite_social_webhook_receipt` on
the root page: **Content > Records**, page 0, admins only. Each holds the platform,
the text, the time the post was scheduled for, the artifact and job uids, the
source URL and the payload as received. The seed export truncates the table.
To see it: in **Content > Repurpose**, approve a social post of a finished job,
schedule it a few minutes ahead, and wait for the next `publish-due` run. The post
then shows as published in the job, and the record appears on page 0.
## The DeepL key
The key travels as the `DEEPL_API_KEY` repository secret and reaches two places.
**nr-llm, through nr-vault.** `make update` runs `make provision-deepl-key`
right after `make provision-llm-key`. It stores the value as the vault secret
`deepl_api_key` only after DeepL has accepted the key (`GET /v2/usage` answers
200, sent from the `web` container). A rejected or unreachable key is not
stored and the deploy logs a warning, because the Cowriter does not fall back
to the language model when DeepL errors: a dead key would break every Cowriter
translation. The secret is stored the same way the OpenAI key is: on stdin, never echoed,
written as the provisioning user 991, which owns a secret it created. It fails
the deploy if `vault:store` fails or the secret is missing afterwards. The
entrypoint sets `EXTENSIONS.nr_llm.translators.deepl.apiKeyIdentifier` to that
name. nr-llm's DeepL translator counts as available only when the identifier
names an existing secret; otherwise the Cowriter translates with the language
model. An empty variable skips the step and keeps a stored secret.
**autotranslate's extension configuration.** `thieleundklose/autotranslate`
reads its key from the extension configuration or from the site configuration
and has no nr-vault support at all, and the site configuration is public in this
repository. `make update` runs
`make persist-env-secret SECRET_NAME=DEEPL_API_KEY`, which writes the key into
the host `.env` (so a reboot keeps it), compose passes it into the `web`
container, and the entrypoint writes it into `config/system/additional.php` as
a managed block. An empty variable keeps
whatever key that file already holds; it never wipes it. autotranslate does not
translate with this copy, though: the entrypoint sets autotranslate's setting
`translatorClass` to nr-llm's
`Netresearch\NrLlm\Integration\Autotranslate\AutotranslateTranslator`
(nr-llm ADR-289), which sends the texts to nr-llm's language model; nr-llm's
setting `autotranslate.translator` stays empty here. Rich text goes as HTML. A
page or content element that receives machine-translated text gets nr-llm's
AI-written marker and AI Label's "AI-modified" origin in the same write; the
site's AI Label partial renders that origin as its notice. The batch command reads the provider key as
`worker.technicalBeUserUid`, like nr-llm's own worker.
autotranslate 3.6 reads neither `translatorClass` nor the batch mode "Create
new (missing) translation only". Two composer patches carry them until a
release does, each the change of an upstream pull request:
[#175](https://github.com/thieleundklose/tk-typo3-autotranslate/pull/175)
(`patches/thieleundklose-autotranslate-translator-class.patch`) and
[#176](https://github.com/thieleundklose/tk-typo3-autotranslate/pull/176)
(`patches/thieleundklose-autotranslate-create-only-mode.patch`). Drop each patch
once a release contains its pull request.
Language mapping lives in `config/sites/default/config.yaml` and is not secret:
`deeplSourceLang: EN` on the English language, `deeplTargetLang: DE` on the
German one, plus the per-table `autotranslate*` keys. Without `deeplTargetLang`
the extension skips its whole DeepL block, and the localization then creates the
German record as a plain copy of the English source.
Two upstream defects make that failure mode hard to see, and both are why this
instance runs `autotranslate.debug = 1`:
- [#156](https://github.com/thieleundklose/tk-typo3-autotranslate/issues/156) —
batch translation reports `done` when nothing was translated.
- [#157](https://github.com/thieleundklose/tk-typo3-autotranslate/issues/157) —
`LogUtility` drops error messages unless `debug` is on.
A green `done` badge is therefore not evidence. Check the frontend, or the
module's translation-cache counter.
A translation made with the Cowriter in the rich text editor goes to nr-llm's
DeepL translator whenever the vault secret above exists, and a language model
then revises the DeepL text, so each one costs two requests. The entrypoint
switches the revision on by writing the cowriter setting
`translation.polish = "1"` into `config/system/settings.php`, next to the
ai_filemetadata settings. When the revision fails or changes markup,
placeholders or glossary terms, the DeepL text is inserted unchanged. Without
the secret the Cowriter translates with the language model in one request and
nothing is revised. The JSON answer of the translate route shows which path ran:
only the DeepL path carries `translator` and `polished`.
The Cowriter's **Generate image** button (3.17+) is switched on the same way:
the entrypoint writes `image.enable = "1"` next to `translation.polish`. The
image is generated with nr-llm's OpenAI key, stored in the editor's default
upload folder and inserted through rte_ckeditor_image, which the demo RTE
preset imports. `image.model` is not set, so the Cowriter uses the active image
model of nr-llm's model registry, or `gpt-image-2` when there is none. Because
the file is added through FAL in a backend request, ai_filemetadata's
alt-text-on-upload also runs for it: one vision call per mapped language, so
two with the English and German mapping described above, on top of the image
request itself. From 3.18 the same switch also adds a **Generate image** control
to file fields that accept PNG (for example the images of a Text & Media
element); the generated file is added to the field as a new file reference.
The Cowriter's inline suggestions (3.19+) are switched on the same way: the
entrypoint writes `inlineSuggestions.enable = "1"`, and the demo RTE preset
lists the per-editor toggle `cowriterInlineSuggestions`. After a pause in typing
at the end of a paragraph or heading, a short continuation appears as grey text;
Tab inserts it. Each suggestion is a request against the editor's nr-llm budget,
also when it is not taken: at most one every 5 s per field and 12 per minute per
backend user.
The Cowriter's **Present as tabs or accordion** button (3.20+) is switched on
the same way: the entrypoint writes `presentation.enable = "1"`. It appears next
to the rich text of Text, Text & Images and Text & Media elements, because the
demo installs bootstrap_package. A text with h2 or h3 headings is split at them
without a request; a text without headings costs one request against the
editor's nr-llm budget. The new Tabs or Accordion element is created hidden
after the original, and a switch in the dialog shows it and hides the original.
There is no switch for an element with translations or for a connected
translation; the dialog says what to do instead.
From 3.21 the field suggestion button appears on all descriptive page fields
and on the header and subheader of content elements, and the record's document
header offers "Suggest values for all fields with AI". From 3.22 every
Cowriter dialog ends with "About this suggestion": the nr-llm configuration and
model, which context sources were sent, and the current settings. 3.22 also
sends more page context with field suggestions: the descriptive page fields the
editor may read, the parent page title and up to five neighbouring page titles,
capped at 16,000 characters. No entrypoint change is needed for either.
From nr-mcp-agent 0.26 the chat lists order conversations by their last message.
`extension:setup` adds the new columns, and the entrypoint runs the upgrade
wizard `nrMcpAgent_lastMessageTime`, which fills the time for older
conversations. The dashboard widget "Recent chats" is full width from 0.26.2;
the entrypoint runs the wizard `nrMcpAgent_recentChatsWidgetSize`, which widens
a stored narrow position on dashboards arranged before.
From nr-mcp-agent 0.27 the "KI-Assistent" widgets follow the designer's mockup,
and page actions open the page module with the chat beside it. The seed adds
"Seite bearbeiten" and "Inhalte erstellen" to existing "KI-Assistent"
dashboards and removes "Häufige Aufgaben" from them once, recorded per
dashboard in `sys_registry`; later edits by the user are kept. The new cache `nrmcpagent_dashboard` gets its tables from
`extension:setup`, which the entrypoint runs on every start.
## The Falkenquell site
A second site in the same instance: the fictional town of Falkenquell, with its
own page tree, site package (`packages/falkenquell-site`), German and English
content, news, events and forms. It answers on `ai-demo.netresearch.de` and
sits behind basic auth until it is announced.
**Records.** `data/seed-falkenquell.sql` holds every record of the site in the
seed uid band (9300 and up, rules at the top of `data/seed-extensions.sql`) and
`make seed-extensions` applies it after `data/seed-extensions.sql`. It only
ever inserts: after the first deploy the live instance owns the records, and
later deploys change none of them. A record that is deleted for good on live
(also from the recycler) is created again by the next deploy. A seeded uid held
by a row with a different `crdate` is reported as `SEED-PROBLEM` and fails the
deploy. The file is generated, never edited by hand: build the site locally,
then
```bash
docker compose exec -T web php -- 9300 < scripts/falkenquell-seed.php > data/seed-falkenquell.sql
```
`9300` is the root page. The script keeps uids that are already in the band and
gives records created since then the next free one; it prints the page uid map
on stderr, and `config/sites/falkenquell` has to follow any page that moved.
**Files.** Images and PDFs live in `data/fileadmin/falkenquell/` and reach the
volume through the fileadmin sync in `entrypoint.sh`. The forms are
`form_definition` records in the seed, not YAML files.
**Domain.** `TYPO3_ADDITIONAL_DOMAINS` (default `ai-demo.netresearch.de`) adds
hosts to `trustedHostsPattern` through a managed block in
`config/system/additional.php` on every boot; `settings.php` only gets its
pattern on first boot. Caddy serves `FALKENQUELL_DOMAIN` (same default) with
the proxy settings of the main site, plus basic auth.
**Basic auth.** Two repository secrets, written into the host `.env` by
`make update`:
| Secret | Value |
|---|---|
| `FALKENQUELL_BASIC_AUTH_USER` | user name |
| `FALKENQUELL_BASIC_AUTH_HASH` | bcrypt hash of the password, from `caddy hash-password` |
Without them `compose.yml` hands Caddy a hash of a random password nobody
knows, so the site stays closed rather than open. To open it for good, remove
the `basic_auth` block from `docker/caddy/Caddyfile`.
The secret holds only the hash, so the password cannot be read back from
GitHub. The user name and password that people log in with belong in the
team's Bitwarden, as an item with the site's URL.
**TLS certificate.** Caddy requests the certificate for `FALKENQUELL_DOMAIN`
when it starts. If the name does not resolve yet, the request fails with
`NXDOMAIN` in the Caddy log, and Caddy retries with a pause that grows
exponentially, up to one day between attempts
([Caddy docs](https://caddyserver.com/docs/automatic-https)). On 2026-11-10
the pause had reached one hour. To request the certificate at once after the
DNS record went live, reload Caddy on the host:
```bash
docker compose exec -T caddy caddy reload --config /etc/caddy/Caddyfile --force
```
The reload keeps the container running. A **Deploy (Update)** run does not
help here: `make update` leaves an unchanged Caddy container running.
### Content changes on the live instance
Editors change content on live for two different reasons, and each has its own
way of handling the result.
**Changes that should stay** (refining the example site). Edit in the live
workspace as usual. Every **Deploy (Update)** keeps these changes, because the
seed only inserts missing records. They are part of a fresh install only after
they went back into the repository:
1. Run the **Export DB Seed** workflow. It dumps the whole instance, both
sites, without API keys, vault secrets, logs, sessions and caches.
2. Download the artifact within three days and decrypt it with
`DIAG_PASSPHRASE` (command at the top of
`.github/workflows/export-seed.yml`).
3. Review the dump, commit it as `data/db.sql.gz` and open a pull request.
Three things the export leaves out:
- Files. Uploads live in the fileadmin volume of the host; copy new ones to
`data/fileadmin/falkenquell/` in the same pull request.
- Drafts. Records that exist only in a workspace are removed from the dump.
- Records deleted for good. A seeded record that is also gone from the
recycler comes back with the next deploy; leave deleted records in the
recycler.
Take the export while live holds no leftovers of a demonstration, or they
become part of the seed.
**Retiring a seeded record.** Removing its `INSERT` only keeps it out of a
fresh install; the live instance keeps the row, because the seed never deletes.
Replace the `INSERT` with an idempotent `UPDATE ... SET deleted = 1` that
matches the uid and a second field of the record (identifier or title), and
leaves a record that other content still references alone. The wizard
templates "Event Promotion" and "SaaS Feature Page" (uids 902 and 904 in
`data/seed-extensions.sql`) were retired this way when nr-landingpage began to
ship its own "Event" and "SaaS Feature".
**Changes for a demonstration** (to be thrown away afterwards). Work in the
workspace "Entwurf" (uid 9001, step 3c3 in `data/seed-extensions.sql`):
1. Switch to the workspace "Entwurf" before the demonstration.
2. Change content there, by hand or through the AI chat. The live site stays
as it was; the workspace preview shows the changes.
3. Afterwards open the Workspaces module, choose the mass action for the
entire workspace and select "Discard".
Discard the entire workspace rather than single records: changing a record
also creates a workspace version of its translation, and discarding the
record leaves that version behind. Uploaded files are not versioned and stay
in fileadmin.
Tried on the Falkenquell start page with a changed headline: the live record
and the live frontend stayed unchanged, and discarding removed the versions.
The AI chat was not part of that check.
A reset of the Falkenquell page tree alone does not exist. A target that
brings only this tree back to the seed would close the gap between the
workspace and the full reset below.
**Full reset.** **Deploy (Fresh Install)** is the only way to bring the
instance back to the state in the repository, and it is not a routine step:
- It removes the database, fileadmin, var and config volumes of the whole
instance, so the Netresearch demo site is reset as well.
- Everything changed on live since the committed `data/db.sql.gz` is lost.
Export first if any of it should stay.
- The site is down while the instance is rebuilt.
- Its last runs, on 2026-03-12, failed. Agree on a run with the maintainer of
the instance.
## Backend languages
The backend is available in German as well as English. The entrypoint adds the
languages in `BACKEND_LANGUAGES` (`docker/web/entrypoint.sh`) to
`LANG/availableLocales` and downloads their language packs with
`language:update`, on the first boot and again whenever the installed packages
change. Each backend user picks the language under *User Settings › Language*.
Do not install a language through *Maintenance › Manage Language Packs*: it
writes into the `typo3-config` and `typo3-var` volumes, and `Deploy (Fresh
Install)` removes both. Add the language to `BACKEND_LANGUAGES` instead.
A boot that has to download or refresh a pack needs outbound HTTPS to
`localize.typo3.org`; a boot whose packs are current contacts nothing. Without
network the boot logs a warning, keeps the labels already present and tries
again on the next start. The labels an extension ships itself do not depend on
it.
## Visual Editor
`friendsoftypo3/visual-editor` adds **Content › Edit**: the page opens in its
frontend preview, and texts are edited in place with CKEditor 5 and the same
RTE preset as the backend form, so the Cowriter buttons appear there too.
A field is editable only where the template renders it with `f:render.text`.
bootstrap_package renders the bodytext with `f:format.html`, so the site
package carries copies of bootstrap_package 16.0.1's `Text`, `Textpic*` and
`Textmedia*` templates that differ only in that line, plus the
`record-transformation` processor for these three types. Outside the editor
the output is unchanged. The image build compares the installed originals
with `docker/web/bootstrap-text-templates.sha256` and fails when
bootstrap_package changes one of them, as it does for the image partial.
The module (`web_edit`) is open to a non-admin only through a group's module
list. The seed adds it to "Simple editors" and "Advanced editors" beside the
Page module, so every demo editor reaches it.
Visual Editor 1.10.4 cannot render a field whose preset lists an
`importModules` entry as a plain string; every rich-text field then fails
with a TypeError. Since 13.10.5, rte_ckeditor_image's preset uses the
`{ module, exports }` form like the other presets in the chain, so no patch
is needed.
Not editable in the Visual Editor: headers and all other content types
(their templates are bootstrap_package's own), and dragging content elements
(bootstrap_package's page templates render the columns with
`lib.dynamicContent`, which the editor does not mark as content areas).
## Verifying the image SBOM
Every image pushed from `main` carries a CycloneDX SBOM as a signed GitHub
attestation. Verifying it needs two flags that are easy to miss:
```console
$ gh attestation verify oci://ghcr.io/netresearch/typo3-demo:latest \
--repo netresearch/typo3-demo \
--predicate-type https://cyclonedx.org/bom \
--signer-repo netresearch/.github
```
Without them the command fails, and it fails in a way that reads like the
attestation is missing rather than like the query is wrong:
- **`--predicate-type`** — `verify` looks for SLSA provenance unless told
otherwise, and this is an SBOM attestation. Omitting it answers `HTTP 404:
Not Found`.
- **`--signer-repo`** — the attestation is signed by the shared workflow, not
by this repository. The certificate names
`netresearch/.github/.github/workflows/attest-sbom.yml@refs/heads/main`, so
`--repo` alone cannot match the signer and verification is refused.
To read the SBOM itself, add `--format json` and take `.[0].verificationResult
.statement.predicate`.
## Operations workflows (manual, `workflow_dispatch`)
Run these from the repo's **Actions** tab:
| Workflow | Purpose |
|----------|---------|
| `Deploy (Fresh Install)` | Full reset + reinstall (wipes data — requires typing `yes`) |
| `Reset BE Admin Password` | Reset a backend user's password to the `TYPO3_BE_ADMIN_PASSWORD` secret |
| `Set AI Tasks Editor Password` | Set the password of the non-admin demo editor `redakteur_ki` to the `TYPO3_BE_EDITOR_KI_PASSWORD` secret (run once after a fresh install or reset) |
| `Remote Diagnostics` | Read-only host/DB snapshot, output encrypted with `DIAG_PASSPHRASE`; counts, identifiers and versions print in plain text, among them the checks after an update (nr-repurpose job columns, `extension:setup failed` in the web container log, nr-repurpose timeout-rule warnings, installed netresearch package versions) |
| `Export DB Seed` | Produce a **sanitized** DB dump (API keys/secrets/logs stripped) as an encrypted artifact for review before committing |
| `Host Maintenance` | Deeper disk reclaim (all unused images + build cache; never volumes) with `df` before/after |
## Layout
```
compose.yml / compose.dev.yml # production stack / dev overrides
docker/ # web + db images, entrypoint
data/ # db.sql.gz (DB seed), seed-extensions.sql, seed-falkenquell.sql, fileadmin
packages/netresearch-demo-site # site package: TypoScript, RTE preset, dashboard widgets/presets
packages/falkenquell-site # site package of the Falkenquell site
scripts/falkenquell-seed.php # generates data/seed-falkenquell.sql
config/ # TYPO3 site + system config
deploy/ # host provisioning
.github/workflows/ # build, deploy, and the ops workflows above
```