Hex Viewer
StableFuturistic binary data, memory dump, and byte inspector console with synchronized bidirectional ASCII decoding, live pattern search, and offset jumping.
Installation
Import
import { HexViewer } from '@siberui/react';Basic Memory Hex Dump
Renders raw text or Uint8Array bytes across a 3-column military layout (Memory Offset Address, Hex Matrix, and Decoded ASCII). Hovering any byte triggers synchronized neon highlighting and bottom HUD telemetry inspection.
<HexViewer
data="SIBERUI_BINARY_PAYLOAD_0x7F4A_ENCRYPTED_HEADER_SYS"
baseOffset={0x00400000}
signal="cyan"
maxHeight="280px"
title="SYSTEM_MEMORY // STACK_01"
/>Byte Search & Pattern Matching
Highlight matching hex bytes and ASCII substrings in realtime using the searchQuery prop or the built-in toolbar search box.
<HexViewer
data={samplePayload}
searchQuery="QUANTUM"
signal="amber"
maxHeight="260px"
title="PACKET_INSPECTION // MATCH_FILTER"
/>Signal Accent Themes
Select an active signal color tone using the signal prop to match your console theme.
<HexViewer
data="MALWARE_SIGNATURE_HASH_0x99FF_ROOTKIT_DETECTED"
signal="rose"
maxHeight="240px"
title="THREAT_ANALYSIS // QUARANTINE"
/>Tactical Binary Forensics Inspector
Full forensics dashboard embedded inside a ChamferCard chassis with jump-to-address navigation and clipboard copy actions.
CORE MEMORY FORENSICS
Live hexadecimal dump of decrypted kernel instruction space.
<ChamferCard signal="green" glow tag="FORENSICS // DUMP_04" statusDot="green" className="w-full">
<ChamferCardHeader>
<div className="flex items-center justify-between">
<div className="flex items-center gap-2">
<Binary className="h-4 w-4 text-emerald-400" />
<ChamferCardTitle>CORE MEMORY FORENSICS</ChamferCardTitle>
</div>
<Badge variant="glass" dot dotColor="green">BUFFER_SYNCED</Badge>
</div>
<ChamferCardDescription>
Live hexadecimal dump of decrypted kernel instruction space.
</ChamferCardDescription>
</ChamferCardHeader>
<ChamferCardContent>
<HexViewer
data="KERNEL_PANIC_DUMP_0x001A_VIRTUAL_ADDRESS_MAPPING_PAGE_FAULT_BYPASS"
baseOffset={0x00800000}
signal="green"
maxHeight="260px"
title="KERNEL // RAM_SNAPSHOT"
/>
</ChamferCardContent>
</ChamferCard>API Reference
| Property | Description | Type | Default |
|---|---|---|---|
data | Raw binary data as a Uint8Array, byte array, or UTF-8 string. | Uint8Array | number[] | string | - |
bytesPerRow | Number of bytes rendered per line (8, 16, or 32). | 8 | 16 | 32 | 16 |
baseOffset | Starting base memory address offset. | number | 0 |
signal | Neon signal accent theme. | "cyan" | "violet" | "green" | "amber" | "rose" | "cyan" |
searchQuery | Search string to highlight across hex and ASCII columns. | string | - |
showToolbar | Displays the top action toolbar (search, copy, jump to offset). | boolean | true |
showInspector | Displays the bottom live telemetry inspection bar. | boolean | true |
showAscii | Displays the right-side decoded ASCII column. | boolean | true |
showOffset | Displays the left-side memory offset address column. | boolean | true |
onByteSelect | Callback fired when a byte is clicked or selected via keyboard. | (offset: number, byte: number) => void | - |
onByteHover | Callback fired when a byte is hovered. | (offset: number | null, byte: number | null) => void | - |
Accessibility & Keyboard Navigation
- Keyboard Focus: The byte grid is keyboard focusable via
tabIndex={0}and each byte cell features semanticrole="gridcell"attributes. - Clipboard Actions: The COPY HEX and COPY ASCII toolbar buttons copy formatted strings to the clipboard with visual confirmation feedback.