npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

discord-together

v1.4.2

Published

Play games or watch YouTube videos together on Discord! More than 23 games available!

Readme


Discord Together

A simple, type-safe, and lightweight Node.js library to generate Discord Together invite links for over 23+ activities and games, supporting all versions of discord.js.


🔩 Installation

Install discord-together

npm install discord-together@latest

Install discord.js

npm install discord.js@latest

Supports all versions of Discord.js


🔑 Features

  • 🚀 Easy to use
  • 🌐 Multiple server support
  • 🛠️ Works with all Discord.js versions
  • 🎮 23+ games and activities
  • 🪶 Lightweight and type-safe
  • 🤝 Actively maintained
  • 📦 Extendable configuration

📚 Table of Contents


💻 Basic Example

A simple example using this package with Discord.js v14+:

import { Client, GatewayIntentBits } from 'discord.js';
import { DiscordTogether } from 'discord-together';

const client = new Discord.Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent] });
const togetherInstance = new DiscordTogether(client);

client.on('messageCreate', async message => { 
    if (message.content === 'start') {
        if(message.member.voice.channel) {
            togetherInstance.createTogetherCode(message.member.voice.channel.id, 'chess').then(async res => {
                return message.channel.send(`${res.invite}`);
            })
        };
    };
});

client.login('TOKEN');

📝 API Reference

DiscordTogether class

Constructor

new DiscordTogether(client: Client, applications?: ApplicationConfig)
  • client: Your Discord.js client instance (must be logged in).
  • applications (optional): Custom application config. Defaults to built-in games.

Methods

createTogetherCode(channelId: Snowflake, application: string): Promise<{ code: string, invite: string }>
  • channelId: The ID of the voice channel.
  • application: The key of the game/activity (see Available Games).
  • Returns: An object with the invite code and the full invite URL.

createDiscordTogether factory

import { createDiscordTogether } from "discord-together";

const createTogetherCode = createDiscordTogether(client, applications);
  • Returns the createTogetherCode function directly for functional usage.

⚙️ Advanced Usage

Custom Application Config

You can extend or override the default games with your own:

import { createApplicationConfig, DefaultApplicationsConfig, DiscordTogether } from "discord-together";

// Extend the default config with your own games
const extendedConfig = createApplicationConfig(
  { monopoly: "your_snowflake_id" },
  { extends: [DefaultApplicationsConfig] }
);

const instance = new DiscordTogether(client, extendedConfig);

Factory Usage

import { createDiscordTogether } from "discord-together";

// Returns the createTogetherCode function
const createTogetherCode = createDiscordTogether(client, applications);

🎮 All Available Games

| Key | Description | |----------------|---------------------------| | youtube | YouTube Together | | youtubedev | YouTube Dev | | poker | Poker Night | | betrayal | Betrayal.io | | fishing | Fishington.io | | chess | Chess in the Park | | chessdev | Chess Dev | | lettertile | Letter Tile | | wordsnack | Word Snack | | doodlecrew | Doodle Crew | | awkword | Awkword | | spellcast | SpellCast | | checkers | Checkers in the Park | | puttparty | Putt Party | | sketchheads | Sketch Heads | | ocho | Ocho | | puttpartyqa | Putt Party QA | | sketchyartist | Sketchy Artist | | land | Land | | meme | Meme | | askaway | Ask Away | | bobble | Bobble | | bashout | Bash Out |


🌌 Example of Bots Made with Discord Together


📝 License & Credits

  • License: MIT
  • Author: RemyK
  • Special thanks: Ayomits for the TypeScript rewrite, and all contributors and community members!

This package is not affiliated with Discord Inc. or YouTube Inc.


💬 Support

If you have any problems or questions, feel free to contact RemyK.