Temporal Memory Grid (TMG) is a high-performance temporal aggregation, time-series analysis, and anomaly detection engine. It continuously ingests high-frequency spatial and system events, derives multi-resolution time-buckets (1m, 5m, 15m, 1h, 1d), computes rolling percentile metrics, and evaluates threshold-based anomaly rules in real time.
graph TD
A[Event Ingestion Stream] --> B(Temporal Bucket Engine)
B --> C[(Time-Buckets & Metrics Store)]
C --> D[Multi-Resolution Rollup Aggregator]
C --> E[Anomaly & Rule Threshold Engine]
D --> F[Trends & Analytical Dashboards]
E --> G[Real-Time Alert Dispatcher]
- Multi-resolution aggregation over
1m,5m,15m,1h, and1dintervals. - Rolling percentiles (p50, p90, p95, p99), throughput curves, and latency distribution charts.
- Dynamic threshold monitoring for latency spikes, error rate escalations, and volume anomalies.
- Granular rule creation, severity classifications (Critical, Warning, Info), and active status toggles.
- Comprehensive execution history for scheduled aggregation jobs and external puller workers.
- Execution duration tracking, processed record counts, and error telemetry.
- Complete REST API specification for querying temporal buckets, triggering manual rollups, and streaming telemetry.
- Multi-user authentication, API key generation, caching policies, and timezone configurations.
- PHP 8.0+ (with
pdo,pdo_sqliteorpdo_mysql) - Web server (Nginx, Apache, or PHP Built-in Server)
# Clone the repository
git clone https://github.com/adacreativeco/temporal-memory-grid.git
cd temporal-memory-grid
# Initialize the database
php setup_database_sqlite.php
# Start development server
php -S 127.0.0.1:8080php tests/test_tmg.phpLicensed under the Apache License 2.0. Developed with 🧠 by ADA Creative Co..





