Expose your Discord activities to a RESTful API and WebSocket
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
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.
✨ Enter user ID to see the magic