Skip to content

About

Website and dashboard for Astro, the Discord bot

Topics

Resources

Stars

6 stars

Watchers

0 watching

Forks

Latest commit

 

History

53 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

astro-bot.space

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:

Resources:

Table of Contents

About The Project

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.

AI Usage

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.

Development

Prerequisites

  • Node.js v24 or higher
  • pnpm
  • Typescript
  • Infisical CLI, the env variables are there

Understanding the codebase

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.

User authentication

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.

Running the application

  1. Create the development .env file
    It pulls the variables from the dev environment of Infisical, each of them is described in nuxt.config.ts.
    pnpm run env
  2. Run in dev mode:
    pnpm run dev
    If you don't have the backend running you can use pnpm run dev:mock to get a fake list of guilds.

You will get instructions on how to access the website for local dev in the terminal logs.

Deployment

Warning

I do not provide support for self-hosting the bot.

Prerequisites

  • A fork of this repository
  • Cloudflare account

Setup Cloudflare Pages

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 directory dist
  • NODE_VERSION=24, compatibility date 2025-07-15 and the nodejs_compat flag
  • 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.

(back to top)

Contributing

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

Top contributors:

contrib.rocks image

License

Distributed under the AGPL-3.0 license. See LICENSE.txt for more information.

(back to top)

Contact

(back to top)

About

Website and dashboard for Astro, the Discord bot

Topics

Resources

Stars

6 stars

Watchers

0 watching

Forks

Contributors

Languages