kofi-websocket
A real-time bridge between Ko-fi webhooks and WebSocket connections.
770
A FastAPI application that bridges KoFi webhooks to WebSocket connections, enabling real-time notifications of KoFi events.
DEPRECATED REGISTRY: Use ghcr.io/eventkit-stream/kofi-websocket:latest
When the application is running, you can connect to the WebSocket endpoint using a verification_token. The application will forward any webhook data to connected WebSocket clients. This only happens if the provided verification_token matches the one in the webhook's data object.
Connect to the WebSocket endpoint using a verification token:
ws://<your-ip>:8000/ws/{verification_token}
Send a POST request to the webhook endpoint with the required data:
POST /webhook
Content-Type: application/x-www-form-urlencoded
{
"data": {
"verification_token": "your_token",
"some_key": "some_value"
"another_key": "another_value"
}
}
If you navigate to the root of the application, you will see a simple page explaining how to use the application with a built-in websocket client where you can connect to the WebSocket endpoint with any verification token, and test it by sending a test message.
Using docker run
docker run -d --name kofi-websocket -p 8000:8000 --restart unless-stopped lordlumineer/kofi-websocket:latest
or using docker-compose:
services:
api:
container_name: kofi-websocket
image: lordlumineer/kofi-websocket:latest
restart: unless-stopped
ports:
- "8000:8000"
The lordlumineer/kofi-websocket images come in multiple variants:
:latest, this is the latest stable release:<version>, you can specify a version to use a specific releasedev suffix.
:dev, this is the latest development version:dev-<version>, you can specify a version to use the latest development release for a specific main release:dev-<version>-<stage>, by specifying a stage (alpha, beta, rc, or dev), you can use a specific development stage for a specific main release:dev-<version>-<stage>-<version>, by specifying a version, you can use a specific development version for a specific development stage of a specific main releaseThis project is licensed under the MIT License. See the LICENSE file for details.
For any inquiries or support, please contact [email protected].
Content type
Image
Digest
sha256:d40b6c36c…
Size
60.8 MB
Last updated
over 1 year ago
docker pull lordlumineer/kofi-websocket:1.1.0