Download the PHP package netresearch/nr-browser-ai without Composer

On this page you can find all versions of the php package netresearch/nr-browser-ai. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package nr-browser-ai

Browser AI for TYPO3

Page-grounded answers using Chrome built-in AI on the visitor's device

Live demo — runs the real bundle and answers from the demo page's own content. Without a supported browser it shows the extension's fallback instead.

CI Codecov PHPStan level 10 PHP 8.2+ TYPO3 12.4, 13.4 and 14.3


This extension provides two frontend plugins. The first answers questions from the content of the currently open page. The second fills a parameter-rich form from one sentence and runs it. Chrome's Prompt API runs Gemini Nano locally; there is no application API key, server-side LLM proxy, chat persistence or telemetry.

This is a proof of concept. It deliberately grounds answers in one selected DOM area on the current page. The provider boundary permits future page-tree or whole-site context providers, but those scopes are not implemented.

Requirements

See browser setup for the complete Chrome requirements and troubleshooting steps.

Installation

Load the extension's TypoScript, by either route:

Then add the content element Netresearch Browser AI on a page and configure its title, introduction, editor instruction, context selector and fallback. The second content element, Netresearch Browser AI form assistant, is described below.

Configuration model

Detailed settings are in the administrator reference.

Form assistant

A second content element, Netresearch Browser AI form assistant, turns a sentence into a filled form and a real result. The chain is intent, structured output, tool call, action, answer: the request goes to the on-device model constrained by the form's own JSON Schema, the arguments that come back are checked, written into the visible controls and run, the result is rendered as tables, and the model is asked once more — unconstrained this time — what those results mean for the question. That sentence appears under the request and the form collapses behind a disclosure, so the answer sits next to the question while the derived values stay one keystroke away.

One request may imply more than one query. "Compare the rainfall of the past week in Tokyo and in Leipzig" is two sets of arguments, two runs and one answer.

The schema is generated from the EXT:form definition rather than written by hand, because that definition already carries the option values, the bounds, whether an entry is mandatory and a sentence per element saying what it means. Generating it is also what makes a large form affordable for an on-device model: a multi-value element becomes one array property carrying its options as an enum, not one boolean property per option.

The same tool is registered with the browser's model context where the browser has one, so an agent outside the page can call it with the identical schema and receive the same result. Where neither a model nor a model context exists, the form stays a fully usable form.

The demonstration form ships with the extension and queries the open Open-Meteo service. That query leaves the browser and goes straight to the data source; the model does not. See the form assistant guide.

Privacy and security

No question, page content or answer is sent to an application service. Model inference and the dialogue stay in browser memory and are discarded on reset or navigation. Chrome manages the model download and storage; the extension has no server endpoint, database persistence, cookies or analytics for chat data.

Model output is rendered with DOM APIs only: a restricted Markdown subset is built from createElement and text nodes, links are limited to validated HTTP(S) URLs, and no HTML is ever parsed. Site owners remain responsible for the page content selected as context, their privacy notice, Chrome/browser governance and their Content-Security-Policy.

Read the privacy and security notes before production evaluation.

Development

The DDEV overview is at https://nr-browser-ai.ddev.site/ and contains disposable TYPO3 12.4, 13.4 and 14.3 installations.

Documentation, contributing and support

License

The extension source is licensed under GPL-2.0-or-later. See LICENSE. The manual in Documentation/ is licensed under Creative Commons Attribution 4.0.

Developed and maintained by Netresearch DTT GmbH


All versions of nr-browser-ai with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
typo3/cms-core Version ^12.4 || ^13.4 || ^14.3
typo3/cms-extbase Version ^12.4 || ^13.4 || ^14.3
typo3/cms-fluid Version ^12.4 || ^13.4 || ^14.3
typo3/cms-form Version ^12.4 || ^13.4 || ^14.3
typo3/cms-frontend Version ^12.4 || ^13.4 || ^14.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package netresearch/nr-browser-ai contains the following files

Loading the files please wait ...