Tools

PersonaLayer provides two open-source tools that use large language models to adapt live web pages to UX personas. PL_WebAssist applies adaptations in your own browser, in real time. PL_WebEval runs them in batches in its own headless browser and records the results for benchmarking. Both reach language models through the OpenRouter API and are released under the Apache License 2.0.

PL_WebAssist: real-time adaptation in Chrome

PL_WebAssist is a Manifest V3 Chrome extension that applies persona-driven adaptations to the page you are viewing. You choose one of the 45 personas, or describe your needs in your own words, and a language model generates CSS and JavaScript changes that are injected into the page.

It is an experimental research prototype for researchers and developers. Whether it helps people with disabilities has not been tested, and its changes are written by a language model, so they can fail, hide content or break a page. Do not rely on it for health or safety needs, such as avoiding flashing content. It is not available from the Chrome Web Store; install it from the source code as described below. A small feasibility pilot with ten participants indicated that it can be used on a live website.

What it does

  • Persona selection. Choose one of the 45 personas from a list grouped by category.
  • Custom instructions. Describe a need in plain language instead, for example “User with chronic fatigue needing minimal interactions and high-contrast prompts”.
  • Live adaptation. The generated CSS and JavaScript are injected into the page. The extension watches the page for changes so that adaptations stay in place on dynamic pages.
  • Explanations. The Applied Adaptations card shows a short plain-language summary of the CSS changes and of the JavaScript changes the model applied.
  • Evaluation view and report. An optional evaluation view shows the model’s own 0–100 proxy scores, and an evaluation report covers accessibility, UX impact and missed opportunities. The report can be exported. Like the scores in the study, these are the model’s own assessments, best used as signals for human review rather than as independent measurements.
  • Cost display. The side panel shows a running total of the API costs of your requests.

Internally, a background service worker handles the API calls, stored settings and script injection; content scripts change the page; and the side panel holds the controls.

Screenshot of the PL_WebAssist side panel. A Select UX Profile drop-down is open, showing persona names grouped under the headings Visual Accessibility, Motor & Navigation Support and Cognitive & Neurodivergent UX, for example Low Vision, Color Blindness, Keyboard-Only Navigator and High Cognitive Load Sensitivity.
Choosing a UX persona from a drop-down list grouped by category. Open the persona list screenshot at full size.
Screenshot of the Applied Adaptations card in the side panel. A CSS entry explains dyslexia-friendly typography with the OpenDyslexic font, wider letter and word spacing, taller line height and stronger contrast. A JS entry explains loading the font, a reading guide that follows the mouse cursor, and shortening product descriptions to their first two sentences. The footer shows the running total of API costs and the time of the last update.
Plain-language summaries of the CSS and JavaScript changes the model applied. Open the explanations screenshot at full size.
Screenshot of the Evaluation Report card in the side panel, with three short sections headed Accessibility Analysis, UX Impact and Missed Opportunities, and an Export Report button.
The model’s evaluation report with accessibility analysis, UX impact and missed opportunities. Open the report screenshot at full size.

Install PL_WebAssist from source

You need Google Chrome and an API key from OpenRouter.

  1. Download the PL_WebAssist repository from GitHub, or clone it:

    Clone the repository
    git clone https://github.com/PersonaLayer/PL_WebAssist.git
  2. In Chrome, go to chrome://extensions.
  3. Turn on Developer mode (top right of the page).
  4. Select Load unpacked and choose the PL_WebAssist folder, the one that contains manifest.json.
  5. Open Chrome’s Extensions menu (the puzzle-piece icon in the toolbar), select PersonaLayer Web Assistant (pin it to keep it visible), then select Open Side Panel.
  6. Under API Configuration, paste your own OpenRouter API key, select Save Key, and choose a model.
  7. Choose a persona under Select UX Profile, turn on Enable Adaptation, and select Analyze Page.

The model list is loaded from OpenRouter, and you can choose any model it offers. The study used meta-llama/llama-4-maverick, google/gemini-2.5-flash and anthropic/claude-sonnet-4.

Experimental option

The side panel also offers Use Chrome Built-in Nano (Experimental), which runs Chrome’s built-in Gemini Nano model on your own device instead of calling OpenRouter. It requires Chrome 127 or later with built-in AI features enabled, and may not work on every setup.

Privacy, costs and permissions

  • The extension contains no analytics and does not collect data for the project.
  • When you analyse a page with a cloud model, the extension sends the page address, the persona or your custom description, a screenshot of the visible part of the tab and an excerpt of the page’s HTML to OpenRouter, which passes them to the model provider you selected. Their terms and privacy policies apply. Do not use it on pages that show personal, financial or other confidential information.
  • Some adaptations load resources from other sites. For example, the dyslexia-friendly OpenDyslexic font is fetched from the jsDelivr CDN when an adaptation uses it.
  • Your API key is stored in Chrome’s sync storage, so Chrome copies it to your Google account if Chrome Sync is turned on.
  • Requests are charged to your OpenRouter account at the rates of the model you choose.
  • To read and change pages, the extension asks for access to all websites, together with the activeTab, scripting, tabs, storage and sidePanel permissions.
  • Generated adaptations can sometimes break a page’s layout or functions. In the benchmark study, 44% of expert ratings judged an adaptation a slight or clear improvement, and 16% judged it partially or completely broken.

PL_WebEval: benchmarking on live websites

PL_WebEval benchmarks AI-generated adaptations across personas, websites and models in a fully automated pipeline. For each test case, it opens a live website in headless Chromium through Playwright, captures the baseline page, asks a language model to generate CSS and JavaScript adaptations for the selected persona, applies them, captures the adapted page, and records the model’s self-assessed scores for accessibility, text readability and visual complexity before and after adaptation.

The tool is model-agnostic and driven by CSV files, so new models, websites or persona sets can be added without redesigning the pipeline. It handles batches of hundreds of tests, retries failed connections, and keeps checkpoints so that an interrupted run can be resumed. It produced the 270 adaptations of the study, which six UX and UI experts then rated without knowing which model made each one.

About the scores

The scores this tool records are self-assessments by the evaluated model. Use them as signals for human review, not as independent accessibility measurements. In the study they did not track blinded expert ratings, which suggests that AI self-scoring should complement, not replace, human evaluation. The same comparison with blinded expert ratings can be used to audit any system that scores its own output.

How it works

A run proceeds in three phases:

  1. Input processing. The tool reads the test cases from a CSV file (website, persona, models) and the configuration, such as the number of parallel workers.
  2. Execution. For each test it makes three to five model calls, captures the page (HTML and full-page screenshots), and scores the baseline and adapted page on 0–100 scales.
  3. Output generation. Results are saved per test and aggregated. The output includes JSON traces, CSV statistics, screenshots, network logs and an HTML report.
Flow diagram in three stacked bands. Input processing: Raw Input, Parse CSV, Validate, Test Queue. Execution: Execute Test, Capture Data, LLM Analysis. Output generation: Aggregate Results, Statistics, Visualizations, Final Report.
The three phases of the PL_WebEval workflow are input processing, execution and output generation. Open the workflow diagram at full size (PNG, 1600 pixels wide).

A command-line interface coordinates a web evaluator and a state manager. The evaluator controls the browser through a Playwright Model Context Protocol (MCP) server, calls models through an OpenRouter client, and generates CSS and JavaScript changes from structured persona templates.

Resource needs are modest. A run needs about 4 GB of RAM and about 10 MB of storage per test, and each evaluation takes 15 to 60 seconds, with up to five parallel workers.

Install PL_WebEval

You need Python 3.10 or later, Node.js 18 or later (for the bundled Playwright MCP server), and an API key from OpenRouter.

Install
git clone https://github.com/PersonaLayer/PL_WebEval.git
cd PL_WebEval
pip install -e .
pip install mcp
pl-webeval-setup-mcp
cp .env.example .env

pip install mcp adds the Python client for the Model Context Protocol, which the evaluator uses to control the browser; it is not installed with the package. pl-webeval-setup-mcp, a command installed by pip install -e ., installs and builds the bundled Playwright MCP server and installs Chromium. Then open .env and set OPENROUTER_API_KEY to your own key. Never commit this file. In the Windows Command Prompt, use copy .env.example .env instead of cp.

Run an evaluation

Run
python run_evaluation.py --testcases my_tests.csv --output results/my_run

Before a first run, create your own small test-case file, here called my_tests.csv, in the format shown below. Each test makes three to five model calls, which are charged to your OpenRouter account. You are responsible for following the terms of use of every website you list, so test your own pages where possible and keep runs small.

Use it responsibly

Run PL_WebEval only on websites you own or whose terms of use and robots.txt allow automated access. Keep runs small, and do not test pages behind a log-in. Do not use it to get around CAPTCHAs, rate limits or other access controls. Adaptations are applied only to the copy of the page in the tool’s own browser. The tool does not send them to the website, and the website itself is not changed.

Runs can be resumed. Progress is kept in .test_state.json, so running the same command again continues where it stopped. Add --no-resume to start from the beginning.

Test-case file

Each row of the test-case CSV file describes one test:

Example row
Website,Task Goal,Task Steps,Success Criteria,LLM,Gen LLM,Ux Profile,TestCaseID,Status
https://example.com,Evaluate homepage UX and accessibility,Load homepage; analyze baseline; apply UX adaptation; analyze adapted,Page loads and analysis completes,google/gemini-2.5-flash,google/gemini-2.5-flash,Low Vision,TC_00451,
Website
The address of the page to test.
LLM, Gen LLM
OpenRouter model identifiers for analysis and for generating the adaptation. If Gen LLM is empty, the LLM model is used for both. In the study one model did both.
Ux Profile
A persona name that matches an entry in data/ux_profiles.csv (45 personas; the dissertation groups them into eight categories).
TestCaseID
A unique identifier for the test.
Status
Left empty. The tool records the progress of each test here.

Output files

Each run folder contains:

  • overall_results.csv, with one row per test case;
  • the summary tables overall_model_stats.csv, overall_profile_stats.csv and overall_run_stats.csv;
  • an HTML report;
  • one sub-folder per test case with the baseline and adapted screenshots and page snapshots.

The repository’s scripts/ folder holds the analysis scripts used in the study. They combine runs, compute statistics, make side-by-side screenshots for the expert evaluation and build the blinded expert rating form. The benchmark results of all 270 scenarios are openly available in the repository’s study_data/ folder.

Licence

Both tools are released under the Apache License 2.0. The Playwright MCP server bundled with PL_WebEval keeps its own licence, as described in the repository.