MWMartin Wassim
Return to Selected Work
ARCHITECTURAL DOSSIER // 2024—2026
PROJECT 04Full-Stack Web & Generative AIAI Ingestion Engine

AI PORTFOLIO PLATFORM

Dynamic portfolio management platform with AI résumé ingestion and database fallback.

martinx.work/work/ai-portfolio
AI PORTFOLIO PLATFORM Architectural Presentation
TIMELINE

2024 — 2026

DISCIPLINE

Full-stack / Generative AI

ROLE

Lead Software Architect

AFFILIATION

Systemize EG · Cairo

Core Runtime • Engineering Toolchain
Next.jsReactTypeScriptSupabaseOpenAI / Gemini APIZodVercel
01 // Operational & Technical Friction

The Problem Space

Updating technical portfolios requires tedious code redeployments or reliance on brittle third-party CMS services.

02 // The Architected Solution

Systemized Implementation

Built a private full-stack management suite that uses generative AI to extract projects and experience directly from uploaded CV PDFs.

03 // Production Implementation & Workflow

How It Operates in Production

Engineered with Next.js App Router, Supabase Auth, and OpenAI/Gemini structured outputs. Built an admin cockpit with real-time editing, draft previews, and automatic JSON synchronization.

Engineering Depth

Implemented strict Zod schema validation on LLM JSON output, error boundaries, and a transparent fallback provider ensuring continuous read availability.

04 // Architectural Flow & State MachineBespoke Pipeline
FULL-STACK ARCHITECTURE

AI PORTFOLIO // AUTONOMOUS RÉSUMÉ INGESTION & DUAL-LAYER FALLBACK

ZERO-DOWNTIME • RESILIENT HYBRID CACHE
STEP 01 // PARSE

Multi-Format PDF Extraction

Unstructured document reader extracts timeline milestones, technology keywords, and verified achievement metrics.

NODE 01ONLINE
Core Innovation
STEP 02 // STRUCTURE

Zod Schema Constraint Validation

Strict TypeScript runtime validation guarantees generated JSON strictly adheres to the portfolio data contract.

NODE 02VERIFIED
STEP 03 // RESILIENT CACHE

Dual-Layer Static Fallback

Persists records to Supabase PostgreSQL while simultaneously updating static fallback JSON to guarantee 100% uptime.

NODE 03ONLINE

Data Flow & Infrastructure

Uploaded resumes are processed by a server-side parser extracting raw text. The text is passed to an AI LLM with a strict JSON schema. Once validated against Zod models, the data is committed to PostgreSQL and published to the live portfolio.

Architectural Highlight

Engineered a resilient dual-layer data architecture: when cloud database connectivity is unavailable, the system transparently falls back to local JSON cache without downtime.

05 // Key Engineering Decisions
Structured LLM outputs: Enforced Zod schemas on AI parsing to guarantee typed arrays for skills, timelines, and projects with zero formatting errors.
Resilient dual-layer fallback: The frontend gracefully serves cached static assets if database connection timeouts occur.
Granular security controls: Supabase RLS policies safeguard administrative endpoints while keeping portfolio read views globally accessible.
06 // Challenges & Mitigations
Handling diverse, inconsistent PDF resume formats and extracting chronological employment blocks accurately.
Preventing prompt injection attacks within uploaded resume text.
07 // Verified Capabilities

Core System Features

AI-driven automated résumé parsing into structured Zod schemas
Private authenticated administration panel with granular editing controls
Real-time database persistence with Supabase PostgreSQL
Dual-layer fallback mechanism guaranteeing 100% portfolio uptime
Custom analytics logging and visit telemetrics
Live preview sandbox before committing changes to production