Log Explorer

Log stream viewer with a volume histogram you click or drag across to narrow the time window, level filters, a text query with highlighted matches, a virtualized monospace table, live tail that follows new lines until you scroll up and then shows a Jump to latest pill, and a side panel with each line's structured fields as JSON.

Preview

Log Explorer preview width

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @karaui/log-explorer
@karaui not found? Add it to components.json
{
  "registries": {
    "@karaui": "https://karaui.kamisama-v0.my.id/r/{name}.json"
  }
}

@karaui is in shadcn's public registry directory, so the latest CLI needs no setup. On an older CLI, merge this into the existing file once and every @karaui/… install resolves.

API Reference

logs
LogEntry[]

Log lines, oldest first (they are sorted defensively).

—
live?
boolean

Controlled live-tail mode. While on, new lines follow the bottom.

—
defaultLive?
boolean
false
onLiveChange?
((live: boolean) => void)
—
buckets?
number

Histogram buckets across the time span. Default 32.

32
timeZone?
string

IANA zone for timestamps. Default "UTC" so server and client agree.

UTC
locale?
string

Default "en-US".

en-US
height?
number

Height of the scrolling log body in px. Default 240.

240
rowHeight?
number

Fixed row height in px (rows are virtualized). Default 28.

28
className?
string
—

Keep in mind

Some components on this site are inspired by or recreated from existing work across the web. I'm not here to take credit; just to learn, experiment, and sometimes push things a bit further. If something looks familiar and I forgot to mention you, reach out and I'll fix that right away.

Updated