{"id":14983515,"url":"https://github.com/mrgriefs/discord.js-cluster","last_synced_at":"2025-10-29T22:31:15.532Z","repository":{"id":36953476,"uuid":"380832424","full_name":"MrGriefs/discord.js-cluster","owner":"MrGriefs","description":"A sharder for the Discord.js library","archived":false,"fork":false,"pushed_at":"2023-01-17T09:03:43.000Z","size":1947,"stargazers_count":11,"open_issues_count":10,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-02T05:25:05.777Z","etag":null,"topics":["cluster","clustering","discord","discordjs","javascript","manager","shard","sharding"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MrGriefs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-27T20:29:21.000Z","updated_at":"2024-09-03T14:44:23.000Z","dependencies_parsed_at":"2023-02-10T08:40:13.429Z","dependency_job_id":null,"html_url":"https://github.com/MrGriefs/discord.js-cluster","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrGriefs%2Fdiscord.js-cluster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrGriefs%2Fdiscord.js-cluster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrGriefs%2Fdiscord.js-cluster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrGriefs%2Fdiscord.js-cluster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrGriefs","download_url":"https://codeload.github.com/MrGriefs/discord.js-cluster/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238909296,"owners_count":19550837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cluster","clustering","discord","discordjs","javascript","manager","shard","sharding"],"created_at":"2024-09-24T14:07:19.210Z","updated_at":"2025-10-29T22:31:15.124Z","avatar_url":"https://github.com/MrGriefs.png","language":"JavaScript","funding_links":["https://patreon.com/yeen"],"categories":[],"sub_categories":[],"readme":"\u003ch2 align=\"center\"\u003eDiscord.js Sharder\u003c/h2\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://patreon.com/yeen\"\u003e\u003cimg alt=\"Patreon\" src=\"https://img.shields.io/badge/patreon-donate?color=F77F6F\u0026labelColor=F96854\u0026logo=patreon\u0026logoColor=ffffff\"\u003e\u003c/a\u003e\n\u003ca href=\"https://discord.gg/eazpsZNrRk\"\u003e\u003cimg alt=\"Discord\" src=\"https://img.shields.io/discord/368557500884189186?color=7389D8\u0026labelColor=6A7EC2\u0026logo=discord\u0026logoColor=ffffff\"\u003e\u003c/a\u003e\n\u003cimg href=\"https://www.travis-ci.com/github/MrGriefs/discordjs-sharder\" alt=\"Travis (.com)\" src=\"https://www.travis-ci.com/MrGriefs/discord.js-cluster.svg?branch=master\"\u003e\n\u003cimg href=\"https://www.npmjs.com/package/discord.js-cluster\" alt=\"David\" src=\"https://img.shields.io/david/MrGriefs/discord.js-cluster\"\u003e\n\u003cimg href=\"https://www.npmjs.com/package/discord.js-cluster\" alt=\"node-current\" src=\"https://img.shields.io/node/v/discord.js-cluster\"\u003e\n\u003cimg href=\"https://www.npmjs.com/package/discord.js-cluster\" alt=\"GitHub package.json version\" src=\"https://img.shields.io/github/package-json/v/MrGriefs/discord.js-cluster\"\u003e\n\u003ca href=\"https://npm.runkit.com/discord.js-cluster\"\u003e\u003cimg alt=\"RunKit\" src=\"https://img.shields.io/badge/Run-Kit-red\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Table of Contents\n\n- [About](#about)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Documentation](#documentation)\n\n## About\n\ndiscord.js-cluster is a powerful cluster manager for the [Discord.js](https://discord.js.org/) library which implements [multiprocessing](https://en.wikipedia.org/wiki/Multicore_programming) to increase the performance of your client, heavily inspired by the Discord.js built-in [ShardingManager](https://discord.js.org/#/docs/main/stable/class/ShardingManager).  \nUsing the Node.js [cluster](https://nodejs.org/api/cluster.html) module, Discord.js Cluster spreads all [ShardingManager](https://discord.js.org/#/docs/main/stable/class/ShardingManager)s evenly among cores, and is easy to implement!\n\n## Installation\n\nWith npm:  \n\n```bash\n$ npm install discord.js-cluster\n```\n\nWith yarn:  \n\n```bash\n$ yarn add discord.js-cluster\n```\n\n## Usage\n\nCan be used exactly like the [ShardingManager](https://discord.js.org/#/docs/main/stable/class/ShardingManager)  \n`index.js:`\n\n```javascript\nconst { ClusterManager } = require('discord.js-cluster');\n\nconst manager = new ClusterManager('./bot.js', { token: 'your-token-goes-here' });\n\nmanager.on('clusterCreate', cluster =\u003e console.log(`Launched cluster ${cluster.id}`));\n\nmanager.spawn();\n```\n\n`bot.js:`\n\n```javascript\nconst { Client } = require('discord.js-cluster');\nconst { Intents } = require('discord.js');\n\nconst client = new Client({ intents: [Intents.FLAGS.GUILDS] });\n\nclient.on('ready', () =\u003e console.log(`Cluster ${client.cluster.id} is ready!`));\n\nclient.login(); // no token is required here!\n```\n\n## \u003ca id=\"documentation\"\u003e\u003c/a\u003e [Documentation](https://mrgriefs.github.io/discord.js-cluster)\n\nYou can find more documentation on the [website](https://mrgriefs.github.io/discord.js-cluster).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrgriefs%2Fdiscord.js-cluster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrgriefs%2Fdiscord.js-cluster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrgriefs%2Fdiscord.js-cluster/lists"}