Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation



[ PIXEL :: QUEUE ]

VISION INTELLIGENCE INFRASTRUCTURE

Typing SVG

A high-performance, dark-themed control panel for human-in-the-loop AI annotation, powered by decoupled ML microservices and robust task queues.

License Docker Frontend Backend Workers Ask DeepWiki

Architecture  •  Setup  •  Features  •  MLOps


⚡ Feature Matrix

PixelQueue embraces a strictly minimal, tech-forward aesthetic. It removes UX bottlenecks with pure speed, ditching heavy animations for instantaneous, DOM-optimized rendering.

Capability Module Description
Role-Based RBAC Auth First-party register/login with secure cookie sessions, plus project-level admin, reviewer, and annotator roles.
Asynchronous ML Celery Worker Non-blocking AI auto-labeling via PyTorch & Ultralytics integrations (YOLO/SAM).
Human-in-the-Loop Review Queue Imperative approval circuits. QA pipelines ensure 100% ground-truth validity.
Format Compilers Export Engine Distills annotation geometry into normalized COCO JSON and YOLO txt structures in seconds.
Zero-Latency UI Canvas Renderer Hardware-accelerated React-Konva staging. Zero-bloat OLED-optimized dark interface.

🏗️ Core Architecture

A highly decoupled, event-driven topology. The monolithic backend worker has been strictly partitioned into localized domains (tasks/, converters/) allowing infinite horizontal scaling of inference nodes.

graph TD
    %% Styling
    classDef client fill:#020617,stroke:#3B82F6,stroke-width:1px,color:#fff
    classDef proxy fill:#0F172A,stroke:#06B6D4,stroke-width:1px,color:#fff
    classDef backend fill:#0F172A,stroke:#8B5CF6,stroke-width:1px,color:#fff
    classDef worker fill:#111827,stroke:#10B981,stroke-width:1px,color:#fff

    Client[💻 Web Client<br/>React / Vite]:::client
    Nginx[🌐 API Gateway<br/>NGINX]:::proxy

    API[⚡ Core REST API<br/>FastAPI]:::backend
    DB[(🐘 Primary DB<br/>PostgreSQL)]:::backend
    Broker[[🟥 Message Bus<br/>Redis]]:::backend
    Storage{{🪣 Blob Store<br/>MinIO}}:::backend

    WorkerX[🤖 Inference Node A<br/>auto-label.py]:::worker
    WorkerY[📦 Compiler Node B<br/>export.py]:::worker

    Client -->|HTTP / WSS| Nginx
    Nginx -->|Proxy| API

    API -->|Read/Write| DB
    API -->|Dispatch| Broker
    API -->|Presigned URLs| Storage
    
    Broker -->|Consume| WorkerX
    Broker -->|Consume| WorkerY

    WorkerX -->|Read Weights| Storage
    WorkerY -->|Write Zips| Storage
    WorkerX -.->|Sync State| DB
    WorkerY -.->|Sync State| DB
Loading

📋 Prerequisites

Before running the infrastructure, ensure you have the following installed on your host machine:

Tool Recommended Version Purpose
Docker 24.0.0+ Container runtime engine
Docker Compose v2.20.0+ Orchestration tool
Node.js v20.x (LTS) Frontend development
Python 3.11 or 3.12 Backend API and Celery workers

🚀 Infrastructure Setup

Bootstrapping the entire constellation of microservices requires only Docker.

Important

Ensure ports 8000, 5173, 9000, and 5432 are open on your host machine.

# 1. Clone & initialize environment
git clone https://github.com/DhruvGarg111/PixelQueue.git
cd PixelQueue
cp .env.example .env

# 2. Compile and detach all containers
docker compose up -d --build

# 3. Inject initial DB schemas, required buckets, and root users
docker compose --profile tools run --rm bootstrap

🔑 Configure Google OAuth (Optional)

If you want the "Continue with Google" login to work, you must provide your own credentials:

  1. Go to the Google Cloud Console and create a new project.
  2. Under APIs & Services > Credentials, create a new OAuth client ID (Web application type).
  3. Add http://localhost:5173 to Authorized JavaScript origins.
  4. Set the Authorized redirect URI exactly to: http://localhost:8000/api/v1/auth/google/callback.
  5. Open your .env file and fill in the credentials:
    GOOGLE_CLIENT_ID=your-client-id-here.apps.googleusercontent.com
    GOOGLE_CLIENT_SECRET=your-client-secret-here

📡 Telemetry & Access

Intranet Target Port Bind Responsibility
Control Panel UI localhost:5173 The primary frontend interface.
API Swagger Docs localhost:8000/docs Live OpenAPI schema for integration testing.
MinIO Console localhost:9001 S3-compatible bucket explorer.

👤 RBAC Personas

Running the bootstrap script automatically provisions three demo profiles for local development and test workflows. Production onboarding is now self-serve through the register flow in the app.

Rank Identifier System Key (Pass) Capabilities
[ADMIN] [email protected] admin123 Global R/W. Cross-project administration, user assignment, pipeline triggering.
[REVIEWER] [email protected] reviewer123 Queue isolation. Finalize or reject annotation tasks.
[ANNOTATOR] [email protected] annotator123 Self-serve project creation, canvas interaction, and ML-assisted annotation.

🧭 Documentation Hub

We maintain comprehensive, developer-grade manuals inside the /docs directory. For a complete list of documents, refer to the Documentation Index.


🧪 Running Tests

Verify code changes before committing.

Backend (Pytest)

# Run tests inside Docker container
docker compose run --rm api pytest

Frontend (Vitest)

cd frontend
npm run test

For more information, see the Testing Standards Guide.


🤝 Contributing & Commits

We welcome contributions to PixelQueue! Please read our Contribution Guidelines to understand branch naming conventions and coding standards.

We enforce the Conventional Commits specification for all commit messages (e.g. feat(api): add export task).

About

No description, website, or topics provided.

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages