Skip to main content

S-Parking

Transform parking infrastructure into a smart, data-driven ecosystem with IoT sensors, real-time monitoring, and cloud-native architecture.

Platform Overview

S-Parking is an enterprise-grade parking management solution that bridges physical infrastructure with cloud computing. Monitor occupancy in real-time with sub-2-second latency, manage reservations automatically, and gain insights from predictive analytics.

Quick Start

Get your first parking spot monitored in under 10 minutes

Architecture

Explore the cloud-native serverless design

Hardware Setup

Configure ESP32 sensors and IoT devices

API Reference

Integrate with Cloud Functions and REST APIs

Key Features

Real-Time Monitoring

Sub-2-second latency updates with WebSocket sync and Firestore listeners

Smart Reservations

Time-based reservations with automatic expiration and conflict prevention

Visual Zone Builder

Drag-and-drop parking spot creation with Google Maps integration

Analytics Dashboard

Historical trends, occupancy heatmaps, and peak hour analysis

Technology Stack

Cloud Infrastructure (Google Cloud Platform)

Cloud Run

Containerized Node.js 20 microservices with auto-scaling

Firestore

NoSQL real-time database with sub-collection architecture

Firebase Hosting

Global CDN with HTTP/2 and SSL certificate management

Cloud Scheduler

Cron-based analytics snapshot generation

IoT & Hardware Layer

ESP32 Microcontrollers

WiFi-enabled MCUs with self-healing network logic

VL53L0X Sensors

Time-of-Flight laser distance sensors with 400mm range

RGB LED Indicators

Visual feedback system with tri-state signaling

HTTPS Communication

Secure REST API calls with TLS 1.2 encryption

System Capabilities

ESP32 nodes automatically detect and correct state desynchronization by polling Cloud Firestore every 15 seconds. When a sensor detects a mismatch between physical reality and cloud state, it force-updates the database to maintain consistency.
The dashboard reduces Firestore read costs by 80% using the Page Visibility API. When users switch tabs, real-time listeners pause automatically and resume when the page regains focus.
Three-tier cache strategy: in-memory cache (15s TTL), localStorage persistence, and Firestore snapshots. Reduces API calls and provides offline resilience for critical data.
The zone builder uses Haversine formula to calculate geodesic distances between parking spots, preventing overlapping placement and ensuring accurate spacing on the map.

Introduction

Learn about S-Parking capabilities

Deployment Guide

Deploy to Google Cloud Platform

Frontend Architecture

Vanilla JS dashboard implementation

Cloud Functions

Serverless microservices overview

Authentication

Firebase Auth with custom claims

GitHub Repository

View source code and contribute

Built With Modern Standards

S-Parking leverages industry-proven technologies:
  • Node.js 20 with ES Modules for serverless functions
  • Firestore with real-time snapshot listeners
  • ESP32 with Arduino framework and ArduinoJson
  • Vanilla JavaScript ES6+ with native modules (zero framework overhead)
  • Tailwind CSS utility-first styling system
  • Google Maps JavaScript API with custom overlays
  • Chart.js 4.x for data visualization
Designed by Joaquín Troncoso Muñoz - Full-stack implementation from hardware firmware to cloud infrastructure. Specialized in serverless architecture, IoT integration, and performance optimization.

Build docs developers (and LLMs) love