How froggorrr/matscan works
Matscan is a transaction and account explorer with a live activity dashboard, searchable transaction/account records, statistics, and documentation rendering. The main user flow begins at the dashboard or search, then examines transaction or user details; the dashboard also shows activity and aggregated metrics. API routes expose transaction, account, leaderboard, and statistics data backed by Supabase, while the live table receives websocket events. The source index establishes several route-to-store dependencies; unsampled page and component internals limit some UI-to-API links, so those are omitted.
Main entry points: supabase.ts Supabase client · page.tsx Home dashboard · live-transaction-table.tsx Live transactions · chart.tsx Activity charts
Components 25
Explorer UI
- Home dashboard
app/page.tsx - Search
components/search/search-form.tsx - Live transactions
components/live-transaction-table.tsx - Activity charts
components/chart.tsx - Statistics
components/stats.tsx - Transaction detail
app/tx/[txid]/page.tsx - Account detail
app/users/[username]/page.tsx - Account history table
components/user-transaction-table.tsx - Leaderboards
components/leaderboard/leaderboard.tsx
Data API
- Stats endpoint
app/api/stats/route.ts - Transaction range
app/api/transactions/by/range/[start]/[end]/route.ts - Transaction lookup
app/api/transactions/by/txid/[txid]/route.ts - Daily aggregates
app/api/transactions/daily/route.ts - Monthly aggregates
app/api/transactions/monthly/route.ts - Account lookup
app/api/users/[username]/route.ts - Account transactions
app/api/users/transactions/[username]/[start]/[end]/route.ts - Recipient leaderboard
app/api/leaderboard/receipment/route.ts - Tipper leaderboard
app/api/leaderboard/tipper/route.ts
Data Access
- Supabase client
lib/supabase.ts - Supabase database
Documentation
- MDX content renderer
lib/markdown.ts - Docs navigation routes
lib/routes-config.ts - MDX components
components/markdown
Other components
- Explorer user
- WebSocket service
Connections 27
- Explorer user → Home dashboard: opens
app/page.tsx - Home dashboard → Search: renders
app/page.tsx - Home dashboard → Live transactions: renders
app/page.tsx - Home dashboard → Activity charts: renders
app/page.tsx - Home dashboard → Statistics: renders
app/page.tsx - Search → Supabase client: queries
components/search/search-form.tsx - Supabase client → Supabase database: connects
lib/supabase.ts - Live transactions → Transaction range: fetches
components/live-transaction-table.tsx - Live transactions → WebSocket service: subscribes
components/live-transaction-table.tsx - Activity charts → Daily aggregates: fetches
- Activity charts → Monthly aggregates: fetches
- Explorer user → Transaction detail: opens
app/tx/[txid]/page.tsx - Explorer user → Account detail: opens
app/users/[username]/page.tsx - Account detail → Account history table: renders
app/users/[username]/page.tsx - Stats endpoint → Supabase client: queries
app/api/stats/route.ts - Transaction range → Supabase client: queries
app/api/transactions/by/range/[start]/[end]/route.ts - Transaction lookup → Supabase client: queries
app/api/transactions/by/txid/[txid]/route.ts - Daily aggregates → Supabase client: queries
app/api/transactions/daily/route.ts - Monthly aggregates → Supabase client: queries
app/api/transactions/monthly/route.ts - Account lookup → Supabase client: queries
app/api/users/[username]/route.ts - Account transactions → Supabase client: queries
app/api/users/transactions/[username]/[start]/[end]/route.ts - Recipient leaderboard → Supabase client: queries
app/api/leaderboard/receipment/route.ts - Tipper leaderboard → Supabase client: queries
app/api/leaderboard/tipper/route.ts - Explorer user → Leaderboards: views
- Explorer user → MDX content renderer: reads docs
- MDX content renderer → Docs navigation routes: uses routes
lib/markdown.ts - MDX content renderer → MDX components: renders with
lib/markdown.ts