miniLog is an open-source log viewer — the macOS native edition is built on SwiftUI + AppKit with an mmap zero-copy core, the Web / Windows / Linux edition ships as a single Go binary, and the browser edition runs purely client-side on Cloudflare Pages. 1 GB logs load instantly; while a 10 GB file indexes in the background, you're already reading the first screen.
| # | Time | Level | Message |
|---|
SwiftUI + AppKit shell with an mmap zero-copy core. 4 MB window progressive indexing, virtual scrolling decodes only visible lines. Requires macOS 13+ and Swift 5.9+.
swift run miniLog
Single Go binary with embedded browser frontend. Double-click to launch a local server and auto-open the browser — files never leave your machine.
go run ./webapp
Pure client-side engine on Cloudflare Pages. Drag or select a file — parsing, indexing, and search all happen in the browser, no server involved.
app.minilog.whatled.com ↗4 MB window scanning, first screen appears in milliseconds; virtual scrolling decodes only visible lines, NSCache holds 4,000 entries. No lag no matter how large the file.
Plain text uses memchr raw byte scanning; regex / whole-word / case-sensitive toggle matches line by line; hits binary-search the index to resolve line numbers.
Check/uncheck levels for instant filtering. Lines at undetected levels — stack frames, SQL — are always preserved; the "ERROR only" view never loses stack traces.
Exception headers (FQN) and Caused by: chains are indexed in the background; the status bar shows the count; ‹ › jumps between exceptions; headers in red, stack frames in gray.
Preparing: and Parameters: are auto-paired; ? placeholders are replaced in order with type-aware literals (1(Long) → 1, tom(String) → 'tom'); one-click copy of executable SQL.
Double-click a JSONL line to open a formatted view; the level field participates in level detection; copy supported.
Line number, 50% percentage, 09:31:00 timestamp — ⌘L is the unified entry point; time jumps linearly scan for the first match.
⇧⌘C copies the selected line ±25 lines with line numbers — paste directly into issues or AI conversations.
Real-time follow of file growth; pause/resume; detects rotation via device+inode and auto-follows the new file (desktop and web editions).
BOM → UTF-16 zero-byte heuristic → strict UTF-8 validation → Latin-1. Supports UTF-8, UTF-16 LE/BE, Latin-1.
Substring or regex + 8-color palette; saved in browser localStorage; persists across sessions.
Open the log, ⌘E jumps between exceptions, ⇧⌘C copies context ±25 lines — stack traces and Caused by chains preserved in full.
Preparing: and Parameters: are auto-paired; ? placeholders are replaced in order with type-aware literals; executable SQL visible inline.
4 MB window progressive indexing, first screen appears in milliseconds, background indexing continues. Even 10 GB files load instantly.
Tail mode follows file growth in real time; pause/resume; detects rotation via inode and auto-follows the new file.
The following data comes from project self-testing. Conditions: 1.0 GB / 13 million lines of generated logs, Apple Silicon release build, measured with --bench.
Resident memory during scanning is close to file size — but file mapping pages are cached (clean pages that the kernel can reclaim under memory pressure); the process heap is only about 8 bytes per line (line index).
All computation happens locally or in the browser. No data is uploaded.
swift run miniLog # GUI
swift run miniLog --self-test # Correctness self-test (69 cases)
scripts/gen_sample_log.py --size-mb 100 --out /tmp/sample.log
.build/release/miniLog --bench /tmp/sample.log --search ERROR
scripts/make_app.sh # build/miniLog.app
Requires macOS 13+ and Swift 5.9+ (Command Line Tools is sufficient; full Xcode not needed).
go run ./webapp # Web edition http://127.0.0.1:8787
go run ./webapp --open /var/log/app.log
go run ./webapp --self-test
scripts/build_webapp.sh all # 6-platform binaries
cd webapp/cloud && npx wrangler deploy
cd webapp/cloud && node engine.test.mjs # Engine tests
Live at: app.minilog.whatled.com