mirror of
https://github.com/xHyroM/waki.git
synced 2024-11-21 14:31:07 +01:00
Waki, more like a simple proxy server that forwards requests to multiple WakaTime instances. Built on top of Cloudflare Workers
src | ||
.editorconfig | ||
.gitignore | ||
.prettierrc | ||
bun.lockb | ||
LICENSE | ||
package.json | ||
README.md | ||
tsconfig.json | ||
vars.example | ||
vitest.config.ts | ||
worker-configuration.d.ts | ||
wrangler.toml |
Waki stands for WakaTime Integration Proxy. It is a simple proxy server that forwards requests to multiple WakaTime instances.
Runs fully on Cloudflare Workers.
Requirements
How to setup
After cloning the repository and installing the dependencies, you need to run the following command to deploy the worker:
bun run deploy
Then, you need to set the following environment variables in your Cloudflare account:
API_TOKEN
- random UUID v4 that will be used to authenticate requestsPROVIDERS
- list of WakaTime instances (in JSON format)MAIN_PROVIDER
- main WakaTime instance which will be used to retrieve the user's data, etc...
Look at the vars.example
file for more information.
You can set the environment variables using the Cloudflare dashboard or using the wrangler
CLI.
wrangler secret put API_TOKEN
wrangler secret put PROVIDERS
wrangler secret put MAIN_PROVIDER