mm_os 4.0.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +15 -8
  2. package/README_EN.md +15 -8
  3. package/package.json +19 -9
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # MOS 服务端架构
1
+ # MM_OS 服务端架构
2
2
 
3
3
  [![npm version](https://badge.fury.io/js/mm_os.svg)](https://badge.fury.io/js/mm_os)
4
4
  [![npm downloads](https://img.shields.io/npm/dm/mm_os.svg)](https://www.npmjs.com/package/mm_os)
@@ -6,9 +6,16 @@
6
6
 
7
7
  ## 项目简介
8
8
 
9
- MOS 是一个轻量级的服务端架构,提供了完整的服务端开发框架,包括 Web、WebSocket、MQTT、Socket 等多种通信协议支持,以及丰富的组件和模块。
9
+ MM_OS 是一个轻量级的服务端架构,提供了完整的服务端开发框架,包括 Web、WebSocket、MQTT、Socket 等多种通信协议支持,以及丰富的组件和模块。
10
10
 
11
- 适用于快速构建网站、小程序后台、AI应用、物联网应用、中小型游戏服务端。
11
+ **适用场景:**
12
+ - **网站建设**:快速构建企业网站、电商平台、内容管理系统
13
+ - **小程序**:微信小程序、支付宝小程序等小程序后台服务
14
+ - **AI 应用**:AI 接口服务、智能助手、机器学习推理服务
15
+ - **物联网 (IOT/AIOT)**:物联网设备管理、传感器数据采集、智能硬件控制
16
+ - **游戏服务端**:中小型游戏服务端、实时对战游戏、游戏后台管理
17
+
18
+ 支持 **AI、GAME、IOT、AIOT、游戏、物联网、小程序、网站建设** 等多种应用场景。
12
19
 
13
20
  ## 核心功能
14
21
 
@@ -20,7 +27,7 @@ MOS 是一个轻量级的服务端架构,提供了完整的服务端开发框
20
27
 
21
28
  ## 设计理念:配置与逻辑分离
22
29
 
23
- MOS 框架的核心设计原则是 **配置与逻辑分离**。无论是 `core` 核心模块还是 `com` 公共组件,每个功能模块都遵循统一的结构:
30
+ MM_OS 框架的核心设计原则是 **配置与逻辑分离**。无论是 `core` 核心模块还是 `com` 公共组件,每个功能模块都遵循统一的结构:
24
31
 
25
32
  ### 模块组成
26
33
 
@@ -110,7 +117,7 @@ startServer();
110
117
 
111
118
  ## 项目目录结构
112
119
 
113
- 基于 MOS 框架开发的项目采用标准化目录结构:
120
+ 基于 MM_OS 框架开发的项目采用标准化目录结构:
114
121
 
115
122
  ```
116
123
  ├── app/ # 应用目录,包含多个独立应用
@@ -205,7 +212,7 @@ startServer();
205
212
 
206
213
  ### 创建 API 接口
207
214
 
208
- API 是 MOS 框架的核心组件,每个 API 包含三个文件:
215
+ API 是 MM_OS 框架的核心组件,每个 API 包含三个文件:
209
216
 
210
217
  #### 1. api.json - API 配置
211
218
 
@@ -404,7 +411,7 @@ exports.main = main;
404
411
 
405
412
  ## 配置说明
406
413
 
407
- MOS 支持多种配置选项,包括:
414
+ MM_OS 支持多种配置选项,包括:
408
415
 
409
416
  - **web**:Web 服务器配置
410
417
  - **mysql**:MySQL 数据库配置
@@ -460,7 +467,7 @@ MOS 支持多种配置选项,包括:
460
467
 
461
468
  ## 全局对象
462
469
 
463
- MOS 提供了丰富的全局对象供开发使用:
470
+ MM_OS 提供了丰富的全局对象供开发使用:
464
471
 
465
472
  ### `$` 对象
466
473
 
package/README_EN.md CHANGED
@@ -1,4 +1,4 @@
1
- # MOS Server Architecture
1
+ # MM_OS Server Architecture
2
2
 
3
3
  [![npm version](https://badge.fury.io/js/mm_os.svg)](https://badge.fury.io/js/mm_os)
4
4
  [![npm downloads](https://img.shields.io/npm/dm/mm_os.svg)](https://www.npmjs.com/package/mm_os)
@@ -6,9 +6,16 @@
6
6
 
7
7
  ## Project Introduction
8
8
 
9
- MOS is a lightweight server architecture that provides a complete server development framework, including support for multiple communication protocols such as Web, WebSocket, MQTT, Socket, as well as rich components and modules.
9
+ MM_OS is a lightweight server architecture that provides a complete server development framework, including support for multiple communication protocols such as Web, WebSocket, MQTT, Socket, as well as rich components and modules.
10
10
 
11
- Suitable for quickly building websites, mini-program backends, AI applications, IoT applications, and small-to-medium game servers.
11
+ **Use Cases:**
12
+ - **Website Development**: Quickly build enterprise websites, e-commerce platforms, content management systems
13
+ - **Mini Programs**: Backend services for WeChat Mini Programs, Alipay Mini Programs, etc.
14
+ - **AI Applications**: AI API services, intelligent assistants, machine learning inference services
15
+ - **IoT/AIoT**: IoT device management, sensor data collection, smart hardware control
16
+ - **Game Servers**: Small-to-medium game servers, real-time battle games, game backend management
17
+
18
+ Supports **AI, GAME, IOT, AIOT, Games, Internet of Things, Mini Programs, Website Development** and other application scenarios.
12
19
 
13
20
  ## Core Features
14
21
 
@@ -20,7 +27,7 @@ Suitable for quickly building websites, mini-program backends, AI applications,
20
27
 
21
28
  ## Design Philosophy: Configuration and Logic Separation
22
29
 
23
- The core design principle of MOS framework is **separation of configuration and logic**. Both `core` modules and `com` components follow a unified structure:
30
+ The core design principle of MM_OS framework is **separation of configuration and logic**. Both `core` modules and `com` components follow a unified structure:
24
31
 
25
32
  ### Module Composition
26
33
 
@@ -111,7 +118,7 @@ startServer();
111
118
 
112
119
  ## Project Directory Structure
113
120
 
114
- Projects developed with MOS framework follow a standardized directory structure:
121
+ Projects developed with MM_OS framework follow a standardized directory structure:
115
122
 
116
123
  ```
117
124
  ├── app/ # Application directory containing multiple apps
@@ -206,7 +213,7 @@ Define application routing rules:
206
213
 
207
214
  ### Create API Interface
208
215
 
209
- API is the core component of MOS framework. Each API consists of three files:
216
+ API is the core component of MM_OS framework. Each API consists of three files:
210
217
 
211
218
  #### 1. api.json - API Configuration
212
219
 
@@ -405,7 +412,7 @@ exports.main = main;
405
412
 
406
413
  ## Configuration
407
414
 
408
- MOS supports multiple configuration options:
415
+ MM_OS supports multiple configuration options:
409
416
 
410
417
  - **web**: Web server configuration
411
418
  - **mysql**: MySQL database configuration
@@ -461,7 +468,7 @@ MOS supports multiple configuration options:
461
468
 
462
469
  ## Global Objects
463
470
 
464
- MOS provides rich global objects for development:
471
+ MM_OS provides rich global objects for development:
465
472
 
466
473
  ### `$` Object
467
474
 
package/package.json CHANGED
@@ -1,8 +1,24 @@
1
1
  {
2
2
  "name": "mm_os",
3
- "description": "超级美眉服务端框架,用于快速构建应用程序,可快速构建网站、小程序后台、AI应用、物联网应用、中小型游戏服务端。",
4
- "version": "4.0.0",
3
+ "description": "MM_OS服务端架构,用于快速构建应用程序,支持网站建设、小程序后台、AI应用、物联网(IOT/AIOT)、游戏服务端等多种场景。",
4
+ "version": "4.0.1",
5
5
  "main": "index.js",
6
+ "keywords": [
7
+ "AI",
8
+ "GAME",
9
+ "IOT",
10
+ "AIOT",
11
+ "游戏",
12
+ "物联网",
13
+ "小程序",
14
+ "网站建设",
15
+ "服务端框架",
16
+ "NodeJS",
17
+ "WebSocket",
18
+ "MQTT",
19
+ "Socket",
20
+ "koa"
21
+ ],
6
22
  "author": "qww",
7
23
  "license": "ISC",
8
24
  "scripts": {
@@ -36,13 +52,7 @@
36
52
  "mm_statics": "^1.8.4",
37
53
  "mm_xml": "^1.1.7",
38
54
  "mqtt": "^5.15.1",
39
- "openai": "^6.39.0",
40
- "sharp": "^0.34.5",
41
- "cos-nodejs-sdk-v5": "^2.15.4",
42
- "jimp": "^1.6.1",
43
- "qq-guild-bot": "^2.9.5",
44
- "tencentcloud-sdk-nodejs-faceid": "^4.1.233",
45
- "tinify": "^1.8.2"
55
+ "openai": "^6.39.0"
46
56
  },
47
57
  "devDependencies": {
48
58
  "@types/jest": "^30.0.0",