This repository contains a collection of examples for the Discord Embedded App SDK. To get started, visit discord.dev.
This starter app will get you up and running quickly with the basic skeleton of an Embedded App using Node.js, React, and Vite.
This example implements the SDK commands and events available within the application's iframe while building your app.
This example implements an Embedded App using a nested framework like a game engine. When using a game engine, you need to send messages between a parent iframe and the nested framework.
These examples are maintained by members of the Discord Developer Community.
Colyseus | This example uses Node.js, React, and Colyseus, a multiplayer JS framework, to demonstrate state management in a multiplayer experience. |
Robo.js | A collection of examples using the Robo.js framework, a framework for building Discord Activities. Includes examples for a variety of use cases, such as multiplayer, AI, proxying, and more. |
Wonderland Engine | This example uses Wonderland Engine and Node.js to demonstrate performant 3D rendering inside an Embedded App. |
Phaser | This example uses Phaser, a JavaScript game framework, along with HTML, CSS, and vanilla JavaScript to demonstrate running a Phaser game as a Discord Activity. Additionally, you can explore the multiplayer template, which integrates Phaser and Colyseus to showcase a multiplayer Phaser game on Discord. |
Please note that while these examples are licensed under the MIT License, the Discord Developer Terms of Service and Discord Developer Policy otherwise still apply to you and the applications you develop utilizing these examples.