[Paper Review] SAM: A Modular Framework for Self-Adapting Web Menus
SAM is an open-source, client-side JavaScript framework that enables self-adapting web menus by decoupling target policies (which score menu items based on user behavior) from adaptation styles (which visually modify items, e.g., reordering or highlighting). It supports local logging, privacy-preserving adaptation, and seamless integration into real web pages, enabling researchers to experiment with adaptive techniques and practitioners to deploy personalized menus without server-side changes.
This paper presents SAM, a modular and extensible JavaScript framework for self-adapting menus on webpages. SAM allows control of two elementary aspects for adapting web menus: (1) the target policy, which assigns scores to menu items for adaptation, and (2) the adaptation style, which specifies how they are adapted on display. By decoupling them, SAM enables the exploration of different combinations independently. Several policies from literature are readily implemented, and paired with adaptation styles such as reordering and highlighting. The process - including user data logging - is local, offering privacy benefits and eliminating the need for server-side modifications. Researchers can use SAM to experiment adaptation policies and styles, and benchmark techniques in an ecological setting with real webpages. Practitioners can make websites self-adapting, and end-users can dynamically personalise typically static web menus.
Motivation & Objective
- To address the gap in deployable, reusable frameworks for self-adapting web menus despite decades of research on adaptive interfaces.
- To enable researchers to experiment with different combinations of adaptation policies and styles in ecological settings using real webpages.
- To support practitioners in easily integrating adaptive menus into existing websites with minimal code changes.
- To empower end-users to dynamically personalize static web menus through browser extensions.
- To promote replicability, ecological validity, and transfer of adaptive interface research by providing a modular, open-source framework.
Proposed method
- Decouples target policy (scoring menu items based on interaction history) from adaptation style (visual changes like reordering or highlighting), enabling independent exploration.
- Implements policies from literature (e.g., frequency-based, rank-based) and styles (e.g., reordering, highlighting, magnification) as pluggable components.
- Executes all adaptation logic, data logging, and computation locally in the browser using Local Storage or IndexedDB, ensuring user privacy and no server-side dependencies.
- Provides a DOM-based initialization via `SAM.fromSelectors()` using CSS selectors for menu, group, and item elements.
- Supports extension through interfaces (`TargetPolicy`, `AdaptationStyle`) and abstract base classes, allowing developers to implement new policies and styles with minimal code.
- Enables end-user customization via browser extensions that inject the framework and initialization scripts without modifying website code.
Experimental results
Research questions
- RQ1How can a modular framework be designed to support independent exploration of adaptation policies and styles in real-world web environments?
- RQ2To what extent can a client-side, privacy-preserving framework enable researchers to benchmark and replicate adaptive menu techniques on real webpages?
- RQ3Can a lightweight, open-source JavaScript framework be effectively used by practitioners to deploy adaptive menus with minimal code changes?
- RQ4How can end-users dynamically personalize static web menus without technical expertise, using browser extensions?
- RQ5What is the performance overhead of combining multiple policies and styles in a real-world setting like Wikipedia?
Key findings
- SAM enables the creation of 24 distinct adaptive menu variants by combining six published adaptation policies with four visual styles, demonstrating broad composability.
- The framework achieves sub-100ms adaptation performance on menus with hundreds of items, with real-world benchmarks on Wikipedia averaging 77ms per page load.
- Local execution ensures full user privacy, as all data logging, scoring, and rendering occur client-side without server storage or communication.
- The framework supports seamless integration into existing websites with minimal code—just including a CSS file and JavaScript library, and calling `SAM.fromSelectors()` after DOM load.
- Browser extensions allow end-users to activate adaptive menus on any webpage without technical knowledge, by injecting the framework and a domain-specific initialization script.
- The use of abstract base classes and interfaces reduces the implementation burden for new policies and styles, enabling rapid extension and reuse.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.