128
Live logs that stay readable: level filters with counts, search that highlights as it filters, pause and follow with a “new lines” pill, and bursts of the same error folded into one “12 similar” row.
akalogs·log viewer·tail
Run this in any project set up for the shadcn CLI. It copies the Log Stream source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/log-stream.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { LogStream } from "@/components/log-stream";
export default function Page() {
return <LogStream />;
}A free React component in the Dev Tools collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Log Stream source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| initialLines | LogLine[] | [] |
| subscribe | (push: (line: LogLine) => void) => () => void | — |
| limit | number | 500 |
| foldAfter | number | 3 |
| title | string | "Logs" |
| className | string | — |