Expose your Discord activities to a RESTful API and WebSocket

lanyard profile readmelanyard visualizer

How?

Lanyard is a service that makes it super easy to export your live Discord presence to an API endpoint (api.lanyard.rest/v1/users/:your_id) and to a WebSocket for you to use wherever you want. It is fully open-source and powerful. You can use the API without deploying anything yourself - but if you want to self host it, you have the option to, though it'll require a tiny bit of configuration.

How Does Monitoring Work?

Lanyard uses a basic Discord Bot (which is open source as well) and monitors every user in its Discord server. On each presence change, Lanyard sends a WS signal to update the API response.


Try It Yourself

UserUnknown
User is
Offline
Listening to SpotifyNo
{}

The magic

Lanyard API is meant to create whatever you want using the data it provides. People have already started creating amazing projects. Let's preview one of them, lanyard-profile-readme. You can embed the result in your website or GitHub-like readme.

Read more about the API

✨ Enter user ID to see the magic

lanyard profile readme

Community Projects

21 in total

Landing page and API documentation concept for Lanyard API with a sleek UI.

Utilize Lanyard to display your Discord Presence in your GitHub Profile

Lanyard API plugin for Vue. Supports REST and WebSocket methods

React hook for Lanyard

Another React hook for Lanyard that uses SWR

Beautifully display your Discord presence on a website

Lanyard API wrapper for python. Supports both REST and WebSocket.

Use Lanyard in your Web App.

Lanyard API wrapper for GoLang

Lanyard with Composition API for Vue. Supports REST and WebSocket methods

Mock the discord 'Listen Along' feature within a react hook powered by the Lanyard API.

A GraphQL port of the Lanyard API.

SvelteKit integration with Lanyard, supports REST & WebSocket.

A Lanyard API wrapper for Svelte. Supports REST & WebSocket.

Lanyard API wrapper for Deno

Lanyard visualizer focused on the KV aspect

Updates a file to include your discord status using the Lanyard API.

Display your Discord status on your own website with premade CSS, and JS

A small tool to scrape the info of the map you're curently playing on osu!lazer and dump into a file for obs to read.

An asynchronous implementation of the Lanyard websocket and HTTP for python

A featureful API wrapper for Lanyard & Lanyard KV written in Dart.


Used By


Stargazers

Star on GitHub
user profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile pictureuser profile picture