Skip to content

Latest commit

ย 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒ WORLDVIEW โ€” Global Intelligence Command Console

image

A cinematic intelligence OS dashboard inspired by the video reference โ€” featuring a 3D globe, layer modes (CRT, NVG, FLIR, AI), real-time mock data, and full tactical HUD aesthetics.


๐Ÿš€ How to Run (Step-by-Step)

Prerequisites

  • Node.js (v16 or newer) โ€” download from https://nodejs.org
  • npm (comes with Node.js)

1. Install Dependencies

Open your terminal in the worldview/ folder and run:

npm install

This installs React, Framer Motion, and all dependencies. Takes ~1-2 minutes.

2. Start the App

npm start

Your browser will automatically open to http://localhost:3000

That's it! ๐ŸŽ‰


๐Ÿ“ File Structure

worldview/
โ”œโ”€โ”€ public/
โ”‚   โ””โ”€โ”€ index.html              # HTML shell + Google Fonts
โ”‚
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ index.js                # React entry point
โ”‚   โ”œโ”€โ”€ App.js                  # ๐Ÿ”‘ Main orchestrator + boot sequence
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ styles/
โ”‚   โ”‚   โ””โ”€โ”€ global.css          # All CSS: CRT, NVG, FLIR, glow effects, animations
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ data/
โ”‚   โ”‚   โ””โ”€โ”€ mockData.js         # Flights, quakes, satellites, cities mock data
โ”‚   โ”‚
โ”‚   โ””โ”€โ”€ components/
โ”‚       โ”œโ”€โ”€ TopBar.js           # WORLDVIEW header + UTC clock
โ”‚       โ”œโ”€โ”€ LeftPanel.js        # Data layer toggles (flights, quakes, sats...)
โ”‚       โ”œโ”€โ”€ GlobeCenter.js      # Globe wrapper + HUD overlays + scanning effects
โ”‚       โ”œโ”€โ”€ Globe.js            # SVG globe with projected markers
โ”‚       โ”œโ”€โ”€ RightPanel.js       # Tactical controls, sliders, orbital readouts
โ”‚       โ””โ”€โ”€ BottomBar.js        # City tabs + layer switcher (Normal/CRT/NVG/FLIR/AI)
โ”‚
โ””โ”€โ”€ package.json

๐ŸŽฎ How to Use

Layer Modes (Bottom Bar)

Button Effect
Normal Standard blue earth view
CRT Circular telescope scope, surveillance mode
NVG Green phosphor night vision (FLIR-style)
FLIR Thermal infrared simulation
Arrow High-contrast grayscale
AI Neural-enhanced purple tint
None Clean view

Interactions

  • Bottom city buttons โ†’ Fly to that city, sets target intel
  • Globe markers โ†’ Click flights (โœˆ), quakes (โšก), or satellites (โ—ˆ) to lock target
  • Left panel toggles โ†’ Turn data layers on/off
  • Right panel sliders โ†’ Adjust alert/event filters + image processing

Data Panels

  • Left panel โ€” Live Flights, Earthquakes, Satellites, Street Traffic, Weather Radar, CCTV Mesh
  • Right panel โ€” REC timer, orbital readouts (GSD, ALT, velocity), target lock coordinates
  • Bottom ticker โ€” Scrolling classified intel feed

๐Ÿ”Œ Adding Real Data (Optional Upgrades)

Real Flights โ€” OpenSky Network (Free, No Key)

// In src/data/mockData.js, replace MOCK_FLIGHTS fetch:
const res = await fetch('https://opensky-network.org/api/states/all');
const data = await res.json();
const flights = data.states.slice(0, 50).map(s => ({
  id: s[1]?.trim() || 'UNKN',
  lat: s[6], lng: s[5], alt: s[7] * 3.28, // meters to feet
  spd: s[9] * 1.944, // m/s to knots
}));

Real Earthquakes โ€” USGS (Free, No Key)

// In src/data/mockData.js:
const res = await fetch('https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_day.geojson');
const data = await res.json();
const quakes = data.features.map(f => ({
  id: f.id,
  lat: f.geometry.coordinates[1],
  lng: f.geometry.coordinates[0],
  mag: f.properties.mag,
  place: f.properties.place,
  depth: f.geometry.coordinates[2],
}));

Real 3D Globe โ€” react-globe.gl (Optional, looks amazing)

npm install react-globe.gl

Then in Globe.js, uncomment the GlobeComponent and it will use Three.js 3D globe automatically.

Mapbox Satellite Imagery

  1. Sign up at https://mapbox.com (free tier: 50k map loads/month)
  2. Get your access token
  3. Replace the SVG globe with a Mapbox GL JS component:
npm install react-map-gl mapbox-gl

๐ŸŽจ Customization

Change the Color Scheme

Edit src/styles/global.css root variables:

:root {
  --cyan:   #00e5ff;  /* Main accent */
  --amber:  #ffb300;  /* Warning/alert */
  --red:    #ff1744;  /* Critical */
  --green:  #00e676;  /* Nominal/OK */
}

Add New Cities

Edit src/data/mockData.js:

export const CITIES = [
  { name: "Your City", lat: 40.71, lng: -74.01 },
  // ...
];

Add New Layer Modes

In src/styles/global.css:

.layer-yourmode .globe-wrap {
  filter: /* your CSS filter here */;
}

Then add the button in src/components/BottomBar.js.


๐Ÿ›  Troubleshooting

Problem Solution
npm install fails Make sure Node.js 16+ is installed: node --version
Blank screen Check browser console (F12) for errors
Globe not loading The SVG globe works offline; for 3D globe run npm install react-globe.gl
Fonts not loading App works offline but fonts need internet; fallback is monospace
Port 3000 in use Run PORT=3001 npm start

๐Ÿ“ฆ Build for Production

npm run build

Creates optimized files in build/ folder. Deploy to any static host (Vercel, Netlify, GitHub Pages).


Tech Stack

  • React 18 โ€” UI framework
  • Framer Motion โ€” Animations and transitions
  • CSS3 โ€” CRT/NVG/FLIR filter effects, scanlines, glow
  • SVG โ€” Custom globe projection (orthographic)
  • Google Fonts โ€” Orbitron, Share Tech Mono, Rajdhani

Classification: TOP SECRET // TS-TK // NOFORN

Note

If you run into Three.js module export errors, reinstall dependencies after updating three.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages