tools.panoskokmotos.com — AI for Social Impact
Standalone suite of free AI tools (Cloudflare Worker + Claude), split out of the personal site. Static GitHub Pages site; push to publish.
Shared chrome (tool-header, analytics) is single-sourced in partials/ — run
python build.py after editing a partial (python build.py --check in CI).
AI backend: the existing ask-panos.*.workers.dev Worker (CORS *), reused as-is;
endpoints live in shared.js.
Impact Compass (compass/)
A standalone, installable PWA at /compass/ — mission: increase knowledge and
understanding, reduce suffering, expand the reach of care. Self-contained
(everything path-relative, so it can move to its own domain untouched):
compass/data.js— the Problem Atlas: 25 curated world problems. Editorial rules live in the file header: approximate figures phrased as approximate, named sources, evidence ratings (strong/promising/debated), org types not real charities. Add a problem here and the app (atlas, plan dropdown, counts) picks it up automatically; also add one<li>to the static SEO list incompass/index.html.compass/app.js— hash-routed SPA (Home / Atlas / Problem / Plan / Journey), localStorage state (compass_state_v1), AI client speaking the same Worker protocol astool-utils.js(/api/v1/stream+/api/v1/toolfallback).compass/sw.js— app-scoped service worker. BumpCACHE_NAMEwhenever app.js/app.css/data.js change — assets are cache-first, so without a bump existing users keep old files.compass/p/— static, indexable page per problem (search + link previews; the SPA's hash routes are invisible to crawlers). Generated, committed output: runpython3 compass/build-pages.pyafter any data.js change — it re-renders all pages and refreshes the compass block insitemap.xml. In-app shares and the tools'?cause=deep links point at these pages. Each has a custom social-share image atcompass/og/<id>.jpg— regenerate withnode compass/build-og.mjsafter a data.js change.compass/el/— Greek edition.compass/data.el.jsholds Greek text overrides (name/stat/trend/misconception) per problem; runpython3 compass/build-el.pyafter data.js or data.el.js changes to regenerate the Greek hub + pages and the compass-el block insitemap.xml. English and Greek pages are hreflang-linked both ways; the app nav links toel/. First-pass translation — review before heavy promotion. Deep prose (scale/causes/interventions/actions) is not yet translated by design.- Not wired into
build.pypartials — the app has its own chrome by design. - Before shipping an Atlas change, run the guardrails:
node compass/test-data.mjs(structure, enums, Greek↔English id parity, generated-page presence) andnode compass/worker/test-webpush.mjs(validates the push encryption). Both exit non-zero on failure.
