Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/node-pinus/pinus
A fast,scalable,distributed game server framework for Node.js, Powered by TypeScript. 一个TypeScript写的node.js分布式游戏/应用服务器框架(原型基于pomelo)。
https://github.com/node-pinus/pinus
game-server nodejs typescript
Last synced: 1 day ago
JSON representation
A fast,scalable,distributed game server framework for Node.js, Powered by TypeScript. 一个TypeScript写的node.js分布式游戏/应用服务器框架(原型基于pomelo)。
- Host: GitHub
- URL: https://github.com/node-pinus/pinus
- Owner: node-pinus
- License: mit
- Created: 2017-12-25T02:22:29.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-13T14:46:01.000Z (12 days ago)
- Last Synced: 2024-12-17T09:05:22.549Z (9 days ago)
- Topics: game-server, nodejs, typescript
- Language: JavaScript
- Homepage: https://pinus.io
- Size: 9.82 MB
- Stars: 1,848
- Watchers: 79
- Forks: 383
- Open Issues: 36
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
- awesome-cocos - Pinus - A fast, scalable game server framework for node.js (based on [Pomelo](https://github.com/NetEase/pomelo)). (Utilities / Development tools and services)
README
[![Actions Status](https://github.com/node-pinus/pinus/workflows/ci/badge.svg?branch=master&event=push)](https://github.com/node-pinus/pinus/actions)
官方网站:[https://pinus.io](https://pinus.io)
欢迎加Pinus官方QQ群:102530089示例工程请参见:https://github.com/node-pinus/pinus/tree/master/examples/simple-example
手动安装:
npm install pinus -gmkdir testProject
cd testProject
初始化项目
pinus init### 与Pomelo的关系
1. pinus是pomelo的TS版本,框架内部把回调改为了Promise。
1. 框架与pomelo一样,所以可以看pomelo的相关教程。
1. 协议与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](CHANGELOG.md)
## Pinus -- a fast, scalable game server framework for node.js
Pinus is a fast, scalable game server framework for [node.js](http://nodejs.org).
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](https://github.com/NetEase/pinus/wiki/Introduction-to--Lord-of-Pinus)### 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.