No description
  • Lua 59.4%
  • TypeScript 40.6%
Find a file
2025-08-03 10:54:01 -04:00
src improve presence updates and viewer tracking 2025-08-03 10:54:01 -04:00
.env.example add support for .env and move things from only being in the index file, 2025-08-02 13:08:53 -04:00
.gitignore Initial Project 2025-08-02 09:48:55 -04:00
.gitlab-ci.yml add support for .env and move things from only being in the index file, 2025-08-02 13:08:53 -04:00
biome.json add support for .env and move things from only being in the index file, 2025-08-02 13:08:53 -04:00
bun.lock add support for .env and move things from only being in the index file, 2025-08-02 13:08:53 -04:00
LICENSE add support for .env and move things from only being in the index file, 2025-08-02 13:08:53 -04:00
package.json Add viewer count, add proper starting timestamp, fix package.json's module entrypoint 2025-08-03 08:34:35 -04:00
README.md add support for .env and move things from only being in the index file, 2025-08-02 13:08:53 -04:00
tsconfig.json add support for .env and move things from only being in the index file, 2025-08-02 13:08:53 -04:00

Stream Presence

A Discord Rich Presence app that displays your streaming activity with live preview images.

Setup

  1. Install dependencies:

    bun install
    
  2. Copy the example environment file:

    cp .env.example .env
    
  3. Edit .env with your settings:

    DISCORD_CLIENT_ID=1401179007344443434
    STREAM_API_KEY=your-stream-key
    STREAM_BASE_URL=https://stream.atums.world
    PRESENCE_UPDATE_INTERVAL=15000
    DEFAULT_ACTIVITY_TYPE=1
    DEFAULT_ACTIVITY_NAME=
    

Usage

Run the application:

bun start

Configuration

Activity Types

  • 1 - Playing
  • 2 - Listening to
  • 3 - Watching
  • 4 - Competing In

Environment Variables

  • DISCORD_CLIENT_ID - Your Discord application client ID
  • STREAM_API_KEY - Your stream API key
  • STREAM_BASE_URL - Base URL for the streaming service
  • PRESENCE_UPDATE_INTERVAL - How often to update presence (milliseconds)
  • DEFAULT_ACTIVITY_TYPE - Default activity type (1-4)
  • DEFAULT_ACTIVITY_NAME - Default activity name

Auto Mode

Set both DEFAULT_ACTIVITY_TYPE and DEFAULT_ACTIVITY_NAME to skip prompts and run automatically.

Development

  • bun run dev - Run with hot reload
  • bun run lint - Check code style
  • bun run lint:fix - Fix code style issues