Browse by type

This is a starter template for building Discord activities. It comes with all you need to create 3D activities, physics and multipayer included ⚡️
Activities are multiplayer games and social experiences in Discord. An Activity is a web application hosted in an iframe that can run within the Discord client on desktop, web, or mobile. The Embedded App SDK handles the communication between Discord and your iframed application.
Learn more about Discord activities

Built-in multiplayer with Playroom.
This starter is built with SvelteKit and uses the Three JS 3D library and the Rapier physics engine. The multiplayer is done using Playroom. Why SvelteKit? Because you ship fast 👇
<script>
let count = 0;
function increment() {
count += 1;
}
</script>
<button on:click={increment}>
Clicked {count}
{count === 1 ? 'time' : 'times'}
</button>
Getting started under the Activities tab. Then, follow the instructions.
Discord Activity, and follow the instructions.
git clone https://github.com/Hugo-Dz/discord-activity-starter.git
cd discord-activity-starter/client
npm install
In the client folder, open the .env file and add your Playroom Game ID. You can find it in your Playroom project, under the Game Overview tab.
Launch the app locally
# In the client folder
npm run dev
In another terminal, run cloudflared tunnel --url http://localhost:5173 to create a tunnel for the client app. You need to have Cloudflared installed.
Get the tunnel URL and put it in the URL Mapping in your Discord App in the Discord developer portal



MIT License Hugo Duprez
$ claude mcp add discord-activity-starter \
-- python -m otcore.mcp_server <graph>