What a Discord overlay is and why you might build one
A Discord overlay is a transparent window that sits on top of your game and shows Discord information — chat messages, who is talking, notifications — without making you alt-tab out of the game. You can build your own instead of using Discord's built-in overlay because custom overlays let you control exactly what appears, where it sits on your screen, how big it is, and what it looks like.
Most people who build custom overlays are streamers, content creators, or players who want to display specific information their friends care about — like who is currently speaking, or a live chat feed. Discord's native overlay works for most players, but if you want something tailored to your setup or your audience, a custom overlay gives you that control.
Building one requires some technical work. You will be writing code or using existing tools that connect to Discord's systems. This guide covers the main paths: using a pre-built overlay tool, modifying an existing open-source overlay, or writing your own from scratch.
Key Takeaways
- Discord overlays display server or direct message information on top of your game without interrupting gameplay.
- The easiest route is using a pre-built tool like StreamKit or Natsume, which require no coding and work with streaming software like OBS.
- If you want more control, you can fork an open-source overlay project on GitHub and modify it to fit your needs.
- Building an overlay from scratch requires knowledge of web technologies (HTML, CSS, JavaScript) and Discord's API.
- Most custom overlays run as a separate window or browser source and communicate with Discord through webhooks or the Discord API.
Using a pre-built overlay tool with no coding required
The fastest path is using a tool that already exists. Discord StreamKit is the official option — it is built by Discord and designed for streamers. You log in with your Discord account, choose what you want to display (active voice channel members, chat messages, or both), customize the appearance, and get a URL you can add to OBS, Streamlabs, or any streaming software as a browser source. It takes about five minutes and requires no coding.
Natsume is a community-built alternative that offers similar features with more customization options for colors, fonts, and layout. You paste your Discord server ID, choose what to display, and get a shareable link. Both tools work the same way: they create a webpage that Discord's systems feed information into, and you embed that webpage into your game or stream as an overlay.
The limitation of pre-built tools is that you are locked into what the creator decided to build. If you want to display something those tools do not support — like a custom command list, or information from a bot you wrote — you will need to move to the next step.
Modifying an open-source overlay project
If you have basic coding experience and want more control, start with an existing open-source overlay on GitHub. Search for "Discord overlay" on GitHub and you will find dozens of projects. Popular ones include Discord.js-based overlays and browser-based overlays written in React or Vue. Pick one that is actively maintained (recent commits, open issues being answered) and matches what you want to build.
The process is: fork the project to your own GitHub account, clone it to your computer, read the README file for setup instructions, and then modify the code to fit your needs. Most overlays are structured the same way — a backend that talks to Discord's API, and a frontend (the visual part) that displays the information. You will usually only need to change the frontend unless you want to add new data sources.
This path requires you to be comfortable with Git, installing dependencies (usually through npm or pip), and reading code written by someone else. If you get stuck, the project's GitHub issues or discussions are usually the best place to ask. Many overlay creators are happy to help people who are trying to modify their work.
Building an overlay from scratch using Discord's API
If you want complete control and have intermediate coding skills, you can build one yourself. You will need to understand HTML (the structure), CSS (the styling), and JavaScript (the logic). You will also need to register an application with Discord and get an API token so your overlay can talk to Discord's servers.
The basic architecture is: your overlay runs as a webpage (or an Electron app, which is a webpage wrapped in a desktop window). That webpage uses Discord's API or webhooks to pull information about voice channels, messages, or members. JavaScript updates the page in real time as things change — when someone joins voice, when a message arrives, when someone starts typing.
Start by reading Discord's developer documentation at discord.com/developers/docs. Create a new application in the Developer Portal, generate a bot token, and invite that bot to your test server. Then write code that connects to Discord using either the REST API (for one-time requests) or the Gateway (for real-time updates). Most custom overlays use the Gateway because it is faster and uses less bandwidth.
This path takes the longest — anywhere from a few hours to a few days depending on what you want to display — but it is the only way to build something completely custom. If you get stuck, the Discord.py and Discord.js communities on Reddit and GitHub are active and helpful.
Running your overlay as a browser source in OBS or Streamlabs
Once you have an overlay (whether pre-built, modified, or custom), you need to display it on top of your game. The standard way is to add it as a browser source in OBS Studio or Streamlabs. Open OBS, create a new scene or edit an existing one, click the plus icon under Sources, and select Browser. Paste the URL of your overlay into the URL field, set the width and height to match your game resolution, and click OK.
If your overlay is running locally on your computer (not on a web server), use a URL like http://localhost:3000 instead of a web address. Make sure your overlay application is running before you start your stream or game. OBS will display it on top of everything else, and you can move it around, resize it, or adjust its opacity by right-clicking on the source.
If you are not streaming and just want the overlay visible while you play, you can run it in a separate window and position it to the side of your game, or use a tool like Always On Top to keep the overlay window visible even when the game is in focus. Some overlays support being embedded directly into games using injection, but that is more advanced and not necessary for most setups.
Connecting your overlay to Discord data in real time
The hardest part of building an overlay is making it update instantly when something changes in Discord. There are two main approaches: webhooks and the Gateway.
Webhooks are simpler but slower. Discord sends your server a message every time something happens (a message is posted, someone joins voice, etc.). Your server receives that message and updates the overlay. The delay is usually one to two seconds. Webhooks work well for displaying chat messages or notifications, but not for things that change constantly.
The Gateway is a persistent connection between your overlay and Discord's servers. Your code connects once and stays connected, receiving updates instantly as they happen. This is what Discord's official overlay uses. It is faster (under 100 milliseconds delay) but requires more code to set up. If you are using a library like Discord.py or Discord.js, the Gateway is usually the default, so you do not have to think about it much.
Start with webhooks if you are new to this. Once you understand how data flows from Discord to your overlay, switching to the Gateway is straightforward.
Troubleshooting common overlay problems
If your overlay is not showing up in OBS, check that the URL is correct and that your overlay application is actually running. Open the URL in a regular web browser first to make sure it loads. If it does not, check your application's error logs — most will print errors to the terminal or a log file.
If your overlay is showing but not updating, the problem is usually that it is not connected to Discord. Check that your bot token is correct, that the bot is in your server, and that your code is actually trying to connect. Add console.log statements (in JavaScript) or print statements (in Python) to see where the connection is failing. Discord's API will return error messages that tell you exactly what went wrong.
If your overlay is updating but with a delay, you are probably using webhooks. Switch to the Gateway for real-time updates. If you are already using the Gateway and still see delays, the problem might be your internet connection or Discord's servers, not your code.
Frequently Asked Questions
Do I need to know how to code to make a Discord overlay?
No. Tools like Discord StreamKit and Natsume require no coding at all — you just log in and customize settings. If you want something more custom, you will need to learn some coding, but you can start by modifying an existing project instead of building from scratch.
Can I use my overlay while streaming and while playing offline?
Yes. If your overlay is a browser source in OBS, it works the same way whether you are streaming or not. If you want to see it while playing without OBS, run it in a separate window and position it next to your game, or use an always-on-top tool to keep it visible.
Will Discord ban me for using a custom overlay?
No. Custom overlays that use Discord's official API are allowed. Discord's terms of service prohibit overlays that inject code directly into Discord itself or that scrape data without permission, but overlays that use the API or webhooks are fine. If you are using a pre-built tool or a library like Discord.py, you are safe.
What is the difference between a bot and an overlay?
A bot is a Discord account that runs commands and sends messages in your server. An overlay is a visual display that shows information from Discord on top of your game. You can build both, and they often work together — a bot might send data to your overlay, or your overlay might trigger a bot command.
Can I make my overlay visible to other players in my game?
Not directly. Overlays are local to your computer — only you see them. If you want other players to see the same information, you would need to stream it to them or build a separate system that displays it in the game itself, which is much more complex and usually not possible without modifying the game's code.