1
0
Fork 0
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
Find a file
2024-08-05 22:42:06 +02:00
.gimi build: use gimi 2024-08-05 22:41:43 +02:00
.github build: add funding 2024-08-05 22:42:06 +02:00
src fix: use api key search param instead of header 2024-07-17 17:41:38 +02:00
.editorconfig Initial commit (by create-cloudflare CLI) 2024-05-20 10:34:18 +02:00
.gitignore Initial commit (by create-cloudflare CLI) 2024-05-20 10:34:18 +02:00
.prettierrc feat: init 2024-05-20 12:45:11 +02:00
bun.lockb build: switch to bun 2024-08-05 22:38:04 +02:00
LICENSE feat: init 2024-05-20 12:45:11 +02:00
package.json build: switch to bun 2024-08-05 22:38:04 +02:00
README.md docs: use bun 2024-08-05 22:38:41 +02:00
tsconfig.json Initial commit (by create-cloudflare CLI) 2024-05-20 10:34:18 +02:00
vars.example docs: notice that API_TOKEN must be uuid v4 2024-05-20 13:14:36 +02:00
vitest.config.ts Initial commit (by create-cloudflare CLI) 2024-05-20 10:34:18 +02:00
worker-configuration.d.ts feat: init 2024-05-20 12:45:11 +02:00
wrangler.toml feat: init 2024-05-20 12:45:11 +02:00

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 requests
  • PROVIDERS - 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