MCPcopy Index your code
hub / github.com/StileDevs/GrowServer

github.com/StileDevs/GrowServer @v3.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.2.0 ↗ · + Follow
798 symbols 2,017 edges 147 files 69 documented · 9%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Example

A Growtopia private server built with Node.js and Bun.js, powered by growtopia.js

[!NOTE] This source is not production ready yet. In the future it will be using a Docker to deploy the server, feel free to join Discord Server to discuss regarding this.

Requirements

Setup

To setup the server, first install necessary packages & settings by

$ pnpm install
$ pnpm run setup

And congrats setup are done, simple as that! Now you just need to run the server by

[!NOTE] It must be running PostgreSQL & Redis in background by using docker, please navigate to docker guide

$ pnpm run dev

Database

Database that we moved to PostgreSQL from previous database SQLite. And for the ORM we are using Drizzle-ORM

To view the database you can run this command below:

$ pnpm run studio

and access it on here https://local.drizzle.studio/

Starting server

To run the development server by

$ pnpm run start

Development

In order to make new login system work you need to install mkcert on this download page (I'd recommend using Lets encrypt for production only)

Local CA installation

Install the mkcert local CA by

$ mkcert -install

Hosts

For the hosts file you can see this example below

127.0.0.1 www.growtopia1.com
127.0.0.1 www.growtopia2.com
127.0.0.1 login.growserver.app # New login system for development purposes

Docker

To run the dockerized & running it automatically just run

docker compose up -d

or you want to run the database & redis only (this were for development only) then simply running

docker compose up -d db redis

Contributing

Any contributions are welcome.

There's few rules of contributing:

  • Code must match the existing code style. Please make sure to run pnpm run lint before submiting a PR.
  • The commit must take review first before merging into main branch.

Links

Contributors

Give a thumbs to these cool contributors:

Extension points exported contracts — how you extend this code

Collection (Interface)
(no doc) [1 implementers]
packages/types/structures/collection.d.ts
WebConfig (Interface)
(no doc)
packages/config/index.ts
Node (Interface)
(no doc)
apps/server/src/world/FloodFill.ts
CDNContent (Interface)
(no doc)
packages/types/misc.d.ts
WebFrontendConfig (Interface)
(no doc)
packages/config/index.ts
FloodFillData (Interface)
(no doc)
apps/server/src/world/FloodFill.ts
StringOptions (Interface)
(no doc)
packages/types/misc.d.ts
ServerConfig (Interface)
(no doc)
packages/config/index.ts

Core symbols most depended-on inside this repo

every
called by 77
packages/types/structures/collection.d.ts
get
called by 65
packages/db/handlers/World.ts
currentWorld
called by 58
apps/server/src/core/Peer.ts
find
called by 54
packages/types/structures/collection.d.ts
random
called by 28
packages/types/structures/collection.d.ts
sendTextBubble
called by 28
apps/server/src/core/Peer.ts
addSmallText
called by 26
packages/utils/builders/DialogBuilder.ts
addSpacer
called by 24
packages/utils/builders/DialogBuilder.ts

Shape

Method 471
Class 223
Interface 54
Function 36
Enum 14

Languages

TypeScript100%

Modules by API surface

apps/server/src/core/Peer.ts37 symbols
packages/utils/builders/DialogBuilder.ts29 symbols
apps/server/src/world/Tile.ts27 symbols
packages/utils/util/Seeders.ts21 symbols
packages/types/structures/world.d.ts21 symbols
packages/utils/util/ExtendBuffer.ts20 symbols
apps/server/src/world/tiles/SeedTile.ts17 symbols
apps/server/src/core/World.ts17 symbols
packages/utils/util/Collection.ts16 symbols
packages/utils/util/Utils.ts15 symbols
packages/utils/util/Color.ts14 symbols
packages/const/index.ts14 symbols

For agents

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

⬇ download graph artifact