/* global React, ReactDOM, KitChrome, CHBrand */ // // ============================================================================ // social.conceptualhealth.com — patient-facing personal product // ============================================================================ // THIS IS NOT A BRAND COMMAND CENTER. It is the patient's personal // social-health surface. Every signed-in Conceptual Health® patient connects // their X / Instagram / TikTok / LinkedIn / Reddit / Facebook / YouTube // accounts (read-only OAuth) once. We then ingest posts, replies, scrolls, // and mute/follow actions and route every signal through the Master Equation: // // CH = (S × Sp)^C × (T + E)^p × (ER × RS)^(C/3) // // Healthy social behavior MINTS HCR (HEALTHCOIN™) on the CH Chain. // Opting de-identified sentiment data into research mints HCC on hc.exchange. // The product is FREE, FOREVER. The promise is "I cannot believe I get this // for free." Deviating from that framing is a brand error. // // Single canonical patient identity (from Guardian Orb™ SSO). No separate // "social account" exists. Raw posts NEVER leave the patient's Datavault — // only computed signals (axis deltas, sentiment scores, scroll histograms) // cross a network boundary. Read-only OAuth. No auto-posting; co-pilot is // always hold-to-send. // // Read this kit's IMPLEMENTATION.md for the full screen-by-screen integration // map, OAuth scopes, mint formulas, and the Crisis Safety Net spec (which // requires Clinical + Legal + Compliance sign-off before any rollout). // ============================================================================ const { useState } = React; const { StatusStrip, Nav, Footer, Eyebrow, MasterEquationArtifact, CrossLinkStrip, AxisSigil, StatGrid } = KitChrome; // ============================================================================ // Platform glyphs — neutral marks (no logos, no emoji) // ============================================================================ const PLATFORM_GLYPHS = { X: , Instagram:, TikTok: , LinkedIn: , Reddit: , Facebook: , YouTube: , Threads: , }; // ============================================================================ // Hero // ============================================================================ function Hero() { return (
Relational & Social Field · Personal

Your social media
is your most honest health record.

Connect every account once. We read your scroll, your sentiment, your sleep-killing 2am sessions, your group-chat warmth — and route every signal through the Master Equation. Healthy behavior mints HCR. Sharing the data with researchers mints HCC. Free, forever.

  • Auto-tag every post and reply with the axes it touches (RS, ER, NM, ES…)
  • AI co-pilot drafts replies in your voice, calibrated to your CH score
  • Late-night scroll guard, sentiment alerts, and a real crisis safety net
  • Every healthy action mints HCR (HEALTHCOIN™). Opt-in research mints HCC.
I'm a patient — connect my accounts → See how it scores
HIPAA · BAA-ready · Read-only OAuth · You own every byte · Revoke any time
); } // ============================================================================ // Connected accounts — 7 platforms, mostly linked // ============================================================================ const PLATFORMS = []; function ConnectedAccounts() { return (
Connected Accounts

One read-only link per platform. We never post for you.

5 of 7 linked

OAuth read-only. No posting, no DMing, no following, no muting — unless you ask the co-pilot to. Revoke from this page or your Guardian Orb™ in one tap. Your raw posts never leave your Data Vault.

{PLATFORMS.map(p => (
{PLATFORM_GLYPHS[p.name]} {p.name}
{p.linked ? "● Linked" : "○ Unlinked"}
{p.handle}
{p.posts}posts
{p.reach}reach
{p.chLift}CH lift
{p.note}
))}
{}}>
Add another platform
Threads · Bluesky · Discord · Mastodon
); } // ============================================================================ // 8-axis impact — how each axis is moving from social signals // ============================================================================ const AXIS_IMPACT = []; function AxisImpact() { return (
Your Social CH · Last 30 days

Every axis. Read from your feeds.

Net CH lift +6.4 · Updated 4m ago

We read every post, reply, and scroll session through the Master Equation: CH = (S × Sp)^C × (T + E)^p × (ER × RS)^(C/3). Two of the eight axes — RS (your social field) and ER (your emotional resilience) — are directly social. The other six lift or drain depending on what you do with the platform.

{AXIS_IMPACT.map(a => (
{a.code}
{a.name}
{a.delta}
{a.source}
))}
); } // ============================================================================ // Live feed — auto-axis tagging + per-post HCR ledger // ============================================================================ const FEED = []; function LiveFeed() { const [filter, setFilter] = useState("All"); const visible = FEED.filter(p => filter === "All" ? true : filter === "Lifts" ? p.direction === "up" : p.direction === "dn"); return (
Live Feed · Auto-tagged

Every post, reply, and scroll — scored as it happens.

{["All", "Lifts", "Drains"].map(t => ( ))}
{visible.map((p, i) => (
{p.who.charAt(0)}
{p.who} {p.ch} {p.handle} · {p.time}
{p.text}
{p.tags.map(t => ( {t.t} {t.lift ? "↑" : "↓"} ))}
{p.reply && (
Co-pilot read u/sleeplessrn's distress signals and drafted a reply in your voice. Hold to send · 24 words · ER + RS lift estimated for both parties.
)}
{p.mint} {p.direction === "up" ? "Verified · CH Chain" : "Logged · advisory"}
))}
); } // ============================================================================ // AI Co-pilot — auto-respond, auto-compose, auto-mute, screen-time guard // ============================================================================ function CoPilot() { const [toggles, setToggles] = useState({ autoReply: true, autoCompose: false, toxicMute: true, lateNight: true, sentimentAlert: true, gratitudeNudge: false, }); const flip = k => setToggles(t => ({ ...t, [k]: !t[k] })); const Row = ({ k, label, sub }) => (
{label}
{sub}
flip(k)} role="switch" aria-checked={toggles[k]}/>
); return (
AI Co-pilot · Trained on your voice

The tools the platforms wouldn't build for you. Free, forever.

5 of 6 active

Reply & compose

Your co-pilot studies your last 5,000 posts to learn your voice, then drafts replies and posts that sound like you — calibrated to lift the axes you care about and never to fake support.

Guards & alerts

The platforms optimize for your time. Your co-pilot optimizes for your CH score. It runs in the background and acts on your behalf — every action is logged and reversible.

); } // ============================================================================ // Insights — sentiment timeline + doomscroll heatmap // ============================================================================ function Insights() { // Sentiment line — synthetic monthly data const sentiment = []; const w = 480, h = 140, pad = 6; const max = 100, min = 50; const sx = i => pad + (i / (sentiment.length - 1)) * (w - pad * 2); const sy = v => pad + (1 - (v - min) / (max - min)) * (h - pad * 2); const path = sentiment.map((v, i) => (i === 0 ? "M" : "L") + sx(i).toFixed(1) + " " + sy(v).toFixed(1)).join(" "); const area = path + ` L ${sx(sentiment.length - 1)} ${h - pad} L ${sx(0)} ${h - pad} Z`; // Doomscroll heatmap — 4 platforms × 24 hours, intensity 0-3 const platforms = []; const intensity = []; const heatColor = v => v === 0 ? "var(--bg-mist)" : v === 1 ? "rgba(17,122,77,0.25)" : v === 2 ? "rgba(17,122,77,0.55)" : "rgba(178,58,46,0.65)"; // 3+ = drain return (
Insights

Patterns the platforms hide from you.

Post sentiment · 30 days

Net positive trend +30 points. Calibrated against your own baseline, not the population.
30d ago15dToday

Doomscroll heatmap · last 7 days

Hour × platform. Red blocks are late-night drains on PO & NM axes.
{platforms.map((p, ri) => (
{p}
{intensity[ri].map((v, ci) => (
))}
))}
{[0,3,6,9,12,15,18,21].map(h => {h}:00)}
); } // ============================================================================ // Earnings ledger — HCR earned today from social behavior, on-chain // ============================================================================ const LEDGER = []; function Ledger() { return (
Today's HEALTHCOIN™ ledger

Healthy social behavior mints HCR. On-chain. Yours.

Verify on CH Chain →

Every mint below is signed by your Guardian Orb™ and recorded on the CH Chain proof-of-health blockchain. Drains are advisory only — they affect the score, never the wallet. A separate stream of HCC mints when you opt your sentiment timeline into research (off by default).

{LEDGER.map((row, i) => (
{row.time}
{row.action}
{row.axis}
{row.mint}
))}
TOTAL
Net mint today
8 axes
+13.30 HCR
); } // ============================================================================ // Crisis safety net — the hardest, most differentiating feature // ============================================================================ function CrisisNet() { return (
Crisis Safety Net

If you go quiet, somebody who loves you will know.

How it works.

Your co-pilot watches three signals across every connected account: sentiment collapse (your own posts, not others'), RS-axis silence (sudden disconnect from your usual circle), and 9-bracket triage language (the same NLP your clinic's AI Scribe uses). When all three trigger, a quiet escalation begins.

Nothing is shared with anyone outside your declared circle without your consent. Every escalation is logged in your Data Vault.

1
Private nudge to you Soft message from the orb: "I noticed. Want to talk?" Always reversible, never alarming.
2
Peer responder, opt-in A vetted peer (you chose them; they're certified by Conceptual Health® University) gets a low-volume signal.
3
Care team flag If the signal persists 72 hours, your PCP and on-call therapist see a discreet flag in Clinical — not the post itself, just the bracket.
4
Declared next-of-kin, last resort Only if signals reach Bracket 2 (SEVERE) and you do not respond in 24 hours. The person you named at signup. One contact, one message, one time.
); } // ============================================================================ // App // ============================================================================ function App() { return (
● Listening · 5 accounts · +12.40 HCR today } />
); } ReactDOM.createRoot(document.getElementById("root")).render();