From Xiuno 4.0.4 to XIUNOX 1.1.0: A Complete Overhaul with MySQL 8, Redis & RESTful API

{

“title”: “XIUNOX v1.1.0: A Modern Revival of the Classic Xiuno BBS with PHP 8, MySQL 8, and htmx-Driven UI”,

“content”: “

In the ever-evolving landscape of web forums, the need for lightweight yet feature-rich platforms remains strong. Enter XIUNOX v1.1.0, a comprehensive modernization of the beloved Xiuno BBS 4.0.4 — originally one of the leanest and fastest PHP forum systems. XIUNOX doesn’t just update the codebase; it reimagines the entire experience for today’s developers and communities, embracing modern PHP, a modular frontend, and a RESTful API-first design.

Originally developed under the names Xiuno BBS v4.5+ and Xiuno Next, the project has now settled on the branding XIUNOX (v1.1.0 at the time of writing). This version represents a significant leap forward in performance, security, and extensibility while preserving the core simplicity that made Xiuno popular. The entire stack has been rebuilt with PHP 8.0+ and MySQL 8 (using pdo_mysql) as the backend, and a frontend powered by Bootstrap 5.3, htmx 4.1, and modern JavaScript libraries.

Architecture & Technology Stack

XIUNOX adopts a pure htmx architecture — meaning server-side rendering (SSR) with minimal JavaScript on the client. The goal is to deliver a snappy, modern single-page-application (SPA)-like experience without the complexity of a full JavaScript framework. Key components include:

  • Backend: PHP 8.0+ (with strict type checking, named arguments, and match expressions) paired with MySQL 8. The database layer uses PDO with prepared statements for maximum security and performance.
  • Frontend: Bootstrap 5.3 for responsive layout, htmx 4.1 (with official extensions hx-live and hx-optimistic) for partial DOM updates and optimistic UI, Tabler Icons 2.1 for crisp iconography, and anime.js for smooth animations.
  • Editor: AIEditor — a rich text editor with built-in AI capabilities for content continuation and optimization, seamlessly integrated with an abstract AI Service layer that supports multiple providers (e.g., OpenAI, local models).
  • Caching: Flexible caching layer supporting MySQL query cache, Redis, Memcached, or Yac (a fast shared memory cache for PHP).
  • Security: Comprehensive protection includes CSRF tokens, XSS prevention (EscapeService), parameterized queries, login rate limiting, and operation audit logs.
  • API: A fully documented v1 RESTful API with token-based authentication, enabling integration with mobile apps, third-party services, or headless frontends.

Key Features & Enhancements

Responsive & Modern UI

XIUNOX provides a fully responsive layout that adapts seamlessly to phones, tablets, and desktops. The use of Bootstrap 5.3 ensures consistency and accessibility, while htmx powers interactions like posting, replying, editing, and deleting — all without full page reloads. The htmx 4 morph DOM preservation technique keeps the interface stable even during partial updates, avoiding flickering and preserving user context (e.g., scroll position, input state).

Plugin System & Extensibility

The original Xiuno’s plugin architecture has been enhanced with a hook + overwrite mechanism that is both powerful and developer-friendly. XIUNOX ships with a built-in plugin scanner that automatically detects installed plugins and, in case of a crash, disables the offending plugin without breaking the forum. This makes the system robust for production use.

Multi-language & i18n

Out of the box, XIUNOX supports Simplified Chinese, Traditional Chinese, and English. The i18n system is designed to be easily extensible by adding language files, allowing communities to localize the interface effortlessly.

Attachment Management

The attachment module goes beyond simple uploads. It supports image thumbnails (via GD or Imagick), video info extraction (using ffprobe, optional), and image cropping. Files can be organized per user or globally, and the system integrates with the caching layer to serve thumbnails efficiently.

Points & Credit System

A versatile points/credits system allows administrators to define multiple credit types (e.g., posts, likes, daily login) with daily limits and full audit logging. This can be used for gating content, rewarding activity, or enabling premium features.

Security & Anti-Abuse Measures

Beyond standard authentication, XIUNOX includes CAPTCHA support, IP blacklisting, sensitive word filtering, login rate limiting, and operation audit trails. The AI editor integration also allows automatic content moderation via the abstracted AI Service if desired.

AI Integration

The AI Service abstraction layer is a standout feature. Developers can plug in any AI provider (e.g., OpenAI, local LLMs) to enhance the built-in editor. AIEditor can continue writing a draft or optimize existing content, helping users craft better posts without leaving the interface.

Code Highlighting & Data Visualization

Code blocks in posts are highlighted using highlight.js, loaded only on the post detail page to keep initial bundles small. For statistics, the admin panel leverages Chart.js to render interactive graphs (e.g., user activity, post counts). A qrcode.js library generates QR codes for sharing links easily.

Admin Panel & Management

The administration area is comprehensive yet intuitive, covering:

  • User management (roles, bans, profile editing)
  • Forum & category management (boards, subboards, permissions)
  • Plugin & theme management (install, activate, configure)
  • Security settings (captcha, rate limits, blacklist)
  • AI configuration (provider selection, API keys, model parameters)
  • System logs (audit, errors, debug)

Performance & Scalability

By embracing htmx’s lightweight approach (


已发布

分类

来自

标签:

评论

发表回复