Skip to content

zbrlang/zbr-webapp

Repository files navigation

ZBR Dashboard

The official web-based management platform for ZBR, a scripting language for Discord bots.

Overview

ZBR is a scripting language for Discord bots powered by a high-performance Rust runtime engine.
You write commands as plain .zbr files using ZBR functions, no boilerplate, no event handlers, no framework knowledge required.

This repository provides the central dashboard platform for ZBR, offering a high-performance web interface for managing your Discord bot fleet, creating and editing commands, and launching your bot instantly in the cloud for rapid prototyping and testing.

Key Features

  • Instant Test Runner: Launch and test your bot instantly with a single click using the integrated ZBR cloud runner (strictly for rapid prototyping/testing, not for 24/7 hosting).
  • Visual Script Editor: A full-featured code editor powered by Monaco, with custom syntax highlighting, autocomplete, and snippets for all ZBR functions.
  • Fleet Management: Unified interface to manage multiple bots. Monitor status, command counts, and variable distributions across your entire ecosystem.
  • Dynamic Configuration: Real-time management of bot activities, status states, and logging preferences without manual config file edits.
  • Variable Management: Centralized CRUD interface for bot-specific variables, allowing for rapid state management and persistence.
  • Command Management: Organize bot interactions through a specialized UI supporting prefix, slash, event, and interaction-based commands.
  • Secure Integration: Hardened authentication via Discord OAuth2 and encrypted storage for sensitive bot tokens using AES-256-CBC.
  • Data Portability: Full support for project mobility. Prototype in the cloud and export to ZIP for permanent 24/7 production hosting via the ZBR CLI.

Project Structure

  • src/app/: Next.js App Router for the dashboard and authentication pages.
  • src/app/api/: Serverless API routes for Firestore operations and Discord integration.
  • src/components/: Reusable UI components including the ZBR editor and navigation.
  • src/lib/: Core utilities for authentication, database access, and ZBR function metadata.
  • public/: Static assets including the ZBR branding and icons.

License

All Rights Reserved, see LICENSE.

About

The web-based management platform for ZBR.

Topics

Resources

License

Stars

9 stars

Watchers

0 watching

Forks

Contributors