Clockchain
Temporal causal graph for AI agents. PostgreSQL-backed directed graph of historical moments — canonical spatiotemporal URLs, typed causal edges, autonomous expansion, and browse/search/discovery APIs.GitHub
timepoint-ai/timepoint-clockchain — Apache-2.0, Python 3.11+, FastAPIDetailed Docs
Full API reference, graph architecture, and deployment docs
Why This Exists
AI agents that reason about causality across time currently rely on web search (noisy, unstructured), knowledge graphs (no temporal dimension), or hallucination. The Clockchain is a structured alternative: every node carries dialog, entity states, provenance, and confidence, addressed by a canonical spatiotemporal URL, in a format (TDF) designed for machine consumption.Graph Architecture
Two PostgreSQL tables:nodes (canonical spatiotemporal URLs as PKs) and edges (source, target, type, weight).
Canonical URL Format
Content Layers
| Layer | Content | Source |
|---|---|---|
| 0 | URL path + event name | Auto-generated |
| 1 | Metadata: figures, tags, description | Expander (LLM) |
| 2 | Full Flash scene with dialog, characters, image | Flash renderer |
Edge Types
| Type | Meaning | Auto-linked? |
|---|---|---|
causes | Direct causal relationship | No — expander or manual |
contemporaneous | Same year (+/- 1) | Yes, weight 0.5 |
same_location | Matching geography | Yes, weight 0.5 |
thematic | Overlapping tags | Yes, weight 0.3 |
Background Workers
| Worker | Role |
|---|---|
| Renderer | Calls Flash to upgrade layer-1 nodes to layer-2 (full scenes) |
| Expander | LLM-driven graph growth — discovers related moments, renders each through Flash |
| Judge | Content moderation |
| Daily | ”Today in History” cron — adds new nodes for the current date |
Public API
No authentication required for read access:Rate Limits
| Tier | Limit |
|---|---|
| Public (unauthenticated) | 60/min |
| Authenticated reads | 300/min |
| Authenticated writes | 30/min |