MCPcopy
hub / github.com/node-pinus/pinus

github.com/node-pinus/pinus @v1.7.1 sqlite

repository ↗ · DeepWiki ↗ · release v1.7.1 ↗
4,158 symbols 11,230 edges 601 files 726 documented · 17%
README

Actions Status

官方网站:https://pinus.io 欢迎加Pinus官方QQ群:102530089

示例工程请参见:https://github.com/node-pinus/pinus/tree/master/examples/simple-example

手动安装: npm install pinus -g

mkdir testProject cd testProject 初始化项目 pinus init

与Pomelo的关系

  1. pinus是pomelo的TS版本,框架内部把回调改为了Promise。
  2. 框架与pomelo一样,所以可以看pomelo的相关教程。
  3. 协议与pomelo一样,所以pomelo的客户端代码可以直接对接上pinus服务端。

框架编译方法

git clone https://github.com/node-pinus/pinus.git
cd pinus
yarn
yarn run build

编译好以后可以使用 yarn link 或者 npm link 软链接到自己的项目。 也可以用 yarn 的 workspace

查看pinus CHANGELOG

Pinus -- a fast, scalable game server framework for node.js

Pinus is a fast, scalable game server framework for node.js. It provides the basic development framework and many related components, including libraries and tools. Pinus is also suitable for real-time web applications; its distributed architecture makes pinus scale better than other real-time web frameworks.

Features

Complete support of game server and realtime application server architecture

  • Multiple-player game: mobile, social, web, MMO rpg(middle size)
  • Realtime application: chat, message push, etc.

Fast, scalable

  • Distributed (multi-process) architecture, can be easily scale up
  • Flexible server extension
  • Full performance optimization and test

Easy

  • Simple API: request, response, broadcast, etc.
  • Lightweight: high development efficiency based on node.js
  • Convention over configuration: almost zero config

Powerful

  • Many clients support, including javascript, flash, android, iOS, cocos2d-x, C
  • Many libraries and tools, including command line tool, admin tool, performance test tool, AI, path finding etc.
  • Good reference materials: full docs, many examples and an open-source MMO RPG demo

Extensible

  • Support plugin architecture, easy to add new features through plugins. We also provide many plugins like online status, master high availability.
  • Custom features, users can define their own network protocol, custom components very easy.

Why should I use pinus?

Fast, scalable, real-time game server development is not an easy job, and a good container or framework can reduce its complexity. Unfortunately, unlike web, finding a game server framework solution is difficult, especially an open source solution. Pinus fills this gap, providing a full solution for building game server frameworks.

Extension points exported contracts — how you extend this code

ICommand (Interface)
(no doc) [25 implementers]
tools/pinus-cli/lib/command.ts
IComponent (Interface)
(no doc) [22 implementers]
packages/pinus/lib/interfaces/IComponent.ts
IModule (Interface)
(no doc) [11 implementers]
packages/pinus-admin/lib/consoleService.ts
IMessage (Interface)
(no doc) [10 implementers]
plugins/pinus-robot-plugin/src/PinusWSClient.ts
IMessage (Interface)
(no doc) [10 implementers]
examples/robot-sample/app/script/PinusForEgret.ts
IComposer (Interface)
(no doc) [5 implementers]
packages/pinus-rpc/lib/util/composer.ts
IActor (Interface)
(no doc) [4 implementers]
tools/pinus-robot/lib/agent/actor.ts
Console (Interface)
(no doc) [3 implementers]
packages/pinus-logger/lib/logger.ts

Core symbols most depended-on inside this repo

push
called by 1286
packages/pinus/lib/common/manager/taskManager.ts
bind
called by 1042
packages/pinus/lib/common/service/sessionService.ts
create
called by 502
packages/pinus/lib/common/service/sessionService.ts
get
called by 439
packages/pinus-loader/lib/container.ts
on
called by 376
packages/pinus/lib/interfaces/ISocket.ts
error
called by 373
examples/robot-sample/nodejs-ts-client/logger.service.ts
log
called by 356
examples/robot-sample/nodejs-ts-client/logger.service.ts
cb
called by 327
packages/pinus-rpc/test/util/proxy.js

Shape

Function 2,261
Method 1,339
Class 394
Interface 143
Enum 21

Languages

TypeScript100%

Modules by API surface

tools/pinus-admin-web/public/js/util/browserMqtt.js268 symbols
examples/robot-sample/app/script/PinusForEgret.ts74 symbols
plugins/pinus-robot-plugin/src/PinusWSClient.ts71 symbols
packages/pinus/lib/application.ts66 symbols
tools/pinus-admin-web/public/front/HeapSnapshot.js60 symbols
examples/websocket-chat/web-server/public/js/lib/jquery-1.8.0.min.js60 symbols
examples/websocket-chat-ts-run/web-server/public/js/lib/jquery-1.8.0.min.js60 symbols
packages/pinus/lib/common/service/sessionService.ts55 symbols
plugins/pinus-robot-plugin/src/ByteArray.ts54 symbols
examples/robot-sample/app/script/ByteArray.ts54 symbols
tools/pinus-admin-web/public/front/Resource.js51 symbols
packages/pinus-admin/lib/protocol/mqtt/mqttConnectorDefine.ts49 symbols

Dependencies from manifests, versioned

@nestjs/common9.0.11 · 1×
@nestjs/core9.0.11 · 1×
@types/async3.0.0 · 1×
@types/bluebird3.5.19 · 1×
@types/crc3.4.0 · 1×
@types/eyes0.1.35 · 1×
@types/mkdirp2.0.0 · 1×
@types/mocha5.0.0 · 1×
@types/node12.20.41 · 1×
@types/optimist0.0.33 · 1×
@types/underscore1.9.4 · 1×
@types/uuid9.0.0 · 1×

For agents

$ claude mcp add pinus \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact