Skip to content

Twitch Better Profile - A new way to first interact with users on Twitch.

Notifications You must be signed in to change notification settings

basementdevs/twitch-addon-scylladb-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Twitch Better Profile

App Preview

Table of Contents

Introduction

This project uses Rust with Actix and ScyllaDB (using the Charybdis driver) for the backend, and React with Plasmo for the frontend. The project is organized into two main folders: extension for the frontend and api for the backend.

Prerequisites

Make sure you have the following tools installed on your machine:

Also you gonna need a Twitch Developer account and an Twitch Application:

alt text

[!INFO] You will set a default OAuth Callback URL to create your extension in this first moment.

Running the Extension

  1. Navigate to the extension directory:
cd extension
  1. Create a .env file in the extension directory using the provided .env.example:
cp .env.example .env
  1. Open the .env file and set your Twitch Client ID. The .env file should look like this:
PLASMO_PUBLIC_TWITCH_CLIENT_ID="your-client-id-here"
PLASMO_PUBLIC_TWITCH_API_URL="https://api.twitch.tv/helix"
PLASMO_PUBLIC_API_URL="https://twitch-extension.danielheart.dev"
  1. Install the Node.js dependencies using pnpm:
pnpm install
  1. Run the plasmo dev mode with Firefox as our target:
pnpm dev:firefox

This will create a server for hot-reload together with a dev extension that you can find at ./extension/build/firefox-mv2-dev

  1. Access the about:debugging tab (firefox only) and load your extension by selecting the manifest.json file:

Debugging Tab at Firefox

  1. Run the Authentication for the first time and retrieve the redirect_url and add it to Twitch App.

alt text

twitch with redirect uri

  1. Close the Redirect Tab and try to authenticate again:

App Authenticated

Contributing

We welcome contributions to improve this project! To contribute, please follow these steps:

  1. Fork the repository and clone it to your local machine.
  2. Create a new branch for your changes:
git checkout -b feature/your-feature-name
  1. Make your desired changes to the codebase.
  2. Test your changes to ensure they work as expected.
  3. Commit your changes with a descriptive commit message:
git commit -m "Add feature/fix: description of your changes"
  1. Push your changes to your forked repository:
git push origin feature/your-feature-name
  1. Open a pull request in the original repository and provide a clear description of your changes.
  2. Wait for the project maintainers to review and merge your pull request.

Thank you for contributing to this project! Your help is greatly appreciated.

License

This project is licensed under the MIT License - see the LICENSE file for details.