How UFOBeep Works

A deep dive into the technology, architecture, and algorithms that power real-time UFO sighting alerts

The Concept

UFOBeep is a real-time alert network that notifies nearby users when someone reports a UFO sighting. Think of it as a β€œNOW” button for the sky - when something unexplained appears, witnesses can immediately alert others in a 50-mile radius to look up and verify.

The key innovation is immediate proximity alerts. Traditional UFO reporting happens hours or days after the fact. UFOBeep enables real-time community verification while the object is still visible.

How Alerts Work

πŸ“Step 1: Witness Reports a Sighting

User opens the app, captures photo/video (optional), and hits β€œBeep Now”. The app records:

  • GPS coordinates (latitude/longitude)
  • Precise timestamp (UTC)
  • Compass bearing and altitude
  • Device sensors (if available)

πŸ€–Step 2: Automatic Enrichment

Our backend immediately enriches the report with real-time environmental data:

☁️ Weather

Cloud cover, visibility, wind, temperature from OpenWeather API

✈️ Aircraft

All planes in the sky from OpenSky Network

πŸ›°οΈ Satellites

Visible satellites from CelesTrak TLE data

πŸŒ™ Celestial

Sun, moon, planets, bright stars positions

πŸ€– AI Analysis

Gemini AI provides intelligent analysis and summaries of sighting reports for better understanding

πŸ””Step 3: Push Notifications

Firebase Cloud Messaging sends push notifications to all users within a 50-mile radius:

β€œUFO Sighting Alert! πŸ›Έ
12.3 miles SW from you
Tap to view and verify”

Users can tap the notification to see the full details, photos, and join the live discussion.

πŸ‘₯Step 4: Community Verification

Multiple witnesses can confirm or provide additional details in real-time. The app shows:

  • How many nearby users saw it
  • Different photos/videos from multiple angles
  • Live comment thread for discussion
  • Distance and bearing from each witness

Technology Stack

πŸ“± Mobile App

  • Flutter: Cross-platform (iOS & Android)
  • Dart: Modern, fast, type-safe
  • Riverpod: State management
  • GoRouter: Navigation
  • Dio: HTTP client
  • Firebase Messaging: Push notifications
  • Geolocator: GPS & location services
  • Camera/ImagePicker: Media capture

βš™οΈ Backend API

  • FastAPI: Python web framework
  • PostgreSQL: Primary database
  • PostGIS: Geospatial queries
  • Firebase Admin: Push notification server
  • MinIO: S3-compatible media storage
  • Redis: Caching layer
  • JWT: Authentication
  • Nginx: Reverse proxy

🌐 Website

  • Next.js 14: React framework
  • TypeScript: Type safety
  • Tailwind CSS: Styling
  • next-intl: 22 languages
  • React Leaflet: Interactive maps

πŸ“Š Data Sources

  • OpenWeather: Real-time weather
  • OpenSky Network: Aircraft tracking
  • CelesTrak: Satellite TLE data
  • Skyfield: Celestial calculations
  • Community: User-submitted sighting reports

πŸ‘¨β€πŸ’» Development

  • Built by: Mike (creator) with AI assistance
  • Claude Code: Primary development AI
  • ChatGPT: Mathematical analysis & consulting
  • Gemini AI: In-app report summaries for brevity & readability
  • Open Source: Full codebase on GitHub

System Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Mobile App     β”‚
β”‚  (Flutter)      β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚ HTTPS/JWT
         β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
         β”‚                     β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”   β”Œβ”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  FastAPI        β”‚   β”‚  Firebase      β”‚
β”‚  Backend        β”‚   β”‚  Cloud         β”‚
β”‚  (Python)       β”‚   β”‚  Messaging     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚
    β”Œβ”€β”€β”€β”€β”΄β”€β”€β”€β”€β”
    β”‚         β”‚
β”Œβ”€β”€β”€β–Όβ”€β”€β”  β”Œβ”€β”€β–Όβ”€β”€β”€β”
β”‚ Post β”‚  β”‚ MinIOβ”‚
β”‚ greSQL  β”‚  β”‚ (S3) β”‚
β”‚+PostGISβ”‚  β””β”€β”€β”€β”€β”€β”€β”˜
β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜

External APIs:
β”œβ”€ OpenWeather (weather data)
β”œβ”€ OpenSky Network (aircraft)
β”œβ”€ CelesTrak (satellites)
└─ Astronomical calculations (Skyfield)

Key Design Decisions

  • PostGIS for geospatial queries: Efficiently finds all users within 50-mile radius using spatial indexes
  • Firebase for push notifications: Reliable delivery across iOS & Android with minimal setup
  • MinIO for media storage: S3-compatible, self-hosted, cost-effective for photos/videos
  • Real-time enrichment: All environmental data captured at exact moment of sighting, not retroactively

Network Density & Coverage

How many users does UFOBeep need for the network to be effective? We did the math.

Using Poisson distribution and real US population density data, we calculated the minimum number of users needed for reliable proximity alerts. The analysis accounts for urban clustering, notification reach rates, and the 50-mile alert radius.

Read the Full Mathematical Analysis β†’

Open Source

UFOBeep is open source and available on GitHub. The entire codebase - mobile app, backend API, website, and data processing scripts - is publicly available.

View on GitHub β†’