https://github.com/ryanccn/vendflare
Vencord backend on Cloudflare Workers
https://github.com/ryanccn/vendflare
cloudflare cloudflare-d1 cloudflare-workers discord sync typescript vencord
Last synced: 10 months ago
JSON representation
Vencord backend on Cloudflare Workers
- Host: GitHub
- URL: https://github.com/ryanccn/vendflare
- Owner: ryanccn
- License: agpl-3.0
- Created: 2023-05-30T09:10:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-28T15:53:32.000Z (11 months ago)
- Last Synced: 2025-03-28T16:30:56.264Z (11 months ago)
- Topics: cloudflare, cloudflare-d1, cloudflare-workers, discord, sync, typescript, vencord
- Language: TypeScript
- Homepage:
- Size: 573 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vendflare
A [Vencord](https://vencord.dev/) backend/cloud/API running on [Cloudflare Workers](https://workers.cloudflare.com/) with [D1](https://developers.cloudflare.com/d1/).
The [official implementation](https://github.com/Vencord/Vencloud) uses monolithic Go and Redis.
## Getting started
Set the bindings of the D1 database in `wrangler.toml` to the D1 database IDs on your own account; run `wrangler d1 create ` to create a database if you do not already have one set up.
[Register a Discord application](https://discord.com/developers/applications) and set the OAuth client ID and secret as environment variables on your worker as `DISCORD_CLIENT_ID` and `DISCORD_CLIENT_SECRET`, respectively.
Then, deploy this worker on Cloudflare using [wrangler](https://developers.cloudflare.com/workers/wrangler/).
You can set `ALLOWED_USERS` as a comma-separated list of user IDs to only allow some users to use this instance. You can also set a `SIZE_LIMIT` to limit the size of the configuration (so that people don't use it as a cloud drive). Set `ROOT_REDIRECT` for the URL to redirect to on the root URL.
## Testing
Tests are powered by [Vitest](https://vitest.dev/). Tests utilize an ephemeral Cloudflare Workers environment that emulates Cloudflare Workers' actual runtime environment.
## License
GNU AGPL v3