How every Next Seven Again codebase is built, where it runs, what it depends on, and the accounts you need to get started. This is the first stop for a new engineer — work top to bottom, then jump to the system you're picking up.
You'll be issued a @nextsevenagain.com Google Workspace account. It's the single sign-on for almost everything — email, Drive, and Google sign-in on every app.
Ask to be added to the Next-Seven-Again GitHub org and granted IAM on the Google Cloud / Firebase projects for the system you'll work on (see the access list below).
git, gh, Node 20+, the firebase CLI and the gcloud SDK. Clone your repo from ~/code — each folder name matches its GitHub repo.
Member of the Next-Seven-Again org. All code lives here.
@nextsevenagain.com account — SSO for Gmail, Drive, Calendar and app sign-in.
IAM on the projects you touch: nextsevenagain (hosting), nxt7a-ops, nxt7a-dev/nxt7a-prod.
DNS for nextsevenagain.com and nxt7a.com. Needed only for domain/DNS work.
Legacy app platform still powering parts of the Nxt7a app (mid-migration to Firestore).
Org nxt7a — builds & over-the-air updates for the field app.
Only for shipping field-app store builds via eas submit.
Maps, payments, geo-data, email. Live keys live in GCP Secret Manager — you rarely need the dashboards.
.env files and signing keys are gitignored in every repo — keep it that way. Server secrets live in GCP Secret Manager; web Firebase config (API keys) is low-sensitivity and may appear in client code.| System | Repo | Lives at | Stack | Hosting / backend |
|---|---|---|---|---|
| Nxt7a Marketing | nxt7a_marketing | nxt7a.com | Static HTML/CSS/JS | Firebase site nxt7a-web · no backend |
| NSA Marketing | nextsevenagain_marketing | nextsevenagain.com | Static HTML/CSS/JS | Firebase site nextsevenagain · no backend |
| Operations (OS) | nextsevenagain_os | os.nextsevenagain.com | Static HTML/CSS/JS | Firebase site nextsevenagain-os · Auth + Firestore on nxt7a-ops |
| Nxt7a App | nxt7a_app | app.nxt7a.com | React 18 + Vite + Tailwind | Firebase nxt7a-dev/nxt7a-prod · Cloud Run APIs · BigQuery |
| Nxt7a Field App | nxt7a_fieldapp | iOS / Android (EAS) | React Native + Expo SDK 57 | Expo EAS builds · shares the Nxt7a App backend |
Frontends
Backends / APIs
Data & infrastructure
The Next Seven Again corporate site — the holding company's public face. Plain static HTML, no framework, no build step.
nextsevenagainG-4Z910XKJLMmain (keyless WIF)nextsevenagainThe Nxt7a product landing site (home, platform, pricing, articles, the H5 bird-flu map, blog). Pure static site, no backend — the direct sibling of the NSA marketing site.
nxt7a-webmain (keyless WIF)nextsevenagaintools/build_h5_article_hero.py regenerates the H5 article hero SVG — a content helper, not part of the deploy.This app — the internal operations hub: cap table, data room, R&D Tax Incentive console, policies, SOPs, people & investor registers, document pack. Static pages, each login-gated behind Google sign-in.
nextsevenagain (site nextsevenagain-os)nxt7a-ops@nextsevenagain.comadmin:true custom claim (set via the set-admin script in scripts/)firestore.rules is the real boundaryscripts/ — firebase-admin seed tooling for the nxt7a-ops Firestore (access matrix, R&DTI, employees, timesheets, set-admin).rdti/ — sensitive R&DTI master data, gitignored / local-only.The core Earth-intelligence platform — draw an assessment boundary, measure biodiversity & natural capital, talk to Capi (the AI agent), export disclosure-ready reports. React SPA, originally a Base44 app, mid-migration to a Firestore + Cloud Run backend.
nxt7a-dev/nxt7a-prod)nxt7a-api — BigQuery, uploads, contracts, invokeLLMcapi+ — Python ADK on wejugo-geospatial-enginenxt7a-birdnet / bioclip inference serviceswejugo-geospatial-enginenxt7a-dev, nxt7a-prod, wejugo-geospatial-engine (BigQuery/agent), nxt7a-earth (KMS)gcloud + ADC as mike@nextsevenagain.comkoordinates-api-key, sendgrid-api-key, contract-signing-secret, agent-internal-token + KMS JWT signer.DEPLOYMENT.md mentions a single nxt7a-dev backend and deploy:live, but package.json/.firebaserc define split dev/prod. Confirm the current path before a prod deploy.The offline-first field companion — sign in, see the assessment boundary on a satellite map with live GPS, and record geotagged photo/species observations that sync when back online.
nxt7a-dev/nxt7a-prod) — Auth + Firestorenxt7a-api POST /uploadFile → GCSnxt7a)nxt7a)nxt7a-dev/nxt7a-prodcom.nextsevenagain.nxt7afield; EAS project 395fd336-….firebase is v12 here vs v11 in the web app.Cloud is split across several Google Cloud / Firebase projects. Knowing which project a system reads and writes is the single most useful thing to understand before touching production.
| GCP project | What's in it | Used by |
|---|---|---|
nextsevenagain | Firebase Hosting — 3 sites: nextsevenagain, nxt7a-web, nextsevenagain-os | All three static sites |
nxt7a-ops | Firebase Auth + Firestore for the ops app | Operations (OS) |
nxt7a-prod / nxt7a-dev | Firebase Auth + Firestore + Hosting for the product app | Nxt7a App + Field App |
wejugo-geospatial-engine | BigQuery warehouse + the Capi agent Cloud Run Hemisphere | Nxt7a App |
nxt7a-earth | KMS JWT signer for the agent Hemisphere · legacy | Nxt7a App (agent auth) |
wejugo-geospatial-engine, nxt7a-earth). We're progressively lifting the Nxt7a footprint into Next Seven Again-owned projects. Until that's done, some services (BigQuery, the agent, KMS) still live on the Hemisphere side.mike@hemisphere.digital (legacy stack) and mike@nextsevenagain.com (NSA stack). gcloud CLI and application-default credentials (ADC) authenticate separately — pass --account / set ADC deliberately.Next-Seven-Again; local folder names mirror repo names.main branch is the deploy source.main → GitHub Actions deploys via Workload Identity Federation. No keys: GitHub's OIDC token is exchanged for short-lived creds of the github-deployer SA on nextsevenagain (pool github / provider github-oidc, locked to the org).nxt7a-ops) — deploy those by hand..env, *serviceAccount*.json and signing keys are gitignored everywhere.Firebase keeps every previous version. To instantly re-release an earlier one (no rebuild, fully reversible), find the version id in the console's Hosting release history, then re-release it:
# one-click in console: Hosting → site → release history → ⋮ → Rollback # or via REST (token from the firebase CLI / gcloud): POST https://firebasehosting.googleapis.com/v1beta1/ sites/SITE_ID/releases?versionName= sites/SITE_ID/versions/VERSION_IDnxt7a_marketing/README.md still describes the old operations app — update it to the nxt7a.com site.nxt7a_app — reconcile DEPLOYMENT.md with the real deploy:dev/deploy:prod scripts.nxt7a_fieldapp — the build:map step is referenced in the README but isn't a package.json script; confirm it exists.Next-Seven-Again/nxt7a_design_system — the shared design system.github / provider github-oidc on nextsevenagain).