Update your discord activity status with a rich presence from Figma. Supports Windows and MacOS
Figma does not support a native way to monitor the application state in the background (yet?), but, it does drop some state files on your machine.
This application periodically reads those files checking for updates and combines some information to determine whether Figma is in the foreground, what the current active file is, and a share link to that file.
Every ~15s your Figma activity is reported to Discord via the Discord RPC protocol.
Linux is currently not supported. This application requires Figma Desktop. Ensure that you have your activity status enabled in Discord, or your activity won't be visible to anyone.
MacOS:
~/Library/Saved\ Application\ State/com.figma.Desktop.savedState/windows.plist
must exist~/Library/Application\ Support/Figma/settings.json
must existsavedState
does not update in realtime. We could watch this file for changes and update your Discord activity when it does but since we try to honor Discord's 15s activity update limit, we currently just wait for the next tick to update your activity.# Clone this repository
git clone https://github.com/bryanberger/figma-discord-presence
# Change directory
cd figma-discord-presence
# Copy and edit env vars
cp .env.example .env
# Install dependencies
npm install
# Run the app
npm start
# Build the electron binaries
npm run dist
# Publish (using the S3 Provider, make sure you're authenticated and have a bucket setup)
npm run publish
This project uses Github Actions to build for Windows and Mac. Upon successful build, if a git tag exists it will publish to S3 (given you've provided the proper access tokens).
When you want to create a new release, follow these steps:
After building successfully, the action will publish your release artifacts.
To contribute to this repository, feel free to create a new fork of the repository and submit a pull request.
master
branch.While I am a Discord employee, this is by no way endorsed as an "official" integration with Figma. This is a personal project and is actually kind of a hacky solution to bring Rich Presence for Figma to Discord.
This project is licensed under the MIT License - see the LICENSE file for details.