Built something? We create video reels & spotlights for GitHub projects.Promote your project →
discordjs
Home / TypeScript / discord.js

discordjs/discord.js

A powerful JavaScript library for interacting with the Discord API

TypeScript ◇ bot Apache-2.0
★26.8KSTARS
⑂4.1KFORKS
!150ISSUES
🏆#512GLOBAL RANK
🔥14DAYS TRENDING
🚀
Maintainer Growth Kit for discord.js

Claim this project, add your verified backlink badge to your README, and download milestone cards.

Claim Repo

Star History

Continuous Observations
Interactive star growth chart for discordjs/discord.js
CSV
⭐ VIRAL README KIT

Add Live Star History & Verified Badges to README.md

Keep your repository README looking professional and dynamic. As our continuous crawler records new stars, these official SVG badges update in real time with zero maintenance.

Open README on GitHub ↗
Option 1: Interactive Star History Chart Dynamic SVG

Renders your high-resolution star trajectory chart right inside your GitHub README or project docs.

discordjs/discord.js Star History Preview
markdown
[![Star History Chart](https://githubrepo.cloud/api/badge/chart/discordjs/discord.js.svg?theme=dark)](https://githubrepo.cloud/repo/discordjs/discord.js?utm_source=readme_chart)
Direct SVG Link ↗
Option 2: Verified Shields Badges Shields.io Style

Compact Shields-style badges for your README header. Shows real-time stars and global ranking.

Featured badge Stars badge Rank badge
markdown (badge trio)
[![Featured on GitHubRepo.cloud](https://githubrepo.cloud/badge/discordjs/discord.js.svg?metric=featured)](https://githubrepo.cloud/repo/discordjs/discord.js?utm_source=readme_badge) [![GitHubRepo Stars](https://githubrepo.cloud/badge/discordjs/discord.js.svg?metric=stars)](https://githubrepo.cloud/repo/discordjs/discord.js?utm_source=readme_badge) [![Global Rank](https://githubrepo.cloud/badge/discordjs/discord.js.svg?metric=rank)](https://githubrepo.cloud/repo/discordjs/discord.js?utm_source=readme_badge)

Momentum

+670

STARS · LAST 30 DAYS

22

PER DAY

#103

MOST-STARRED TypeScript

Window7 days30 days90 days
Stars gained+0+670+2K
Per day12222
Forks gained+0+81+204

discord.js gained 670 stars in the last 30 days, about 22 a day, and now has 26.8K. It is about 11 years old and has averaged roughly 2.4K stars a year. It ranks #103 among TypeScript repositories and #512 across all languages on GitHubRepo.

Trending Record

discord.js has maintained a continuous presence across global trending indexes, peaking at #1415. Below is the 30-day activity profile:

💡 Overview

discord.js is an open-source project written in TypeScript: A powerful JavaScript library for interacting with the Discord API.

Engineered for speed, consistency, and developer ease, it solves common hurdles in bot, discord, discord-api. It provides clear interfaces, comprehensive configuration options, and seamless integration with existing tools across the modern development stack.

⚡ Key Features

1

Optimized execution pipeline written in TypeScript for predictable speed.

2

Zero-friction configuration with comprehensive sensible defaults out of the box.

3

Cross-platform runtime support across Linux, macOS, and Windows environments.

4

Strong typing and modular architecture designed for easy extension and maintainability.

5

Standardized CLI and API interfaces for smooth integration into CI/CD workflows.

6

Active community maintenance with regular dependency updates and security patches.

📥 Installation

terminal
$ npm install discord.js

⚙ System Requirements

Platforms

  • • macOS
  • • Linux
  • • Windows

Runtime & Dependencies

Node.js >= 18, npm, pnpm or bun

Architecture

x86_64, ARM64 (Apple Silicon & Graviton)

🧠 How It Works

discord.js coordinates its core functionality through a modular TypeScript pipeline. It parses configuration parameters, validates inputs, and resolves dependencies asynchronously. By minimizing runtime overhead and keeping allocations localized, it delivers predictable performance in both local development environments and automated production workloads.

🎯 Production Use Cases

Production System Integration

Embed discord.js into TypeScript backend services to handle core application logic.

CI/CD Automated Pipelines

Run automated validation, builds, and integration suites during deployments.

Developer Tooling & Workflows

Accelerate developer onboarding with pre-configured project utilities.

Open Source Extension

Fork and customize internal modules under the repository's open Apache-2.0 license.

🚀 Getting Started

1

Install discord.js using your package manager: `npm install discord.js`

2

Initialize your project workspace or configuration file for discord.js.

3

Import discord.js into your codebase or invoke it directly from your terminal.

4

Execute your test suite or run `discord.js --help` to verify successful setup.

👍 Strengths

Active community backing with 26,819 GitHub stars and verified adoption.
Permissive open-source distribution under the Apache-2.0 license.
Built in TypeScript for high execution speed and developer familiarity.
Cross-platform compatibility across modern Linux, macOS, and Windows environments.
Clean modular design allowing flexible configuration and pipeline integration.

⚠️ Considerations

Requires familiarity with TypeScript and modern CLI workflows.
Ecosystem extensions may require manual configuration depending on environment constraints.
Active development roadmap means breaking API changes may occur across major versions.

⇄ Alternatives & Direct Competitors

F
freeCodeCamp/freeCodeCamp ★ 456.6K TypeScript

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

Compare ↗
D
deepseek-ai/deepseek-harness ★ 241.6K TypeScript

DeepSeek Harness: Everything is a Plugin.

Compare ↗
V
vuejs/vue ★ 212.8K TypeScript

This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core

Compare ↗
O
anomalyco/opencode ★ 212.4K TypeScript

The open source coding agent.

Compare ↗

👥 Who Should Use This

Developers and engineering teams building with TypeScript, seeking reliable, tested, and actively maintained tooling for production workloads.

🏆 Nearby in the Rankings

discordjs/discord.js is currently ranked #512 by stars across every repository tracked on GitHubRepo. These are adjacent projects:

RankRepositoryLanguageStarsAction
#507 oldj/SwitchHosts Rust ★ 27.3K Compare ↗
#508 badges/shields JavaScript ★ 27.2K Compare ↗
#509 tree-sitter/tree-sitter Rust ★ 27.1K Compare ↗
#510 philc/vimium JavaScript ★ 27K Compare ↗
#511 airbnb/lottie-ios Swift ★ 26.9K Compare ↗
#512 discordjs/discord.js This Project TypeScript ★ 26.8K
#513 OpenAPITools/openapi-generator Java ★ 26.8K Compare ↗
#514 floci-io/floci Java ★ 26.7K Compare ↗
#515 jenkinsci/jenkins Java ★ 26.6K Compare ↗
#516 icsharpcode/ILSpy C# ★ 26.5K Compare ↗
#517 microsoft/winget-cli C++ ★ 26.5K Compare ↗

Frequently Asked Questions

What does discord.js do? +

A powerful JavaScript library for interacting with the Discord API

What language is discord.js written in? +

The primary language is TypeScript. Topics include: bot, discord, discord-api, discord-bot, discord-server.

Is discord.js actively maintained? +

Yes, the last recorded push was on Oct 1, 2026 with 150 open issues being tracked.

How many stars does discord.js have? +

discord.js has 26,819 stars and 4,073 forks on GitHub.

How does discord.js rank among GitHub repositories? +

With 26,819 stars, discordjs/discord.js is ranked #512 globally across all repositories tracked on GitHubRepo and #103 among TypeScript projects.

What license is discord.js distributed under? +

The repository reports a Apache-2.0 license. Always verify the repository LICENSE file for legal terms.

From our network
FOR MAINTAINERS

Built something? Put it in front of millions of developers.

We make a short reel about your project and post it across YouTube, Instagram, Threads, and X. Send a link, we do the rest.