Astro is the most unique and complete discord bot for temporary voice channels and voice roles!
This repository contains the code for the frontend of the bot.
Other repositories:
- Backend
- Infrastructure (GitOps) and cluster (Terraform)
Resources:
I initially built this bot for my friends Discord, but then it grew way beyond my expectations.
You can read the story of this project on my blog post!
Warning
I do not provide support for self-hosting the bot.
This project was born and lived long of its life in the pre-AI-era.
In November 2026 I used AI for the first time to write code for Astro.
I froze all the code that was written before that in pre-ai-era branches in both Backend and Frontend repositories, so if you are interested in some human artifacts built by pulling all nighters to fix bugs and kubernetes deployments, those branches will serve you well.
- Node.js v24 or higher
- pnpm
- Typescript
- Infisical CLI, the env variables are there
Note
This is a standard Nuxt 4 project, refer to the framework documentation for more info.
Design and CSS with Tailwind. Inspiration for simple components can be gathered with shadcn-vue.
Store management with vue-query.
Icon management with Nuxt Icon. Icons can be browsed on Icones.
General utilities from VueUse. Most of the general requirements can be solved with this library.
Guides and legal pages are markdown files in /content, rendered with Nuxt Content.
Translations are in /i18n and managed on Crowdin, the guides are english only.
Login is fully managed by the backend (api-central): the website redirects to it, and it sets a session cookie once the user is back from Discord.
Every request to the api is sent with credentials, and also server-side rendering forwards the cookie.
The flow is explained in the backend docs.
- Create the development
.envfile
It pulls the variables from thedevenvironment of Infisical, each of them is described innuxt.config.ts.pnpm run env
- Run in dev mode:
If you don't have the backend running you can use
pnpm run dev
pnpm run dev:mockto get a fake list of guilds.
You will get instructions on how to access the website for local dev in the terminal logs.
Warning
I do not provide support for self-hosting the bot.
- A fork of this repository
- Cloudflare account
This web app should be deployed via nitro on Cloudflare Pages. This allows cheap server-side rendering.
Follow this guide for deployment instructions.
Settings to use:
- build command:
pnpm install --frozen-lockfile && pnpm build, output directorydist NODE_VERSION=24, compatibility date2025-07-15and thenodejs_compatflag- a D1 database bound as
DB, Nuxt Content stores the guides in it - one project per environment, with its own variables
Important
The environment variables are read at build time, so they must be set as build variables of the Pages project.
You can see the ones in use and a description of them in nuxt.config.ts (ASTRO_API_BASE_URL, CHARGEBEE_SITE).
Set NUXT_SITE_ENV=production on the production project, anything else makes the website not indexable by search engines.
If you have an idea, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the AGPL-3.0 license. See LICENSE.txt for more information.
