@aliceo2/web-ui

中文文档
2.12.0发布于 2026/10/14GPL-3.0CommonJS构建来源已验证近 30 天下载 5144

ALICE O2 Web UX framework

原始使用文档
文档目录9 节
  1. Overview
  2. Backend requirements
  3. Minimum browser version support
  4. Installation
  5. Getting started
  6. Backend guide
  7. Frontend guide
  8. References
  9. Documentation for developers

ALICE O2 Web UI Framework

Actions Status codecov JIRA

Overview

The goal of this UI framework is to identify library and framework sets, provide the core functionalities and building blocks to easily create rich web application for the ALICE O2 project.

Server-side features

  • REST and WebSocket API
  • Authentication via CERN SSO (OpenID Connect), authorization using CERN e-groups
  • Communication integrity ensured by JSON Web Tokens
  • External resource access: gRPC, Consul

Client-side features

  • User interface CSS building blocks in accordance with ALICE standards
  • Asynchronous data fetching (Ajax) and bi-directional socket (WebSockets)
  • MVC engine with a "diffing" algorithm

Backend requirements

  • nodejs >= v16.x

CentOS 8

yum install https://rpm.nodesource.com/pub_16.x/el/7/x86_64/nodejs-16.9.1-1nodesource.x86_64.rpm    

macOS

brew install node

Minimum browser version support

  • Chrome 88
  • Firefox 85
  • Edge 89
  • Safari 14.1

Installation

npm install --save @aliceo2/web-ui

Getting started

Backend guide

  • REST API - Serves custom REST API, supports TLS
  • JSON Web Tokens - Secures HTTP requests and WebSocket messages with a JWT token
  • Logging - Stores log messages in a file or pushes them to InfoLogger service
  • SSO - OpenID Connect - Provides authentication using CERN SSO via OpenID Connect
  • WebSocket server - Provides bi-directional communication between browsers and server using WebSocket protocol
  • Consul - Consul service with simple Read queries
  • JIRA - Create JIRA issues
  • Notification service - Trigger and receive notification using Kafka cluster

Frontend guide

References

Documentation for developers

版本与发布记录

@aliceo2/web-ui 共发布 119 个版本,首次发布于 2018/03/15;过去 12 个月发布了 5 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.12.0latest2026/10/1424 天前
2.11.12026/08/053 个月前
2.11.02026/05/255 个月前
2.10.02026/05/056 个月前
2.9.02026/01/079 个月前
2.8.52025/08/041.3 年前

关于 @aliceo2/web-ui 的常见问题

@aliceo2/web-ui 是什么?

ALICE O2 Web UX framework

如何安装 @aliceo2/web-ui?

在项目目录运行 npm install @aliceo2/web-ui,或使用 pnpm add / yarn add / bun add。

@aliceo2/web-ui 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/aliceo2__web-ui 是否存在。

@aliceo2/web-ui 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@aliceo2/web-ui 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >= 22.x。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@aliceo2/web-ui 可以商用吗?

@aliceo2/web-ui 使用 GPL-3.0 许可。强 Copyleft:分发包含该代码的软件时,整个作品需以 GPL-3.0 兼容许可开源,并附带专利与反锁定条款。仅内部使用不触发此义务。以上为概括,不构成法律意见,请以许可原文为准。

@aliceo2/web-ui 的下载量有多少?

根据 npm 官方下载统计,@aliceo2/web-ui 在 2026/10/06 – 2026/11/04 这 30 天内被下载 5,144 次,日均约 171 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@aliceo2/web-ui 还在维护吗?

最新版本 2.12.0 发布于 2026/10/14(24 天前);至今共发布 119 个版本,其中过去 12 个月发布了 5 个;首次发布于 2018/03/15。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。