Spaces:
Paused
Paused
docs: update system architecture for production deployment 2025-12-13
Browse files- Add live production URLs (Vercel + HF Spaces)
- Document cloud infrastructure (Redis, Neo4j, Neon PG)
- List recent deployment fixes (Dockerfile, widgets, package-lock)
- Update AI/LLM provider documentation
π€ Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- ARCHITECTURE.md +61 -14
ARCHITECTURE.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
# WidgeTDC - Enterprise AI Platform Architecture
|
| 2 |
|
| 3 |
-
**Last Updated:** 2025-
|
| 4 |
-
**Status:** β
|
| 5 |
|
| 6 |
## System Overview
|
| 7 |
|
|
@@ -14,20 +14,67 @@ WidgeTDC is an Enterprise-grade Autonomous Intelligence Platform featuring:
|
|
| 14 |
|
| 15 |
---
|
| 16 |
|
| 17 |
-
##
|
| 18 |
|
| 19 |
-
###
|
| 20 |
-
|
| 21 |
-
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
- **No Blocking Issues**: All critical CSS syntax errors resolved
|
| 25 |
|
| 26 |
-
###
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
---
|
| 33 |
|
|
|
|
| 1 |
# WidgeTDC - Enterprise AI Platform Architecture
|
| 2 |
|
| 3 |
+
**Last Updated:** 2025-12-13
|
| 4 |
+
**Status:** β
PRODUCTION LIVE - Cloud Deployment Active
|
| 5 |
|
| 6 |
## System Overview
|
| 7 |
|
|
|
|
| 14 |
|
| 15 |
---
|
| 16 |
|
| 17 |
+
## π Production Deployment (2025-12-13)
|
| 18 |
|
| 19 |
+
### Live URLs
|
| 20 |
+
| Service | Platform | URL |
|
| 21 |
+
|---------|----------|-----|
|
| 22 |
+
| **Frontend** | Vercel Edge | `https://matrix-frontend-claus-krafts-projects.vercel.app` |
|
| 23 |
+
| **Backend API** | HuggingFace Spaces | `https://kraft102-widgettdc-api.hf.space` |
|
|
|
|
| 24 |
|
| 25 |
+
### Cloud Infrastructure
|
| 26 |
+
```
|
| 27 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 28 |
+
β PRODUCTION ARCHITECTURE β
|
| 29 |
+
β "Headless Ghost" Pattern β
|
| 30 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 31 |
+
|
| 32 |
+
Browser βββΆ Vercel CDN βββΆ HuggingFace Spaces βββΆ Cloud Databases
|
| 33 |
+
β β β
|
| 34 |
+
React 19 PWA Node.js 20 ββββββ΄βββββ
|
| 35 |
+
185 Widgets 63 MCP Tools β Redis β
|
| 36 |
+
Zustand State Express API β Neo4j β
|
| 37 |
+
β Neon PG β
|
| 38 |
+
βββββββββββ
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
### Database Layer
|
| 42 |
+
| Database | Provider | Purpose |
|
| 43 |
+
|----------|----------|---------|
|
| 44 |
+
| **Redis** | Redis Cloud (EU-North-1) | Cache, Sessions, Event Bus |
|
| 45 |
+
| **Neo4j** | AuraDB Cloud | Knowledge Graph (4274 nodes, 5252 rels) |
|
| 46 |
+
| **PostgreSQL** | Neon Serverless | Vector Store (pgvector), Prisma ORM |
|
| 47 |
+
| **SQLite** | sql.js (in-memory) | Fallback for HF Spaces free tier |
|
| 48 |
+
|
| 49 |
+
### AI/LLM Providers
|
| 50 |
+
| Provider | Use Case |
|
| 51 |
+
|----------|----------|
|
| 52 |
+
| Google Gemini Pro | Primary reasoning |
|
| 53 |
+
| OpenAI GPT-4 | Fallback, embeddings |
|
| 54 |
+
| Anthropic Claude | Analysis tasks |
|
| 55 |
+
| DeepSeek V3 | Code generation |
|
| 56 |
+
|
| 57 |
+
---
|
| 58 |
+
|
| 59 |
+
## Recent Updates (2025-12-13)
|
| 60 |
+
|
| 61 |
+
### β
HuggingFace Spaces Deployment Fixed
|
| 62 |
+
- **Dockerfile Optimized**: Skip Puppeteer Chromium download
|
| 63 |
+
- **Memory Limits**: Reduced to 512MB for free tier compatibility
|
| 64 |
+
- **package-lock.json**: Regenerated correct monorepo lockfile
|
| 65 |
+
- **Data Directories**: `/app/data/*` created with proper permissions
|
| 66 |
+
- **Environment Variables**: `HF_SPACE=true`, `DOCKER=true` set
|
| 67 |
+
|
| 68 |
+
### β
Frontend Widgets Fixed
|
| 69 |
+
- **Icon Imports**: Added missing `Target`, `Video` imports
|
| 70 |
+
- **DataSources**: Added `threatIntel` to SourceLink.tsx
|
| 71 |
+
- **useEffect Fix**: Removed undefined `width/height` from dependency array
|
| 72 |
+
- **185 Widgets**: All rendering correctly
|
| 73 |
+
|
| 74 |
+
### β
Previous Updates (2025-11-26)
|
| 75 |
+
- CSS Architecture rebuilt for Tailwind v4
|
| 76 |
+
- PowerShell scripts standardized (PSScriptAnalyzer compliant)
|
| 77 |
+
- Build system fully functional
|
| 78 |
|
| 79 |
---
|
| 80 |
|