Kraft102 Claude Opus 4.5 commited on
Commit
e78514a
Β·
1 Parent(s): 4942106

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>

Files changed (1) hide show
  1. ARCHITECTURE.md +61 -14
ARCHITECTURE.md CHANGED
@@ -1,7 +1,7 @@
1
  # WidgeTDC - Enterprise AI Platform Architecture
2
 
3
- **Last Updated:** 2025-11-26
4
- **Status:** βœ… Production Ready - CSS Build Fixed
5
 
6
  ## System Overview
7
 
@@ -14,20 +14,67 @@ WidgeTDC is an Enterprise-grade Autonomous Intelligence Platform featuring:
14
 
15
  ---
16
 
17
- ## Recent Updates (2025-11-26)
18
 
19
- ### βœ… Frontend Build System Fixed
20
- - **CSS Architecture Rebuilt**: Complete rewrite of `App.css` with proper structure
21
- - **Keyframes Fixed**: All `@keyframes` animations now use correct syntax (0%, 50%, 100%)
22
- - **Tailwind v4 Migration**: All `@apply` directives converted to standard CSS
23
- - **Build Success**: Frontend builds without errors (`npm run build`)
24
- - **No Blocking Issues**: All critical CSS syntax errors resolved
25
 
26
- ### βœ… PowerShell Scripts Standardized
27
- - **Created**: `update_agent.ps1`, `update_agent_github.ps1`, `update_agent_readme.ps1`
28
- - **Approved Verbs**: Using `Get-NormalizedPath` instead of `Normalize-Path`
29
- - **No Unused Variables**: Removed `GlobalHooksDir` and other unused assignments
30
- - **PSScriptAnalyzer Compliant**: All scripts pass linting
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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