Storage, management, compilation, and automatic deployment of MediaWiki gadgets.
npm install awesome-gadgets

Awesome Gadgets 是专为 MediaWiki 设计的全站小工具(Gadget)统一管理解决方案。开发者只需专注于核心代码实现,其余工作(包括语法检查、编译与部署、资源管理)将由本工具自动完成。
Awesome Gadgets is a comprehensive solution for centralized management of site-wide Gadgets (CSS/JavaScript and related pages) on MediaWiki platforms. It allows developers to focus exclusively on core code implementation, while automating auxiliary processes including syntax validation, compilation and deployment, and resource management.
🤖 智能部署系统
Smart Deployment System
- 自动生成与部署
Automated Generation & Deployment
- MediaWiki:Gadgets-definition
- MediaWiki:Gadget-section-*(中文变体自动转换)/(with auto-conversion for Chinese variants)
- MediaWiki:Gadget-*(中文变体自动转换)/(with auto-conversion for Chinese variants)
- MediaWiki:*.{js, css}
- 自动清理遗留页面
Automatic Legacy Cleanup
- 自动删除不再需要的部署页面
Automatically purge deprecated deployment pages
🌐 MediaWiki 深度集成
Native MediaWiki Integration
- ResourceLoader 模块支持
ResourceLoader Module Support
- 模块引用指南
Module Import Guide
- 多站点管理
Multi-site Management
- 支持多站点部署与独立控制
Support cross-site deployment with independent toggle controls
🚀 现代编译工具链
Next-Gen Compilation Toolchain
- 高效编译引擎
Optimized Compilation
- 使用 esbuild 构建,通过 Babel 转译确保兼容性
Build with esbuild and transpile via Babel for maximum compatibility
- 现代语法支持
Modern Syntax Support
- 支持 TypeScript 和 Less 模块
Support TypeScript and Less modules
- 兼容 jsx-dom 与 Vue 组件
Compatible with jsx-dom and Vue components
- JSX/TSX 集成指南
JSX/TSX Integration Guide
- Vue 组件指南
Vue Component Guide
完整使用指南请参阅:构建与部署文档
See full documentation: Build & Deployment Guide
- QiuwenGadgets - 生产环境实现案例
Production-ready implementation maintained by @qiuwenbaike