https://github.com/stiledevs/growtopia.js
A Rust based, cross-platform, high-performance Growtopia private server framework utilizing Node.js, Bun.js.
https://github.com/stiledevs/growtopia.js
enet growtopia growtopiaserver gtps rust rust-lang
Last synced: about 1 year ago
JSON representation
A Rust based, cross-platform, high-performance Growtopia private server framework utilizing Node.js, Bun.js.
- Host: GitHub
- URL: https://github.com/stiledevs/growtopia.js
- Owner: StileDevs
- License: mit
- Created: 2023-05-19T13:07:24.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-05T15:37:26.000Z (about 1 year ago)
- Last Synced: 2025-05-12T23:09:26.717Z (about 1 year ago)
- Topics: enet, growtopia, growtopiaserver, gtps, rust, rust-lang
- Language: TypeScript
- Homepage: http://gtjs.jad.li
- Size: 2.8 MB
- Stars: 16
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[][github-growtopia-js-url]
[][github-star-growtopia-js-url]
[][npm-growtopia-js-url]
[][npm-growtopia-js-url]
[][npm-growtopia-js-url]
[][github-ci-cd-growtopia-js-url]
A Rust based, cross-platform, high-performance Growtopia private server ENet framework utilizing Node.js, Bun.js.
## Features
- Stable
- Built-in ItemsDat tools
## Installation
```sh
npm i growtopia.js
```
## Example
```js
const { Client, TextPacket, Peer } = require("growtopia.js");
const client = new Client({
enet: {
ip: "0.0.0.0",
port: 17091
}
});
client.on("ready", () => {
console.log(`ENet server: port ${client.config.enet.port} on ${client.config.enet.ip}`);
});
client.on("error", (err) => {
console.log("Something wrong", err);
});
client.on("connect", (netID) => {
console.log(`Connected netID ${netID}`);
const peer = new Peer(client, netID);
peer.send(TextPacket.from(0x1));
});
client.on("disconnect", (netID) => {
console.log(`Disconnected netID ${netID}`);
});
client.on("raw", (netID, channelID, data) => {
const peer = new Peer(client, netID);
console.log("raw", data);
});
client.listen();
```
## Links
- [Documentation](https://jadlionhd.github.io/growtopia.js/)
- [Discord Server](https://discord.gg/sGrxfKZY5t)
## Credits
Give a thumbs to these cool people
- [Syn9673](https://github.com/Syn9673)
[github-growtopia-js-url]: https://github.com/StileDevs/growtopia.js
[github-ci-cd-growtopia-js-url]: https://github.com/StileDevs/growtopia.js/actions
[github-star-growtopia-js-url]: https://github.com/StileDevs/growtopia.js/stargazers
[npm-growtopia-js-url]: https://github.com/StileDevs/growtopia.js