Inspiration
Production outages rarely announce themselves politely—they haunt distributed systems through slow-burning memory leaks, silent N+1 query amplification, dead-letter queues, and cascading error storms buried inside thousands of raw telemetry lines. We wanted a fast, deterministic, zero-backend observability workbench wrapped in a haunting gothic-terminal UI that turns raw logs and spans into immediate root-cause diagnostics.
What it does
SpecterTrace is a gothic-terminal real-time log, trace, and memory-leak spectral debugger built for the Costume Contest category. It runs entirely in the browser on deterministic parsing and analysis engines:
- 5 Deterministic Spectral Detectors:
- p95 / p99 Latency Spikes: Flags tail-latency regressions and anomalous duration outliers across service spans.
- Cascading Error Chains: Reconstructs parent-to-child trace propagation to pinpoint the exact origin span triggering downstream 5xx/exception cascades.
- N+1 Query Loops: Detects repetitive sequential datastore/RPC spans within a single parent trace and quantifies wasted round-trip time.
- Zombie Handle & Memory-Leak Growth Slopes: Computes monotonic heap/handle regression slopes over time windows to catch slow resource leaks before OOM crashes.
- Dead-Letter Anomalies: Surfaces poisoned payloads, retry exhaustion loops, and stalled consumer partitions.
- Gothic SVG Flamegraph: Interactive, high-contrast spectral flamegraph rendering span hierarchies, critical paths, and severity highlights.
- One-Click Postmortem Export: Generates structured incident postmortems (timeline, root-cause detector evidence, impacted traces, and remediation checklist) directly from the current trace session.
How we built it & How Kiro Was Used
We built SpecterTrace in strict TypeScript and React, bundled with Vite and verified with Vitest (19/19 passing tests).
We used Kiro CLI (kiro-cli) throughout the build with root .kiro/ configuration committed in the repository:
- Steering docs (
.kiro/steering/architecture.md): Guided Kiro CLI on our deterministic detector contracts, zero-network client-side architecture, strict TypeScript invariants, and gothic-terminal design system tokens so every generated module stayed cohesive. - Agent hooks (
.kiro/hooks/test-on-save.json): Automated test verification by triggering Vitest checks on code edits, catching edge-case regressions in detector thresholds and flamegraph layout calculations immediately and keeping 19/19 Vitest tests green through deployment to GitHub Pages.
Challenges we ran into
Designing an authentic, haunted gothic-terminal aesthetic (spectral glow states, crisp monospace hierarchy, and interactive SVG flamegraphs) without sacrificing legibility or diagnostic density required careful contrast tuning and layout virtualization.
Credits
Built with TypeScript, React, Vite, Vitest, and Kiro CLI (kiro-cli).
Built With
- kiro
- react
- typescript
- vite
- vitest