A project built for the Kraken Forge Hackathon (Track #2: Orderbook Visualizer) by Fabian Piper

Krono
Krono provides a complete solution for visualizing cryptocurrency orderbook data from Kraken’s WebSocket API. Built with a modular architecture, it consists of three packages:Core
The
@krono/core package provides framework-agnostic orderbook logic with WebSocket management.Hooks
The
@krono/hooks package provides a react integration library with composable hooks.Kit
The
@krono/kit package provides pre-built UI components using shadcn/ui and Tailwind CSS.Features
- Ready-to-use components: Pre-built UI based on shadcn/ui and Tailwind CSS for orderbook visualization, configuration panels, and asset pair selection
- Time travel playback: Replay historical orderbook states with frame-accurate precision for debugging, backtesting, and market analysis
- High-performance WebSocket: Optimized Kraken WebSocket integration with intelligent throttling and debouncing to keep your UI responsive
- 7+ React hooks: Composable hooks for orderbook data, subscriptions, and state management with full control over data flow
- Framework-agnostic: Core package works with any framework, including React, Vue, Svelte, Angular, or vanilla JavaScript
- TypeScript first: End-to-end type safety with excellent IDE autocomplete and compile-time error detection
Usage
Use the following code snippet to get a live orderbook with time travel capabilities:Browser Support
Krono works in all modern browsers that support WebSocket and ES2020+ features:
- Chrome/Edge 90+
- Firefox 88+
- Safari 14+
- Modern mobile browsers (iOS Safari 14+, Chrome Mobile)
