> ## Documentation Index
> Fetch the complete documentation index at: https://discord-platform-username.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Activities Overview

> Learn about Discord Activities - multiplayer games and social experiences.

<img src="https://mintcdn.com/discord-platform-username/eorRGn159WYAM0xI/images/activities/activities-hero.png?fit=max&auto=format&n=eorRGn159WYAM0xI&q=85&s=0a57e8ec8a25ce5f87836e9bb014f2f2" alt="Building Discord Activities" width="1495" height="726" data-path="images/activities/activities-hero.png" />

Activities are web apps hosted in an iframe that use the [Embedded App SDK](/developers/activities/overview#embedded-app-sdk) to communicate with Discord clients. For an introduction to what Activities are, see the [Activities](/developers/platform/activities) platform page.

This section covers how Activities are built. You can explore real-world Activities by reading some of our [developer case studies](https://discord.com/build#case-studies), or jump right into building using the resources below.

<CardGroup cols={3}>
  <Card title="Build Your First Discord Activity" href="/developers/activities/building-an-activity">
    Follow the guide to build your first Activity using the Embedded App SDK.
  </Card>

  <Card title="Development Patterns" href="/developers/activities/development-guides">
    Explore common development patterns and practices to make building Activities simpler.
  </Card>

  <Card title="How Activities Work" href="/developers/activities/how-activities-work">
    Learn more about the lifecycle of Activities and how they run in Discord clients.
  </Card>
</CardGroup>

***

## Developing Activities

Whether you're developing a multiplayer game, a new social experience, or another creative idea, your Activity will be built as a web app that is run in an iframe in Discord on desktop, mobile, and web. You can get started by following the guide on [Building an Activity using the Embedded App SDK](/developers/activities/building-an-activity) or exploring the [sample projects](/developers/activities/overview#sample-projects)

The sections below provide an overview of the Embedded App SDK, but technical details about how Activities are run in Discord is covered in [How Activities Work](/developers/activities/how-activities-work).

### Embedded App SDK

The [Embedded App SDK](/developers/developer-tools/embedded-app-sdk) handles all of the communication between Discord and your app, making it easier to do common tasks like managing connected users, supporting mobile clients, and debugging your Activity.

The Embedded App SDK offers different events and commands to handle the communication between Discord and your Activity, which are covered more below.

#### Commands

The SDK has a set of commands you can call to interact with a Discord client, given you have the appropriate scopes. This is helpful when you want to do authorize and authenticate users, fetch information about your Activity, or update information for your Activity or an authenticated user.

Read the [Embedded App SDK documentation](/developers/developer-tools/embedded-app-sdk#sdk-commands) for a full list of commands, and details about each command.

#### Events

The SDK also has events you can subscribe (or unsubscribe) to for things happening in a connected client that are relevant to your Activity, given you have the appropriate scopes. This is helpful when you want to do things like handle initial connection and thrown errors, listen to updates about a connected user, and listen to events related to your Activity instance.

Read the [Embedded App SDK documentation](/developers/developer-tools/embedded-app-sdk#sdk-events) for a full list of events, and details for each event.

***

## Sample Projects

Use the sample projects we've built to help you get started building quickly and learn from common development patterns.

You can also find a list of community-maintained samples on [GitHub](https://github.com/discord/embedded-app-sdk-examples?tab=readme-ov-file#community-curated-examples), which includes more framework-specific examples.

<CardGroup cols={3}>
  <Card title="Discord Activity Starter" href="https://github.com/discord/embedded-app-sdk-examples/tree/main/discord-activity-starter">
    This TypeScript starter template is perfect for getting your own Activity up and running quickly.
  </Card>

  <Card title="Embedded App SDK Playground" href="https://github.com/discord/embedded-app-sdk-examples/tree/main/sdk-playground">
    This reference example implements the commands and events available to you within the Embedded App SDK.
  </Card>

  <Card title="Nested Framework App" href="https://github.com/discord/embedded-app-sdk-examples/tree/main/nested-messages">
    This reference example demonstrates an Activity using a nested framework like a game engine.
  </Card>
</CardGroup>
