NUI

application/octet-stream

Safe

Magic Bytes

Offset: 0
4E 55 52 55 49 4D 47 4E 55 52 55 50 41 4C

The NUI file format is a structured image specification developed by the Nuru project for encoding terminal-based graphics and cellular data. It is primarily used within the Nuru ecosystem to store character-oriented artwork, including specific color palettes and spatial layout information for command-line environments. Although considered a niche format for terminal art, it is generally safe to handle, provided that compatible viewers are used to parse the internal data structures correctly.

Extension

.nui

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .nui files in Python

Python
def is_nui(file_path: str) -> bool:
    """Check if file is a valid NUI by magic bytes."""
    signature = bytes([0x4E, 0x55, 0x52, 0x55, 0x49, 0x4D, 0x47, 0x4E, 0x55, 0x52, 0x55, 0x50, 0x41, 0x4C])
    with open(file_path, "rb") as f:
        return f.read(14) == signature

How to validate .nui files in Node.js

Node.js
function isNUI(buffer: Buffer): boolean {
  const signature = Buffer.from([0x4E, 0x55, 0x52, 0x55, 0x49, 0x4D, 0x47, 0x4E, 0x55, 0x52, 0x55, 0x50, 0x41, 0x4C]);
  return buffer.subarray(0, 14).equals(signature);
}
Go
func IsNUI(data []byte) bool {
    signature := []byte{0x4E, 0x55, 0x52, 0x55, 0x49, 0x4D, 0x47, 0x4E, 0x55, 0x52, 0x55, 0x50, 0x41, 0x4C}
    if len(data) < 14 {
        return false
    }
    return bytes.Equal(data[:14], signature)
}

API Endpoint

GET /api/v1/nui
curl https://filesignature.org/api/v1/nui

Related Formats