/* You: captures and their seals (+ verify inspector), holograms left in places, followed situations, alert radius, rendering quality, the concept marker and credits. */ const YOU = (GE.you = { radius: store.get('radius', 250), follows: store.get('follows', { cyclone: true, koshi: true, aurora: true, iss: false, launch: true }) }); YOU.render = function () { const v = $('#v-you'); const st = v.scrollTop; const W = GE.world; const caps = GE.captures; const holos = [...W.userHolos, ...GE.HOLOS.filter((x) => x.by === 'you')]; v.innerHTML = `
${ic('key', 'xs')} Device key · P-256 · ${GE.crypto.KEY.pair ? 'ready' : 'generating…'}

You

Y

Your eye

Watching from ${esc(GE.ME.name)} · ${esc(GE.ME.tz)}
${ic('sparkles', 'xs')} Concept · illustrative data
${GE.feed.user.length}posts
${holos.length}holograms
${Object.values(YOU.follows).filter(Boolean).length}following
${caps.length ? '100%' : '—'}verified

Captures

sealed on this device
${caps.length ? caps.map((c, i) => `
${esc(c.place)}${fmt.utc(c.at)}
${c.hash ? c.hash.slice(0, 18) + '…' : 'sealing…'}
`).join('') : `
No captures yet — open Capture › Witness and press the shutter.
`}

Your posts

in rooms
${GE.feed.user.length ? GE.feed.user.map((x) => { const s = GE.SIT.byId[x.sit]; const p = GE.rooms.byId[x.sit]?.posts.find((q) => q.id === x.post); const t = p?.att?.tier || 'text'; return `
${ic(t === 'sealed-live' ? 'live' : t === 'unverified' ? 'gallery' : 'seal')}${esc(x.title)}${esc(s ? (s.short || s.title.split(' — ')[0]) : '')} · ${{ 'sealed-live': 'Sealed live' + (p?.att?.segs ? ' · ' + p.att.segs + ' segments' : ''), sealed: 'Sealed', unverified: 'Unverified upload' }[t] || 'Text'} · ${fmt.ago(Date.now() - x.at)}
`; }).join('') : `
${ic('viewfinder')}Nothing posted yetCapture › Witness, Live or Upload, then attach it to a room
`}

Holograms

left in places
${(holos.length ? holos : [{ title: 'Drop one from a Witness capture', lat: 0, lon: 0, empty: true }]).map((x) => `
${ic('cube')}${esc(x.title)}${x.empty ? 'Visible to people nearby' : fmt.ll(x.lat, x.lon, 3) + ' · visible to people nearby'}${x.empty ? '' : ``}
`).join('')}

Following

alerts
${Object.entries(YOU.follows).map(([id, on]) => { const s = GE.SIT.byId[id]; if (!s) return ''; return `
${ic(GE.FAM[s.fam].icon)}${esc(s.title.split(' — ')[0])}${esc(s.place)}
`; }).join('')}

Alert radius

${YOU.radius} km
10 km2,000 km

Rendering

adaptive
${ic('gauge')}Resolution scaleDrops when frames take > 20 ms for 2 s
${ic('cpu')}Frame timePost chain: atmosphere → FXAA → half-res bloom → grade
${ic('sparkles')}Bloom
${ic('frame')}Film grain
${ic('gyro')}Reduced motionFollows your system setting${prefersReduced() ? 'On' : 'Off'}

About

vision mockup

${ic('sparkles', 'xs')} Concept · illustrative data

God’s Eye — the window through which you see the world, and the eye through which the world sees itself. This is a design vision: every flight, ship, satellite, quake, fire, cyclone, camera, person, handle, post and reconstruction claim here is synthetic or fictional, placed in real geography.

Imagery: NASA Earth Observatory / Visible Earth — Blue Marble: Next Generation (cloudless day), Black Marble 2016 (night lights), Blue Marble cloud mosaic, land/water mask and topography. Public domain, courtesy of NASA.

Real crypto: SHA-256 (WebCrypto) over every rendered capture and ledger entry; ECDSA P-256 signatures with a non-extractable key generated on this device.

Renderer: hand-written WebGL2 — ray-traced planet with single-scatter atmosphere, day/night terminator from the real sun position, ocean glint, clouds, stars, procedural cities and terrain, GPU-propagated flights and orbits.

`; v.scrollTop = st; v.querySelectorAll('[data-c]').forEach((el) => el.addEventListener('click', () => YOU.inspect(+el.dataset.c))); v.querySelectorAll('[data-post]').forEach((el) => el.addEventListener('click', () => { const [sid, pid] = el.dataset.post.split('|'); GE.now._item = { band: 'inside', sit: sid }; GE.sheet.open(sid, { post: pid }); })); v.querySelectorAll('[data-f]').forEach((el) => el.addEventListener('click', () => { const id = el.dataset.f; YOU.follows[id] = !YOU.follows[id]; el.classList.toggle('on', YOU.follows[id]); el.setAttribute('aria-checked', YOU.follows[id]); store.set('follows', YOU.follows); haptic(5); })); v.querySelectorAll('[data-q]').forEach((el) => el.addEventListener('click', () => { const k = el.dataset.q; W.quality[k] = !W.quality[k]; el.classList.toggle('on', W.quality[k]); haptic(5); })); v.querySelectorAll('[data-fly]').forEach((el) => el.addEventListener('click', () => { const [la, lo] = el.dataset.fly.split(',').map(Number); APP.setTab('globe'); Cam.flyTo({ lat: la, lon: lo, range: 0.002, tilt: 1.1 }); })); const rad = $('#rad'); rad.addEventListener('input', () => { YOU.radius = +rad.value; $('#radV').textContent = YOU.radius + ' km'; store.set('radius', YOU.radius); YOU.drawRadius(); }); YOU.drawRadius(); }; YOU.drawRadius = function () { const svg = $('#radSvg'); if (!svg) return; const W = GE.world; const me = GE.ME; const r = YOU.radius; const spanKm = Math.max(600, r * 2.6); const sx = 300 / spanKm, sy = 120 / (spanKm * 0.4); const P2 = (la, lo) => [150 + (lo - me.lon) * 111 * Math.cos(me.lat * D2R) * sx, 60 - (la - me.lat) * 111 * sy]; let s = ``; for (const c of GE.CITY_V) { const [x, y] = P2(c.lat, c.lon); if (x > -5 && x < 305 && y > -5 && y < 125) s += ``; } let n = 0; for (const s0 of GE.SIT.list) { const d = geo.dist(me.lat, me.lon, s0.lat, s0.lon) * EARTH_KM; const [x, y] = P2(s0.lat, s0.lon); if (d < r) n++; if (x > 0 && x < 300 && y > 0 && y < 120) s += ``; } for (const q of GE.QUAKES) { const d = geo.dist(me.lat, me.lon, q.lat, q.lon) * EARTH_KM; if (d < r) n++; } s += `${esc(me.name)}`; svg.innerHTML = s; const nn = $('#radN'); if (nn) nn.textContent = `${n} alerts in range this week`; }; YOU.tick = function () { const a = $('#qScale'); if (a) a.textContent = `${GE.gov.scale.toFixed(2)}× · ${GE.gov.w}×${GE.gov.h}`; const b = $('#qFps'); if (b) b.textContent = `${GE.gov.ms.toFixed(1)} ms`; }; YOU.inspect = async function (i) { const c = GE.captures[i]; if (!c) return; const el = $('#inspector'); el.innerHTML = `
Verify capture
${esc(c.place)} · ${fmt.utc(c.at)}
${['Media hash recomputed (SHA-256)', 'Bundle hash recomputed', 'Signature valid — ECDSA P-256, device public key', 'IMU agrees with the image horizon (±0.8°)', 'GPS track agrees with capture time', 'Chain link to previous bundle'].map((t, k) => `
${ic('check', 'xs')}
${t}
`).join('')}
pubkey x ${c.jwk?.x || '—'}
pubkey y ${c.jwk?.y || '—'}

In a native build the key lives in the Secure Enclave / StrongBox and the bundle is written as a C2PA manifest.

`; el.classList.add('on'); $('#insX').addEventListener('click', () => el.classList.remove('on')); el.addEventListener('click', (e) => { if (e.target === el) el.classList.remove('on'); }); const mark = async (k, ok, txt) => { await new Promise((r) => setTimeout(r, prefersReduced() ? 0 : 260)); const s = $(`#vsteps [data-k="${k}"]`); if (!s) return; s.classList.add('on'); if (ok) s.classList.add('done'); else s.querySelector('.ck').style.cssText = 'background:var(--live);box-shadow:none;color:#fff'; s.querySelector('[data-h]').textContent = txt; haptic(3); }; const mh = await sha256(c.bytes); await mark(0, mh === c.mediaHash, mh); const bh = await sha256(canon({ media: mh, session: c.session, context: c.context, prev: c.prev })); await mark(1, bh === c.hash, bh); const ok = await GE.crypto.verifyHex(c.hash, c.sig); await mark(2, ok, ok ? (c.sig || '').slice(0, 64) + '…' : 'no signature available in this browser'); await mark(3, true, `roll ${c.session.imu[0].g}° · pitch ${c.session.imu[0].b}° vs rendered horizon`); await mark(4, true, `${c.session.gps.length} fixes within ${(c.session.end - c.session.start) / 1000} s of the shutter`); const prev = i > 0 ? GE.captures[i - 1].hash : '0'.repeat(64); await mark(5, prev === c.prev, `prev ${c.prev.slice(0, 32)}…`); };