Crate avl_console

Crate avl_console 

Source
Expand description

§AVL Console - Developer Portal & Web Dashboard

World-class developer portal for AVL Cloud Platform.

§Features

  • Dashboard: Real-time resource overview with WebSocket updates
  • AvilaDB Explorer: Interactive query editor with syntax highlighting
  • Storage Browser: Full S3-compatible file management
  • Observability: Metrics, logs, traces with advanced filtering
  • Billing: Cost tracking, usage analytics, budget alerts
  • API Explorer: Interactive API testing with OpenAPI specs
  • User Management: Teams, permissions, audit logs

§Architecture

┌─────────────────────────────────────────────────┐
│              AVL Console Frontend               │
│  (Server-Side Rendered + Real-Time WebSocket)   │
└─────────────────────────────────────────────────┘
                       ↓
┌─────────────────────────────────────────────────┐
│              Axum REST API Layer                │
│  (Authentication, Rate Limiting, CORS)          │
└─────────────────────────────────────────────────┘
                       ↓
┌──────────────┬──────────────┬──────────────────┐
│   AvilaDB    │   Storage    │   Observability  │
│   Explorer   │   Browser    │   Dashboard      │
└──────────────┴──────────────┴──────────────────┘

§Quick Start

use avl_console::{Console, ConsoleConfig};
use std::net::SocketAddr;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let config = ConsoleConfig::from_env()?;
    let console = Console::new(config).await?;
    let addr: SocketAddr = "127.0.0.1:8080".parse()?;

    console.serve(addr).await?;
    Ok(())
}

Re-exports§

pub use config::ConsoleConfig;
pub use error::ConsoleError;
pub use error::Result;
pub use state::AppState;

Modules§

ai_assistant
ai_engine
Local AI Engine abstraction for AVL Console
api
REST API routes
auth
Authentication module
billing
Billing and cost tracking
config
Configuration management for AVL Console
dashboard
Dashboard routes and handlers
database
AvilaDB Explorer - Database management and query interface
error
Error types for AVL Console
middleware
Middleware for AVL Console
monitoring
observability
Observability - Metrics, logs, and traces
query_builder
state
Application state management
storage
Storage Browser - S3-compatible file management
teams
templates
Template rendering support
websocket
WebSocket support for real-time updates

Structs§

Console
AVL Console - Main application structure