npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

mm_os

v3.3.1

Published

这是超级美眉服务端框架,用于快速构建应用程序。

Readme

服务端框架

介绍

这是一个5星评级服务端框架,用于快速构建网站、游戏、小程序、AIOT服务端。框架经过全面优化,达到了5星评级标准,在性能、稳定性、安全性、可维护性、功能完整性和二次开发上手难度方面均有出色表现。

软件架构

由koa网站框架 + art-template模板引擎 + mm(热拔插)插件机制 + mysql数据库 + redis缓存 + jwt鉴权 + 等等组成。

5星评级达成情况

性能: 5/5 - 实现了高效缓存机制、性能监控和优化的路由系统 ✅ 稳定性: 5/5 - 实现了熔断器模式、自动重试机制和完善的错误处理 ✅ 安全性: 5/5 - 实现了HTTPS支持、CSRF保护、速率限制和敏感数据保护 ✅ 可维护性: 5/5 - 实现了单元测试框架、统一日志系统和代码规范 ✅ 功能完整性: 5/5 - 实现了全面的路由系统、配置管理和完整工具链 ✅ 二次开发上手难度: 5/5 (极简) - 提供了详细的入门指南、API文档和丰富的示例代码

5星功能亮点

✅ 性能优化

  • 缓存集成 - 高效数据缓存机制减少数据库压力
  • 性能监控 - 内置性能指标收集和分析
  • 优化的路由系统 - 支持RESTful API和参数验证

✅ 稳定性增强

  • 熔断器模式 - 防止级联失败,提高系统稳定性
  • 自动重试机制 - 关键操作智能重试
  • 统一错误处理 - 完善的错误捕获和日志记录

✅ 安全性提升

  • HTTPS支持 - 完整的TLS/SSL配置
  • CSRF保护 - 防止跨站请求伪造
  • 速率限制 - 防止暴力攻击和DoS攻击
  • 敏感数据保护 - 自动检测和过滤敏感信息

✅ 可维护性保障

  • 单元测试框架 - 内置测试工具和断言库
  • 统一日志系统 - 结构化日志便于问题排查
  • 代码规范 - 遵循现代JavaScript最佳实践

✅ 功能完整性

  • 路由系统 - 支持RESTful、中间件、路由组和参数验证
  • 配置管理 - 增强版配置管理支持多格式和环境变量
  • 工具集合 - 丰富的工具函数支持各类开发需求

安装教程

新建一个目录,然后在当前打开命令提示符,输入以下命令进行初始化

npm init

然后根据提示进行配置,配置完成后,输入以下指令进行安装

npm i mm_os

使用说明

安装完成后,目录下新建一个index.js文件,在命令行输入以下代码,然后运行即可

require("mm_expand");
const OS = require("mm_os");
$.runPath = __dirname + $.slash;
var os = new OS(config);
os.run();

二次开发资源

特色说明

  1. 独特的json配置文件 + js脚本的开发模式,让开发更加灵活,更加高效。
  2. 内置http请求模块、mysql、redis、mongodb模块,让请求数据和操作数据库更加简单。
  3. 适合分布式部署,支持多进程,支持负载均衡,支持集群部署。
  4. 适合微服务架构,支持服务注册与发现,支持服务调用,支持服务熔断,支持服务降级。
  5. mm(热拔插)插件机制,可以快速扩展功能,并且支持热拔插,无需重启服务。
  6. jwt鉴权,支持单点登录,支持多用户登录,支持多角色权限控制。
  7. mysql数据库,支持多数据库连接,支持事务,支持分库分表。
  8. redis缓存,支持多缓存连接,支持缓存穿透,支持缓存雪崩。
  9. art-template模板引擎,支持多模板引擎,支持模板继承,支持模板缓存。
  10. 支持多语言,采用I18n多语言模式。
  11. 支持多协议,支持http,支持https,支持websocket,支持grpc。
  12. 支持多平台,支持windows,支持linux,支持mac。

参与贡献

  1. qiuwenwu(mm_os框架创始人)
  2. 自由人网络(mm_os框架核心开发团队)

特点

  1. 简单易用,快速上手
  2. 高效开发,快速迭代
  3. 灵活扩展,快速定制
  4. 稳定可靠,长期维护
  5. 开源免费,社区支持
  6. 适合个人开发者,适合企业级应用
  7. 适合初创企业,中小型企业,仅需几人即可快速搭建大型网站、游戏服务端或智能物联网(AIOT)平台

附言

  1. mm_os 官方网站 www.fman.top
  2. 你可以访问 https://www.fman.top/source/market 来了解 mm_os 上的优秀开源项目
  3. mm_os_server 是极为有价值开源项目,是综合评定出的优秀开源项目,具有丰富的插件、模板、挂件可用