An experimental workspace for cyclone observations, historical tracks, geospatial exploration and clearly labeled impact scenarios.
Features · Architecture · Science · Quickstart · Verification · Release evidence
Important
Experimental software, not an authorized emergency warning or evacuation system. Follow official local advisories and instructions from responsible authorities. No scientifically validated cyclone model or satellite flood detector is bundled. Scenario outputs cannot establish safe routes, shelter availability, utility-switching instructions or emergency readiness.
Note
Current assessment: ENGINEERING_READY_DEPLOYMENT_BLOCKED. Evidence describes the local working tree, not a verified hosted deployment. Managed staging, real authentication, recovery and operational acceptance remain incomplete. See readiness. Badges identify technologies, not certifications or passing hosted checks.
CycloNet brings source status, maps, historical records and experimental analysis into one interface. The distinction between observations, historical records and scenarios is part of the product: selecting a storm does not establish that it is active, and a failed feed is not an all-clear.
| Workspace | What you can explore | What the result means |
|---|---|---|
| 📡 Live monitoring | Source status, available observations, freshness, maps and sanitized telemetry. Refresh live data reads backend state. | Provider availability varies. Refresh does not grant administrator ingestion privileges or establish current conditions by itself. |
| 🗂️ Historical archive | Search, indexed chronological pagination and storm records. | Missing measurements remain unavailable. Curated track excerpts require independent source verification. |
| 🧭 Tracks & comparison | Compare selected storms and inspect historical, observed, demonstration or experimental tracks. | No independently calibrated CycloNet forecasting skill or confidence cone is claimed. |
| 🧪 Image classification | Upload checks, illustrative samples and a checkpoint-gated PyTorch interface. | No validated checkpoint is bundled. Sample images do not establish cyclone intensity. |
| 🌊 Infrastructure & scenarios | Explicitly selected flood, surge and infrastructure scenarios with geospatial overlays. | Assets and assumed terrain parameters are illustrative. Authorized occupancy, generator and road-condition feeds are not connected. |
| 📄 Reports & exercises | Source summaries, report exports and role-restricted exercise drafts. | CAP payloads use Exercise status. No siren, cell broadcast, VHF or government warning delivery is connected. |
| 💬 CycloNet assistant | Informational questions, backend-resolved source status and optional Gemini-assisted responses. | Provider responses are bounded; meteorological vision estimates are disabled. Deterministic briefings currently use English. |
| ⚙️ Settings & accessibility | Dark/light themes, responsive navigation, keyboard controls, display preferences and a custom backend option. | Agency preferences do not convert wind averaging periods. Browser notification tests do not create live alert subscriptions. |
Reading the data: missing, stale and simulated values
- Observation time differs from retrieval time. Downloading an old bulletin does not make its measurements current.
- Zero is a value; missing is not. Unavailable winds are not replaced with category-derived estimates.
- Outages preserve uncertainty. Empty or failed feeds cannot justify basin-wide calm or destructive retirement of stored observations.
- Simulation is explicit. Demonstration records and selected scenarios carry provenance labels. A year in an identifier is insufficient to infer live or simulated status.
- GeoJSON uses longitude, latitude. Map components handle their own coordinate conventions. Scenario polygons are not satellite-measured flood boundaries.
- Source names are attribution. They do not establish affiliation, endorsement or authorized operational integration.
The backend is one FastAPI application with service modules, not independently deployed microservices. PostgreSQL and Redis are the required production design; SQLite is a development convenience. This diagram describes the code and proposed architecture, not verified live infrastructure.
flowchart TB
classDef ui fill:#172554,stroke:#60a5fa,color:#eff6ff
classDef api fill:#083344,stroke:#22d3ee,color:#ecfeff
classDef data fill:#064e3b,stroke:#34d399,color:#ecfdf5
classDef gate fill:#451a03,stroke:#fbbf24,color:#fffbeb
classDef ext fill:#3b0764,stroke:#c084fc,color:#faf5ff
subgraph Browser["Browser · Next.js / React"]
UI["Dashboard · Archive · Tracks<br/>Classification · Reports · Scenarios"]:::ui
Maps["Leaflet · Recharts<br/>Themes · Accessible controls"]:::ui
UI --- Maps
end
Clerk["Clerk<br/>Sessions and signed tokens"]:::ext
UI <-->|"Sign-in"| Clerk
UI -->|"HTTPS REST / WebSocket"| API
subgraph Backend["FastAPI application · Python 3.11"]
API["Request bounds · CORS / Origin checks<br/>JWT verification · Route authorization"]:::api
Services["Observations · Archive · Tracks<br/>Reports · Chat · Scenarios"]:::api
Ingest["Bounded feed ingestion<br/>Provenance and freshness checks"]:::api
ML["Checkpoint integrity + validation gate<br/>No validated model bundled"]:::gate
Satellite["Satellite observation interface<br/>Unavailable pending validation"]:::gate
API --> Services
API --> ML
Services --> Satellite
Ingest --> Services
end
Agencies["IMD · JTWC · GDACS<br/>External availability varies"]:::ext
Gemini["Optional Gemini provider<br/>Informational assistant"]:::ext
Agencies --> Ingest
Services -.-> Gemini
PG[("PostgreSQL<br/>Archive · Owned history · Fenced state")]:::data
Redis[("Redis / Key Value<br/>Quotas · Admission · Leadership leases")]:::data
Services --> PG
Ingest -->|"Generation and ownership checked writes"| PG
API --> Redis
Ingest --> Redis
flowchart LR
A["Agency response"] --> B["Bounded download<br/>Size · Deadline · Retries"]
B --> C{"Supported format<br/>and usable provenance?"}
C -->|Yes| D["Normalize values and units<br/>Retain observation time"]
D --> E["Freshness and basin-state policy"]
E --> F["Fenced persistence<br/>Sanitized public data"]
F --> G["Map · Status · Report"]
C -->|No| H["Failed / degraded source<br/>Preserve uncertainty"]
H --> G
style H fill:#451a03,stroke:#fbbf24,color:#fffbeb
style F fill:#064e3b,stroke:#34d399,color:#ecfdf5
Feed downloads are bounded to 4 MiB of decoded content, a 20-second total deadline and at most two attempts. These reliability controls do not validate a forecast.
Production correctness and security mechanisms
| Boundary | Implemented behavior |
|---|---|
| Runtime | Explicit production mode on Render; PostgreSQL required in production; invalid mandatory auth configuration prevents startup. |
| Schema lifecycle | Alembic before deployment. Production startup validates revision and required tables/columns without modifying schema. |
| Authentication | Verified JWT signature, issuer, expiry and configured audience/authorized parties; privileged roles enforced server-side. |
| Owned records | Classification history filtered by authenticated owner identity. |
| Resource control | Body limits, image signature/dimension checks, rate limits, inference admission and bounded provider responses. |
| Multiple workers | Redis leases coordinate leadership; database fencing rejects stale-owner writes. A lease is not exactly-once processing. |
| Cache and logs | Private/no-store API responses; generated request IDs and route-template logging instead of raw sensitive requests. |
| WebSockets | Sanitized public telemetry and a separately authorized operator channel, with Origin and resource checks. Radar animation is synthetic. |
| Health | /health/live is process liveness; /health/ready checks dependencies; /health delegates to readiness; /health/ml reports model availability. |
These controls have local regression evidence. They do not establish certification or successful deployed authentication, networking, backup or multi-instance operation.
The implementation uses a ResNet-50 feature extractor and a 2048 → 512 → 128 → 5 classifier head. Images are resized to 224 × 224 and normalized. The mapping NOT_A_CYCLONE, CS, SCS, VSCS, ESCS defines the model schema; it does not prove reliable class separation.
flowchart LR
Data["Authentic imagery + best tracks"] --> QC["Provenance, acquisition-time<br/>and image-quality review"]
QC --> Split["Storm-disjoint splits<br/>Duplicate / leakage checks"]
Split --> Gate{"Independent dataset approval<br/>Negatives + separate OOD corpus"}
Gate -->|Required before training| Train["Training<br/>Validation-only calibration"]
Train --> Eval["Untouched final test<br/>Predeclared acceptance criteria"]
Eval --> Artifact["Versioned checkpoint<br/>Checksums + evaluation evidence"]
Gate -->|Currently incomplete| Block["Training blocked<br/>No fabricated metrics"]
style Block fill:#451a03,stroke:#fbbf24,color:#fffbeb
style Artifact fill:#064e3b,stroke:#34d399,color:#ecfdf5
The recorded NOAA inventory contains 12,275 observations across 363 storms, with frozen storm-disjoint partitions. The HURSAT sample review covers 98 frames, but zero are independently approved for training. See scientific validation and source acquisition evidence.
Checkpoint loading verifies metadata, class mapping and weight checksums. No random-weight fallback is accepted as a trained model. Evaluation code supports calibration, abstention and OOD analysis; unit tests are not model-performance results. scientifically_validated=false remains in force until independent validation passes.
| Output | Current behavior | Missing scientific evidence |
|---|---|---|
| Satellite flood observations | SATELLITE_DATA_UNAVAILABLE, with no measured features. A project name alone cannot activate detection. |
Authorized Earth Engine access, suitable Sentinel-1 acquisitions, validated processing and independent flood references. |
| Flood / rainfall scenarios | Explicitly labeled illustrative geospatial calculations. | Real terrain, hydrology, observations and independent spatial validation. |
| Surge scenarios | Simplified pressure and wind setup using assumed shelf geometry, slope, approach, speed and tide. | Surveyed inputs, appropriate physical modeling and independent validation. |
| Infrastructure scenarios | Explicitly selected illustrative assets and risk calculations. | Authorized field feeds, verified conditions and institutional procedures. |
Inside the surge calculation
The code combines pressure response, simplified wind setup, a speed multiplier and an input tide:
pressure component = max(0, 1013.25 − central pressure in hPa) × 0.0101
wind stress = air density × drag coefficient × wind speed in m/s squared
wind setup = wind stress × assumed shelf width
/ (water density × gravity × assumed depth) × approach factor
scenario storm tide = (pressure component + wind setup) × speed factor + input tide
Wind enters in knots and is converted to metres per second. Shelf geometry and inland slope are constants; no measured DEM or bathymetry is sampled. Output separates meteorological surge from total storm tide and supplies no validated uncertainty range. This is not NOAA SLOSH, an operational flood forecast or an evacuation model. See the implementation.
Run the backend and open interactive API documentation. These are key routes; the generated schema and route dependencies are the implementation reference.
| Method | Endpoint | Behavior / access |
|---|---|---|
GET |
/api/ingest/status, /api/active-systems |
Public source state and available observations, with failure and simulation semantics. |
GET |
/api/cyclones, /api/history/search |
Bounded catalog and historical search. |
POST |
/api/ingest/sync |
Administrator-protected ingestion; the dashboard refresh does not call it. |
POST |
/api/classify |
Bounded image processing with checkpoint/validation availability checks. |
GET |
/api/history/classifications |
Authenticated, owner-filtered history. |
POST |
/api/chat, /api/ai/pre-landfall-briefing |
Informational chat and deterministic source/scenario summaries. |
POST |
/api/ai/analyze-multimodal |
Meteorological image estimation remains disabled pending validation. |
GET |
/api/gee/flood-inundation, /api/gee/rainfall-pathways |
Observation-unavailable or explicit scenario behavior; inspect provenance. |
GET |
/api/surge/calculate, /api/surge/profile |
Rate-limited illustrative calculations, not observed water levels. |
GET |
/api/reports/bulletins |
Source-aware report data with visible outage handling. |
POST |
/api/alerts/dispatch, /api/alerts/broadcast-test |
Operator/admin-restricted exercise drafts; no real delivery. |
WS |
/api/ws/cyclone-stream |
Sanitized public telemetry. |
WS |
/api/ws/operator-events |
Separately authenticated operator events. |
GET |
/health/live, /health/ready, /health/ml |
Distinct process, dependency and model checks. |
| Layer | Components | Explore |
|---|---|---|
| Interface | Next.js 16, React 19, TypeScript 5, Tailwind CSS 4 | app · components · features |
| Maps, charts, motion | Leaflet / React-Leaflet, Recharts, Framer Motion, GSAP | frontend/package.json |
| API and identity | FastAPI, Pydantic, Clerk JWT verification | api · routers · auth |
| Persistence | SQLAlchemy, Alembic, PostgreSQL in production; SQLite in development | database · migrations |
| Coordination | Redis / Key Value, quotas, admission and leader fencing | core |
| Science & ingestion | PyTorch, Torchvision, NumPy, Pillow; modular feed adapters and manifests | services · ingestion · manifests |
| Assistant | Optional Gemini HTTP integration; configurable model | chat_service.py · config.py |
| Verification | pytest, real PostgreSQL/Redis, Playwright, axe-core, ruff, mypy and security scans | backend tests · frontend tests · CI |
| Proposed hosting | Render backend, frontend, PostgreSQL and Key Value | staging · production proposal |
Exact versions belong to the checked-in lockfiles. The assistant's current code default is gemini-2.5-flash; provider/account availability must be checked separately. No “Gemini 3.7” capability is asserted here.
Use Python 3.11.5 or later in the 3.11 series (locally verified with 3.11.15), Node 22 as used by CI, and the dependency locks. Configure a Clerk test instance shared by frontend and backend. Keep real credentials out of Git, logs and browser-exposed variables.
1 · Start the backend
From backend/, using Windows PowerShell:
python -m venv .venv
.venv/Scripts/Activate.ps1
pip install --require-hashes -r requirements.lock
$env:ENVIRONMENT = "development"
$env:DATABASE_URL = "sqlite:///./cyclone_tracker.db"
$env:CORS_ORIGINS = "http://localhost:3000"
# Set matching Clerk configuration in this process before starting.
python -m alembic upgrade head
uvicorn app.main:app --reload --port 8000On Linux, activate with source .venv/bin/activate and install the Linux lock:
pip install --require-hashes --extra-index-url https://download.pytorch.org/whl/cpu -r requirements-linux.lockProcess environment variables take precedence; config.py reads a local .env file only as a non-overriding fallback. .env.example is a variable inventory, not evidence that its placeholders, model names or proposed projects are valid. Gemini is optional; omit an unavailable model override. SQLite is for local development only.
2 · Configure and start the frontend
Create the ignored frontend/.env.local:
NEXT_PUBLIC_API_URL=http://localhost:8000
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/login
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/login?mode=signupAdd the actual test-instance NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY and CLERK_SECRET_KEY securely to that file. Never prefix a secret with NEXT_PUBLIC_. Set backend CLERK_ISSUER, CLERK_JWKS_URL and CLERK_AUTHORIZED_PARTIES=http://localhost:3000 for the same instance.
From frontend/:
npm ci
npm run devOpen the local interface and API docs. Configure 127.0.0.1 separately if you use it instead of localhost.
3 · Production configuration checklist
| Variable | Purpose |
|---|---|
ENVIRONMENT=production |
Mandatory production checks; explicitly required on Render. |
DATABASE_URL |
Managed PostgreSQL connection from a secret store. |
REDIS_URL, REDIS_FAIL_CLOSED=true |
Shared coordination and quotas. |
CLERK_ISSUER + CLERK_JWKS_URL or CLERK_PEM_PUBLIC_KEY |
Issuer and signature-verification configuration. |
CLERK_AUDIENCE / CLERK_AUTHORIZED_PARTIES |
Intended audience and/or permitted application origins. |
CORS_ORIGINS |
Explicit frontend HTTPS origins. |
NEXT_PUBLIC_API_URL |
Public HTTPS backend URL, not a private Render hostname. |
REQUIRE_VALIDATED_ML |
When true, startup requires a validated checkpoint. false does not bypass inference safeguards or validate a model. |
GEMINI_API_KEY, GEMINI_MODEL |
Optional provider credentials and an actually available model. |
GEE_PROJECT_ID |
Identifier only; cannot activate the disabled observation pipeline. |
Migrations belong in the pre-deploy step. A successful build or a live label does not establish readiness, authentication, persistence or recovery.
From the repository root, start the disposable test services:
docker compose -f compose.test.yml -p cyclonet-v7 up -d --waitFrom backend/, with its virtual environment activated:
$env:TEST_POSTGRES_URL = "postgresql://cyclonet_test:local-test-only@localhost:55432/cyclonet_test"
$env:TEST_REDIS_URL = "redis://localhost:56379/0"
python -m pytest tests/ -qThese are test-only credentials from compose.test.yml. Tests use isolated schemas and Redis keys. Never point them at production; skipped infrastructure checks do not satisfy that gate.
From frontend/, using the same Clerk test configuration:
npm run typecheck
npm run lint
npm test
npm run build
npx playwright install chromium
npm run test:e2eBrowser checks use the production build at port 3100. They cover unavailable-data behavior, desktop/tablet/mobile layouts, keyboard interactions and automated accessibility across both themes. Automated checks complement manual assistive-technology review; they do not certify universal accessibility.
CI also runs dependency and secret checks. Hosted frontend checks need Actions secrets for the matching Clerk test instance. See the deployment guide and architecture. Local fixture restores are not production recovery evidence.
Core documentation for architecture, operations, scientific validation, and machine learning models:
| Documentation | Description |
|---|---|
| Architecture | System Architecture & Data Flow |
| Deployment | Deployment & Setup Guide |
| Production Readiness | Production Controls & Security Checklist |
| Scientific Validation | Meteorological Standards & Validation |
| Scientific Data | Data Provenance & Staging |
| Model Evaluation | ML Model Architecture & Metrics |
flowchart LR
A["Engineering not ready"] --> B["Engineering ready<br/>Deployment blocked · CURRENT"]
B -->|"Approved staging + real acceptance"| C["Experimental production ready"]
C -->|"Independent science + authorized operations<br/>Institutional approval"| D["Operational disaster system ready"]
style B fill:#451a03,stroke:#fbbf24,stroke-width:3px,color:#fffbeb
style C fill:#172554,stroke:#60a5fa,color:#eff6ff
style D fill:#1e293b,stroke:#94a3b8,color:#f8fafc
Render files are proposals, not proof of deployed PostgreSQL, Redis or runtime settings. Paid provisioning, production configuration changes, publishing and live migration require explicit authorization. Current changes remain local and uncommitted; no production promotion is claimed.
- NOAA HURSAT-B1 v06 and IBTrACS are scientific source references. Retain provenance and review source usage terms.
- IMD, JTWC and GDACS references identify source feeds, not guaranteed availability, affiliation or endorsement. Map attribution remains visible.
- No verified ISRO imagery integration, government-authorized dispatch, insurance funding, payout capability, ISO certification or availability SLA is claimed.
- No repository license file is currently present. Confirm licensing before redistribution; this README does not grant an MIT license.
Explore carefully. Keep provenance visible. Use official guidance for real-world decisions.