← Back to projects
Hackathon Project

OraFinite

Self-hosted AI security platform

Distributed AI security platform with Rust/Axum API, Python CUDA ML sidecar, LLM Guard, Garak, gRPC, Redis, PostgreSQL, Docker Compose, Nginx, SSE, and a Next.js dashboard.

AI/MLSecuritySystemsBackendFull-Stack
Status
Prototype
Year
2026
Role / Context
Hackathon systems engineering project
OraFinite dashboard home screenshot

Overview

OraFinite is a self-hosted AI security platform for LLM applications. The repository contains a Rust/Axum API server, Python ML sidecar wrapping LLM Guard and Garak, gRPC protobuf boundary, PostgreSQL migrations, Redis cache/pub-sub/rate limiting, Nginx reverse proxy, Docker Compose GPU-only deployment, and a Next.js dashboard with Better Auth, model registry, guard/scanner pages, API keys, logs, SSE monitoring, subscriptions, and eSewa payment integration.

Problem

LLM applications need protection against prompt injection, toxic outputs, data leakage, PII/secrets exposure, and model endpoint vulnerabilities, but stitching scanning libraries into product infrastructure is operationally complex.

Solution

Separate application/API concerns from ML scanning workloads: Rust handles auth, API keys, rate limits, persistence, events, and orchestration; Python handles GPU-bound LLM Guard/Garak scanning; gRPC connects the services; Redis/PostgreSQL/Nginx/Docker Compose provide infrastructure boundaries.

Engineering Highlights

  • Rust/Axum API uses SQLx/PostgreSQL, Redis, JWT, API-key middleware, rate limiting, and event/log endpoints.
  • Python ML sidecar wraps LLM Guard real-time scanning and Garak vulnerability scanning behind gRPC.
  • Docker Compose defines Nginx, frontend, Rust server, PostgreSQL, Redis, and GPU-only ML sidecar services.
  • Next.js dashboard includes model registry, guard configuration, scanner flows, credentials, logs, SSE guard-event monitoring, and Better Auth.
  • Architecture demonstrates service boundaries between API gateway, persistence, cache/events, and CUDA inference workloads.

Architecture

  1. 01Next.js dashboard
  2. 02Nginx reverse proxy
  3. 03Rust/Axum API
  4. 04Redis cache/rate/events
  5. 05PostgreSQL
  6. 06gRPC
  7. 07Python CUDA ML sidecar
  8. 08LLM Guard + Garak

Technology

Frontend

Next.jsTypeScriptdashboard pagesSSE monitoringBetter Auth client

Backend

RustAxumTokioSQLxJWTAPI keysrate-limit middleware

AI/ML

Python ML sidecarLLM GuardGarakCUDA/PyTorchprompt/output scanningvulnerability probes

Data

PostgreSQL migrationsDrizzle client schemascan and guard-log tracking

Infrastructure

Docker ComposeNginxRedisgRPC/protobufGPU-only runtimeSSE

Ownership / Context

OraFinite is presented as a hackathon project. The portfolio describes repository-verified architecture and product scope without implying sole ownership of team work.

Screenshots / Assets

OraFinite screenshot 1
OraFinite screenshot 2
OraFinite screenshot 3