System Architecture
iProTraX is built on a modern, monolithic architecture optimized for ease of deployment, low latency, and real-time performance on the shop floor.
Technology Stack
Frontend (Client)
- •Next.js 16: Utilizing React Server Components (RSC) for performance and SEO.
- •React 19: The core UI library with concurrent rendering features.
- •Tailwind CSS v4: Utility-first CSS engine for rapid, consistent styling.
- •Recharts: Responsive charting library for Dashboard metrics.
Backend (Services)
- •Next.js API Routes: Serverless functions handling business logic and AI requests.
- •Prisma ORM: Type-safe database client ensuring data integrity.
- •Chokidar: Robust file watcher system for reliable Excel auto-imports.
Data Persistence
SQLite (Primary)
Zero-configuration, file-based storage. Perfect for on-premise deployments as it allows for trivial backup/restore by simply copying a file.
Excel Files (Input)
Acts as the "Universal Interface". The system watches hot folders and automatically parses .xlsx files into the database.
Native Layer (Rust & WASM)
Core security primitives, including ECDSA P-256 signature verification for licenses, are written in Rust and compiled to WebAssembly. This ensures high-performance cryptographic operations on both client and server sides while maintaining a small attack surface.
Artificial Intelligence
The AI Copilot is not just a chatbot, it's deeply integrated into the data pipeline:
- Context Injection: Automatically feeds relevant order status, delays, and comments into the LLM context window.
- Dual Providers: Supports OpenAI (Cloud) for power and Ollama (Local) for privacy and offline capability.
