Skip to content
Design System
GitHub

Robot and system logs in a virtual list smooth at 100,000 lines: follows the newest, keeps maxLines, filters by level and source, searches, wraps, opens a line, copies, and batches fast appends.

TimeLevelSourceMessage
240 linesFollowing new lines
Up and down arrows move between lines, Shift with them selects lines, Enter opens a line, C copies, End goes to the latest line, slash searches.

/rosout

Install
npx shadcn add @syncrobotic/log-viewer

Also installs: @tanstack/react-virtual@^3, lucide-react@^1, @syncrobotic/cn, @syncrobotic/use-presence, @syncrobotic/button, @syncrobotic/copy-button, @syncrobotic/dropdown-menu, @syncrobotic/input, @syncrobotic/input-group, @syncrobotic/empty-state, @syncrobotic/use-now, @syncrobotic/math, @syncrobotic/format-number

Overview

When to use

  • A robot's /rosout on its page in a fleet console, for the operator or the engineer on call.
  • A service's or a device's journal while commissioning or debugging.
  • Reading back what a robot said around an incident, from a saved log.

Use something else

  • Conditions someone must acknowledge: Alarm.
  • Records people sort, select and page: Data grid.
  • The steps of one run, with durations: Trace.
  • A command and its output to copy: Code block.

More examples

States and real uses. Each example is also a Storybook story and a visual regression test.

Search

Expanded

Filtered

Wrapped relative

100,000 lines

Live

Empty

Traditional Chinese (zh-TW)

Usage rules

  • For lines a program writes as it runs: ROS /rosout, journald, a service's log. Events people act on are alarm; a table people sort and page is data-grid; one run's steps are trace.
  • Stream through createLogBuffer (pass it as buffer) or the ref handle's append, never by copying a growing array into state: appends are batched, so 1,000 lines a second draw ten times a second. Convert ROS messages with rosLogToLogLine from ros.
  • Set maxLines to what the reader needs to scroll back through (10,000 by default); the oldest lines are dropped. Up to about 200,000 stay smooth; keep the full log on disk or in the backend.
  • Levels are a shape and a word, never a tinted row: warn is warning, error and fatal danger; debug and info stay grey.
  • Give timeZone when the people reading are not where the robot is, and say which in the page; copied lines are always ISO 8601 in UTC.
  • Name the sources for what they are: labels.sources "Nodes" for ROS, "Units" for journald.
  • Leave announce on "errors" (at most every 5 s); "all" only for a slow log, and false where an alarm already speaks for the same failure.
  • An opened line is a band of its row, not a card: a hairline under the message, the fields with names under the time and values under the level, and one quiet Copy line. Nothing floats over the lines: Jump to latest and Copy for several lines sit in the footer.

Changelog

  • 0.64.02026-12-01Formatted with Prettier (class order sorted); the code is unchanged.
  • 0.58.02026-11-28Stable: shipped ten releases with no breaking change, with unit tests, measured accessibility (components) and use/instead docs. Its API now changes only after a release deprecates what goes, with a migration line.
  • 0.53.02026-11-27Its doc opens with its description, word for word; the code is unchanged.

How to upgrade