# Deploy Roberto Dynamic GitHub Home V5

This package preserves the V2 cream/teal interface and adds a responsive Unified IT Command dock, real GitHub statistics, a scikit-learn-validated signal lab, D1/Plausible traffic, and truthful Resend-to-Gmail delivery.

## 1. Upload

Upload the ZIP to Cloudflare Pages by Direct Upload. The package uses `_worker.js` Advanced Mode and serves static files through `env.ASSETS`.

## 2. Bind D1

Create or select a D1 database and add a binding named exactly `DB`. The Worker creates/upgrades `contact_messages` and `analytics_sessions` automatically without deleting V2 messages.

## 3. Add variables

Use `VARIABLES_REQUIRED.txt`. Secrets belong in Cloudflare Secrets; client IDs, domains, URLs, and usernames are plaintext.

## 4. Redeploy

Variables and bindings apply to a new deployment. Redeploy after each configuration change.

## 5. Verify

Open these routes:

- `/api/health`
- `/api/github/diagnostics`
- `/api/github/overview`
- `/api/github/contributions`
- `/api/analytics`
- `/api/cloudflare/pages`

Submit the contact form and confirm that the response contains `emailSent: true`, `resendId`, and `deliveredTo`. A Gmail inbox receipt depends on Resend accepting the sender/domain and the recipient address.

## Private repository display

`EXPOSE_PRIVATE_REPOSITORIES=false` keeps private names and URLs out of the public browser while retaining private totals. Change it to `true` only intentionally.
