# ALEC Platform

> Streaming compression and system health intelligence for IoT sensor data on bandwidth-constrained networks (LoRaWAN, NB-IoT, satellite, mioty). 80-95% payload reduction per message.

ALEC (Adaptive Lazy Evolving Compression) is a Swiss-developed platform for IoT data efficiency and system health monitoring. Unlike traditional compression (gzip, LZ4, zstd) which fails on small per-message payloads, ALEC uses streaming compression with evolving shared context and asymmetric design — compute effort is placed where resources exist (server-side decode), keeping the device-side encoder ultra-light (~2 KB RAM, <1ms latency).

## Three Products

- **ALEC Codec**: Core streaming compression engine. 80-95% lossless compression on sensor data. Written in Rust, ~2 KB RAM footprint. AGPL-3.0 open source + commercial licensing. Production-ready. Available on crates.io (`alec` and `alec-ffi` for C/C++ bindings).
- **ALEC Gateway**: Multi-sensor orchestration layer. Manages 64+ channels with priority scheduling (P1-P5), frame aggregation for LoRaWAN payload limits, and real-time entropy metrics including Total Correlation, Resilience Index, and Criticality ranking.
- **ALEC Complexity**: Anomaly detection via Quantitative Complexity Theory. Automatic baseline learning, z-score detection (configurable thresholds), structure analysis (S-lite), and 7 event types. No ML required — operates on information-theoretic principles. In collaboration with Ontonix.

## Key Technical Details

- **Compression type**: Lossless, streaming, per-message (not batch)
- **Target networks**: LoRaWAN, NB-IoT, satellite (Astrocast, Kineis, Iridium, Swarm), mioty
- **Performance**: 80-95% payload reduction with preloaded context; ~60% cold start improving to 80%+ after warmup
- **Architecture**: Asymmetric — lightweight encoder (2 KB RAM, microcontroller-friendly), full decoder on server/gateway
- **Encoding modes**: Raw (R), Delta (D), Repeated (=), Multi (M) with adaptive pattern dictionary
- **Preloaded context**: Pre-trained sensor profiles for immediate optimal compression without warmup
- **Language**: Rust (core), with FFI bindings for C/C++ integration (libalec_ffi.a + alec.h)
- **Cross-compilation**: ARM Cortex-M (thumbv7em), RISC-V (ESP32-C3), Xtensa (ESP32), supports `no_std`
- **License**: Dual — AGPL-3.0 (open source) + commercial per-revenue-tier licensing for manufacturers

## Benefits

- Extends battery life 2.8-10x (fewer transmissions or shorter airtime per message)
- Reduces airtime costs 80-95% (critical for satellite at $0.001-0.01/byte and licensed spectrum)
- Enables more data per message (higher resolution sensing within LoRaWAN 51-242 byte payload limits)
- Works at the message level — no buffering or batch accumulation required
- System health monitoring via one Robustness Score (R) instead of hundreds of individual metrics
- Anomaly detection 70% earlier than static thresholds, with automatic baseline learning

## Links

- Homepage: https://alec-codec.com
- Live Demo: https://demo.alec-codec.com
- Documentation: https://alec-codec.com/docs
- GitHub: https://github.com/zeekmartin/alec-codec
- Pricing: https://alec-codec.com/pricing
- Battery Benchmark: https://alec-codec.com/battery-benchmark
- Contact: hello@alec-codec.com

## Solutions

- [ALEC Codec](/solutions/codec) - Core streaming compression engine
- [ALEC Gateway](/solutions/gateway) - Multi-sensor orchestration
- [ALEC Complexity](/solutions/complexity) - Anomaly detection

## Industry Pages

- [Energy & Smart Grid](/industries/energy)
- [Agriculture](/industries/agriculture)
- [Satellite IoT](/industries/satellite)
- [Industrial & OT](/industries/industrial)
- [Logistics & Fleet](/industries/logistics)
- [Healthcare](/industries/healthcare)
- [Smart City](/industries/smart-city)
- [Manufacturing](/industries/manufacturing)
- [IT & DevOps](/industries/it-devops)
- [Maritime & Subsea](/industries/maritime)
- [Automotive & EV](/industries/automotive)
- [Aviation & Drones](/industries/aviation)

## Documentation

- [API Reference](/docs/api)
- [LoRaWAN Integration](/docs/lorawan)
- [MQTT Integration](/docs/mqtt)
- [C/C++ Bindings](/docs/c-bindings)
- [Edge Deployment](/docs/edge)

## Optional: Full Content

- [llms-full.txt](/llms-full.txt) — Extended version with technical details, benchmarks, integration guide, FAQ, and full industry page content
