Browser-based tools for Discord communities, built with Next.js App Router, React, and TypeScript. Most media editing runs locally in the browser; lookup, CAPTCHA, bug-report, and webhook features use API routes and third-party services.
Requires Node.js 20.9+ and npm. Install dependencies and use the scripts in package.json for development, linting, tests, and production builds.
Copy .env.example to .env.local and provide credentials for the services you need. The app can run without them, but dependent features will be unavailable.
| Variable | Used for | Notes |
|---|---|---|
DISCAPP_TOKEN |
Discord User Lookup | Server-only Discord bot token. |
HCAPTCHA_SECRET_KEY |
CAPTCHA verification | Server-only hCaptcha secret used by User Lookup and bug reports. |
NEXT_PUBLIC_HCAPTCHA_SITE_KEY |
CAPTCHA widget | Public hCaptcha site key; it is included in browser code and is not a secret. |
BUG_HOOK |
Bug reports | Server-only Discord webhook URL that receives reports. |
NEXT_PUBLIC_SUPABASE_URL |
Supabase Auth and database | Public Supabase project URL. |
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY |
Supabase Auth and database | Public publishable key; access is controlled by Row Level Security. |
SUPABASE_SECRET_KEY |
Account deletion API | Server-only Supabase secret key used to remove account data and the Auth user. |
NEXT_PUBLIC_EVENT_SNOW |
Toggle snow effects (true / false) | This toggle controls the site wide snow effect. Individual user toggle is fully hidden and overided when it's false. |
Keep secrets out of source control and NEXT_PUBLIC_ variables. The Supabase URL and publishable key are public by design; do not expose service-role or secret keys. .env.local is ignored by Git. In Vercel, keep SUPABASE_SECRET_KEY server-only, mark it Sensitive when available, and scope it to Production; do not expose it to untrusted Preview deployments or fork builds.
Tests use Vitest and React Testing Library, with *.test.ts and *.test.tsx files alongside the source.
Deploy through the connected Vercel project and configure environment variables per environment. NEXT_PUBLIC_HCAPTCHA_SITE_KEY is embedded at build time.