Admin — Grammar Learner
Session stats, active streams, and API documentation.
0
Active streams
0
Records ingested
0
Compressions run
39h 06m 55s
Uptime
Active Stream Registry
No streams yet. Load a demo corpus →
Recent Activity
No activity yet this session.
API Documentation
Running on port 7743. All endpoints return JSON.
POST /learn
Learn grammar from pasted records. Form fields:
stream_name, data_text.curl -X POST http://localhost:7743/learn \
-F stream_name=my-stream \
-F data_text='[{"sensor":"A1","temp":22.5},{"sensor":"A1","temp":22.7}]'
POST /api/demo-load
Load a pre-built demo corpus. Form field:
demo_key (iot-sensor, netflow, malware-sigs, medical-vitals, web-logs, device-config).curl -X POST http://localhost:7743/api/demo-load -F demo_key=iot-sensor
POST /compress
Compress a record against a learned grammar. Form fields:
stream_name, record_text.curl -X POST http://localhost:7743/compress \
-F stream_name=iot-sensor \
-F record_text='{"device_id":"sensor_001","ts":1714003600,"temp":23.1}'
GET /api/stats
Returns JSON summary of all active streams and session stats.
curl http://localhost:7743/api/stats
GET /health
Health check — returns
{"status":"ok"}.curl http://localhost:7743/health