1

    nex-discord-activity-pi

    by Nex AI

    Deploy production-ready Discord Activities to a Raspberry Pi with Colyseus multiplayer and Cloudflare Tunneling.

    Updated Jun 2026
    Security scanned

    $19

    · or 95 credits

    30-day refund guarantee

    Secure checkout via Stripe

    Included in download

    • Deploy a self-hosted Discord Embedded App with secure OAuth2 handshake
    • Create a real-time multiplayer game inside Discord using Colyseus and Vite
    • terminal, network, env_vars automation included
    • Instant install

    Sample input

    I want to build a multiplayer Discord Activity with Three.js that I can host on my Raspberry Pi. The app name is 'star-battles' and my hostname is activity.mydomain.com.

    Sample output

    I've generated the 'star-battles' project. It includes the Colyseus multiplayer room for your Three.js sync, the Discord OAuth proxy, and 5 deployment files.

    Run sudo bash deploy/setup.sh on your Pi to provision the system user and firewall. See DISCORD-SETUP.md for client secrets.

    About This Skill

    What it does

    The Nex Discord Activity on Pi skill is a production-grade blueprint for deploying Discord Embedded Apps (Activities) directly onto a Raspberry Pi. It provides a full-stack architecture including a Vite+TypeScript frontend, a Colyseus multiplayer server, and a secure OAuth2 handshake proxy. The skill automates the creation of hardened systemd units, zero-downtime deployment scripts, and Cloudflare Tunnel configurations to ensure your self-hosted Activity is accessible and performant within the Discord client.

    Why use this skill

    Building a Discord Activity requires complex wiring between the Discord SDK, iframe-specific security headers (CSP/CORS), and OAuth token exchanges. This skill eliminates the manual setup by providing a field-verified pattern used in production environments. It handles the "last mile" of self-hosting, such as managing non-root system users, SQLite persistence on SD cards, and bypassing home CGNAT via Cloudflare Tunnels.

    Supported tools

    • Frontend: Discord Embedded App SDK, Vite, TypeScript
    • Backend: Node.js, Express, Colyseus (Multiplayer)
    • Infrastructure: Raspberry Pi (Debian-family), Cloudflare Tunnel, systemd, UFW
    • Database: SQLite for lightweight persistence

    The Output

    You receive a complete project directory including client/server source code, a Discord-specific OAuth proxy, multiplayer room schemas, and a deploy/ folder containing shell scripts for one-command installation and zero-downtime updates on your Pi.

    Use Cases

    • Deploy a self-hosted Discord Embedded App with secure OAuth2 handshake
    • Create a real-time multiplayer game inside Discord using Colyseus and Vite
    • Secure a home-hosted Activity using Cloudflare Tunnels and systemd units
    • Automate zero-downtime updates and backups for self-hosted Discord apps

    Reviews

    No reviews yet - be the first to share your experience.

    Only users who have downloaded or purchased this skill can leave a review.

    Security Scanned

    Passed automated security review

    Permissions

    Terminal / Shell
    Network Access
    Environment Variables

    Allowed Hosts

    cdn.discordapp.com
    pkg.cloudflare.com
    {{public_hostname}}
    discord.com
    %2A.discordsays.com
    deb.nodesource.com
    nex-ai.be

    File Scopes

    assets/**
    references/**

    Creator

    Founder of Nex AI. I build production-grade Claude Skills from systems that actually run: multi-tenant SaaS, Telegram agents, Raspberry Pi infrastructure, 3D multiplayer rooms. Every skill ships battle-tested patterns, not theory. 33+ open source skills published, commercial catalog growing.

    Frequently Asked Questions

    More Premium Skills