Requirements: Bun and Git
- Clone the repo
- Rename
.env.example
to.env
and set the API keys and configuration bun install
bun run start
- Server should be running at
localhost:3000
Tweetalyzer requires a host
header with the contents of env.CF_HOST_TOKEN
by default — this is to prevent attackers with access to your device's IP from bypassing Cloudflare's firewall and DDOS mitigation services.
If you're on Cloudflare Tunnels, you can set the host
header to the contents of env.CF_HOST_TOKEN
, else you can just remove the part of the code that checks this.
The auraboard is set up by default to update when a GET
request to /api/internal/auraboard
with a token
query parameter corresponding to process.env.ADMIN_TOKEN
is made.
This is so that you can set up external cron jobs to run it whenever you want.