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

forim

v0.1.0

Published

一个基于node的论坛,im系统,简称forim

Downloads

8

Readme

forim NPM version Build Status Dependency Status Coverage percentage

一个基于node的论坛, im系统, 简称forim

介绍

Node Forum Im 是基于node club修改的社区系统。 未来将会移除全部的nodeclub代码。 实例布署在forum.webfullstack.com

目标

一个只提供API的论坛IM系统,支持cors,支持多客户端访问,支持Socket.io。

  1. 支持个人与个人的交流
  2. 支持围绕话题讨论,即标签化话题,去中心化
  3. 支持订阅自己喜欢的话题
  4. 开发者可以自己维护
  5. 全面的API设计,基于EGG API
  6. 企业服务中立,优先支持用户多的

技术栈

服务器: Node.js, C/C++

服务器依赖的技术栈:

  1. egg framework(整体框架)
  2. egg messager(消息服务) (已完成,支持邮件与短信)
  3. egg api(API规范) (已经完成 v0.1)
  4. file cloude uploader(云上传) (支持本地磁盘,阿里云,AWS,Cloudinary,可以很方便的扩展)
  5. node form validator(输入校验) (支持大多数类型的校验,同时支持递归校验)
  6. waterline-paginator(分页方案) (基于waterline,可以很方便实现分页的模块)
  7. errorable (错误方案) (一套通用的API错误方案,可以方便的定义,统一错误,同时支持多国语言i18n)

客户端:

  1. Web: angular 2.x+
  2. 手机: PhoneGap/Cordova + Web
  3. 桌面: Electron.js + Web

支持与交流

QQ群:312685910

最新改进

使用gulp取代Makefile
删除Loader,使用gulp-less来生成结果文件
重新组织了目录结构
添加代码覆盖率
优化了代码,添加ESLINT

支持Nodejs版本

全部主要版本(V6,V5,V4,V0.12,V0.10) V0.10将慢慢不再支持。

参数配置

forim是基于参数配置的论坛系统,所以在安装前需要进行参数配置。然后直接下载源码运行即可。 配置参数在lib/config.js文件里可以找到。

能shell里需要配置: FORIM_XXX 这样的参数。

安装部署

  1. 安装 Node.js[必须] MongoDB[必须] Redis[必须]
  2. 启动 MongoDB 和 Redis
  3. $ npm i 安装 node weixin forum 的依赖包
  4. $ gulp 确保各项服务都正常
  5. $ node lib/index.js
  6. visit http://localhost:3000
  7. 完成

测试

$ gulp

跑测试

$ gulp test    # 测试代码
$ gulp less    # 生成less结果

跑覆盖率测试

$ gulp coveralls

说明

由于差异过大,本项目的源代码可能不会再与原项目合并

License

Apache-2.0 © calidion
MIT (旧代码)