Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions CONTINUITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,15 @@ reference is [CLAUDE.md](CLAUDE.md); the phase plan is [ROADMAP.md](ROADMAP.md).
copies the local ledger to S3 (refuses unless keys match). Schedules: sweeps every 6 h
staggered (amazon :00 … flaring :40), analyst :50, export +1 h. Alarm email:
me@marcsperzel.com. Check `state/heartbeat.json` in the state bucket.
3. **Naming is open**: Marc rejected `vitalearth.io` (registered 2026-09-26, $71/yr — drop it
or keep as redirect; check the refund window). `vital.earth` is taken. Do NOT register
anything without showing him the exact name + price first (memory: ask-before-purchases).
Brand strings live in `src/site.config.ts` (name, full name, tagline, base URL).
3. **Domain + name**: the site is served at **https://vitalearth.io** (registered 2026-09-26,
$71/yr, refund refused by AWS, auto-renew OFF; Marc dislikes the name but uses it since
it's paid). The public name is the neutral **"Earth Watch"** (`src/site.config.ts`);
"Vital Earth" is a taken trademark. **The site is anonymous**: no owner name, email or
GitHub handle anywhere (test in `test/site-export.test.ts` fails on any); right of reply
has no channel yet (a forwarding mailbox on the domain is a follow-up). Do NOT register
or buy anything without showing Marc the exact item + price first. IPv6 is disabled on
CloudFront on purpose (AAAA-only resolver answers broke the fresh domain on IPv6-less
networks); Tailscale MagicDNS on Marc's Mac negative-cached the name for an hour.
4. **Next build steps**: (a) attribution onto cases in `created.context` (`protected_areas` +
`emitters`); (b) `emitters` as the methane confirmer while EMIT is stale; (c) `ledger verify
--remote <base-url>` (the case pages already print it); (d) GEE: Marc creates the GCP
Expand Down
Binary file added docs/screenshots/site-case-top.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/site-developers.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/site-landing-v2-mobile.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/site-landing-v2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 4 additions & 13 deletions infra/earthdeck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ Resources:
Comment: earthdeck Earth Watch
Enabled: true
HttpVersion: http2and3
IPV6Enabled: true
# IPv4 only: some resolvers returned AAAA-only for the fresh domain and networks without an
# IPv6 route then fail with "address unreachable" (observed 2026-09-26). No AAAA record either.
IPV6Enabled: false
PriceClass: PriceClass_100
DefaultRootObject: index.html
Aliases: [!Ref DomainName]
Expand Down Expand Up @@ -276,17 +278,6 @@ Resources:
HostedZoneId: !FindInMap [Const, CloudFront, HostedZoneId]
EvaluateTargetHealth: false

DnsAAAA:
Type: AWS::Route53::RecordSet
Properties:
HostedZoneId: !Ref HostedZoneId
Name: !Ref DomainName
Type: AAAA
AliasTarget:
DNSName: !GetAtt Distribution.DomainName
HostedZoneId: !FindInMap [Const, CloudFront, HostedZoneId]
EvaluateTargetHealth: false

# ── runner: Lambda ────────────────────────────────────────────────────────────────────
RunnerLogGroup:
Type: AWS::Logs::LogGroup
Expand Down Expand Up @@ -385,7 +376,7 @@ Resources:
EARTHDECK_DISTRIBUTION_ID: !Ref Distribution
EARTHDECK_SSM_PREFIX: /earthdeck
EARTHDECK_SITE_URL: !Sub "https://${DomainName}"
EARTHDECK_CONTACT: !Ref NotifyEmail
# No EARTHDECK_CONTACT: the public site is anonymous — no personal email is ever exported.
NODE_OPTIONS: --enable-source-maps
Tags: [{ Key: Project, Value: earthdeck }]

Expand Down
4 changes: 2 additions & 2 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ PROFILE=${AWS_PROFILE:-personal}
REGION=us-east-1
STACK=earthdeck
EXPECTED_ACCOUNT=185692190330
DOMAIN=${EARTHDECK_DOMAIN:-vital.marcsperzel.com}
HOSTED_ZONE_ID=Z00187933CPH1RMT9RKHT
DOMAIN=${EARTHDECK_DOMAIN:-vitalearth.io}
HOSTED_ZONE_ID=${EARTHDECK_HOSTED_ZONE_ID:-Z07362552JHZID1QJ2DSR}
NOTIFY_EMAIL=me@marcsperzel.com
SSM_PREFIX=/earthdeck
SECRETS=(GFW_API_KEY CDSE_CLIENT_ID CDSE_CLIENT_SECRET FIRMS_MAP_KEY ANTHROPIC_API_KEY)
Expand Down
21 changes: 12 additions & 9 deletions src/site.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
// public URL live. `earthdeck watch export` renders every page title, meta description,
// canonical URL, Open Graph / Twitter card, JSON-LD block and the sitemap from this object.
// Rename here, re-export, done. ("earthdeck" stays only where it names the CLI/npm package.)
//
// The public site is anonymous: no person's name, email, handle or personal hostname goes in
// here or anywhere else the export renders (test/site-export.test.ts greps the output).

export const SITE = {
/** Wordmark and short name: header, page-title suffix, og:site_name. */
Expand All @@ -10,22 +13,22 @@ export const SITE = {
fullName: "Earth Watch",
/** Small label after the wordmark in the header. */
byline: "Earth’s vital signs",
/** Hero headline, one entry per line. */
/** Landing page title, after the name. */
tagline: ["The planet’s vital signs —", "and the value of being alive."] as const,
/** One-line positioning under the headline, and the default meta description. */
/** The landing's one sentence (its h1), next to the wordmark — the only prose above the fold. Plain words. */
oneLine: "Satellites watch the planet. Our AI checks what it sees, gets a second opinion, and publishes what holds up. Anyone can check the evidence.",
/** Default meta description (landing, JSON-LD). */
description:
"An autonomous, evidence-backed watch on Earth’s living systems: forest loss, fires in protected land, methane and gas flaring — every case published with evidence anyone can verify against a signed, append-only ledger.",
/**
* Public origin used for canonical URLs, og:url/og:image, JSON-LD and sitemap.xml when
* `--base-url` isn’t passed. (Domain still being decided — change it here or pass --base-url.)
* `--base-url` isn’t passed.
*/
baseUrl: "https://vital.marcsperzel.com",
baseUrl: "https://vitalearth.io",
/** The publisher, for JSON-LD `Organization`. */
organization: { name: "Vital Earth", url: "https://vital.marcsperzel.com" },
/** Where issues (right of reply, false positives) are filed, and the footer credit link. */
repo: "https://github.com/marcoloco23/earthdeck",
/** Footer credit for the engine underneath. */
credit: "built on earthdeck",
organization: { name: "Earth Watch", url: "https://vitalearth.io" },
/** Footer credit. */
credit: "Built on open data",
/** Static social card, relative to the site root (1200×630; carries no product name). */
ogImage: "og.png",
/**
Expand Down
20 changes: 12 additions & 8 deletions src/watch/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
// ledger/{checkpoint,pub,entries.jsonl,tile/**} — the verification surface
// api/stats.json counts + published false-positive rate per rule
// api/pulse.json world_pulse snapshot (fresh, else cached, else omitted)
// developers/index.html verify-it-yourself commands, feeds, API, schema (kept off the landing)
// schema/finding-event.v1.json, trust.html (+ TRUST.md), sitemap.xml, robots.txt
// assets/**, og.png the built site bundle (dist/site, `pnpm build`)
//
Expand All @@ -23,7 +24,7 @@ import { PUBLIC_STATUSES, STATUSES, type Finding, type Status } from "../ledger/
import { ledgerDir as defaultLedgerDir } from "../config.js";
import { SITE } from "../site.config.js";
import { readHeartbeat, type Heartbeat } from "./journal.js";
import { casePage, FALLBACK_TEMPLATE, fillTemplate, landingPage, robots, sitemap, trustPage, watchIndexPage, type CaseData, type Ctx } from "./site-render.js";
import { casePage, developersPage, FALLBACK_TEMPLATE, fillTemplate, landingPage, robots, sitemap, trustPage, watchIndexPage, type CaseData, type Ctx } from "./site-render.js";

const PKG_ROOT = fileURLToPath(new URL("../../", import.meta.url)); // dist/watch → root, src/watch → root
const MARKER = ".earthdeck-site";
Expand Down Expand Up @@ -53,7 +54,8 @@ export interface RateCell {

export interface SiteStats {
generatedAt: string;
site: { name: string; baseUrl: string | null; repo: string; contact: string | null; trust: boolean };
/** `contact` is always null: the public site is anonymous (no address, no repo link). */
site: { name: string; baseUrl: string | null; contact: null; trust: boolean };
ledger: { size: number; root: string | null; checkpoint: string | null };
lastSweep: Heartbeat | null;
cases: { total: number; public: number; confirmed: number; candidates: number; falsePositives: number };
Expand Down Expand Up @@ -82,7 +84,7 @@ export function computeStats(
findings: readonly Finding[],
ledger: { size: number; root: string | null; checkpoint: string | null },
lastSweep: Heartbeat | null,
site: { baseUrl?: string | null; contact?: string | null; trust?: boolean } = {},
site: { baseUrl?: string | null; trust?: boolean } = {},
now = new Date(),
): SiteStats {
const byStatus = Object.fromEntries(STATUSES.map((s) => [s, 0])) as Record<Status, number>;
Expand Down Expand Up @@ -119,7 +121,7 @@ export function computeStats(
for (const r of Object.values(byRule)) r.versions.sort();
return {
generatedAt: now.toISOString(),
site: { name: SITE.name, baseUrl: site.baseUrl ?? null, repo: SITE.repo, contact: site.contact ?? null, trust: site.trust ?? false },
site: { name: SITE.name, baseUrl: site.baseUrl ?? null, contact: null, trust: site.trust ?? false },
ledger,
lastSweep,
cases: {
Expand All @@ -146,7 +148,7 @@ export interface ExportOptions {
ledgerDir?: string;
/** Public origin for canonical/OG/JSON-LD/sitemap. Default SITE.baseUrl; null = none (no sitemap). */
baseUrl?: string | null;
/** Right-of-reply email shown on case pages (mailto). */
/** Accepted for compatibility (the runner passes it) and ignored: the public site is anonymous. */
contact?: string;
/** Built site bundle (index.html template, assets/, og.png). Default dist/site; null = unstyled fallback. */
siteDir?: string | null;
Expand Down Expand Up @@ -223,7 +225,7 @@ export async function exportSite(opts: ExportOptions): Promise<ExportReport> {
findings,
{ size: ledger?.size ?? 0, root: ledger ? ledger.root().toString("hex") : null, checkpoint: ledger?.checkpointText() ?? null },
readHeartbeat(join(lDir, "watch")),
{ baseUrl, contact: opts.contact ?? null, trust },
{ baseUrl, trust },
now,
);
write("api/stats.json", JSON.stringify(stats));
Expand All @@ -248,7 +250,8 @@ export async function exportSite(opts: ExportOptions): Promise<ExportReport> {
// ---- pages ----
const ctx = (depth: number, path: string): Ctx => ({ depth, path, baseUrl, stats });
const published = findings.filter((f) => PUBLIC_STATUSES.includes(f.status));
write("index.html", fillTemplate(tpl, 0, "landing", landingPage(ctx(0, ""), published)));
write("index.html", fillTemplate(tpl, 0, "landing", landingPage(ctx(0, ""), findings)));
write("developers/index.html", fillTemplate(tpl, 1, "developers", developersPage(ctx(1, "developers/"))));
write("watch/index.html", fillTemplate(tpl, 1, "watch", watchIndexPage(ctx(1, "watch/"), findings)));
for (const d of cases) {
const path = `watch/case/${d.finding.findingId}/`;
Expand All @@ -266,6 +269,7 @@ export async function exportSite(opts: ExportOptions): Promise<ExportReport> {
const pages = [
{ path: "", lastmod: stats.generatedAt },
{ path: "watch/", lastmod: findings[0]?.updatedAt ?? stats.generatedAt },
{ path: "developers/" },
...published.map((f) => ({ path: `watch/case/${f.findingId}/`, lastmod: f.updatedAt })),
...(trust ? [{ path: "trust.html" }] : []),
];
Expand Down Expand Up @@ -361,7 +365,7 @@ export async function runExportCli(args: string[]): Promise<void> {
if (!out) {
process.stdout.write(
[
"usage: earthdeck watch export --out <dir> [--base-url https://…] [--contact email]",
"usage: earthdeck watch export --out <dir> [--base-url https://…]",
" [--no-pulse | --pulse-cache <file>] [--trust TRUST.md] [--force]",
`Writes the public ${SITE.name} site (landing + case pages + ledger + feeds) as static files.`,
`--base-url defaults to ${SITE.baseUrl} (src/site.config.ts); it drives canonical URLs, og:*, JSON-LD and sitemap.xml.`,
Expand Down
Loading
Loading