{"success":true,"data":{"ext":"psflib","name":"PSFLIB","description":"PSFLIB is a companion library format for PlayStation Sound Format audio, defined and maintained by the PSF community. It is used with emulators and audio players to supply shared game music data, enabling playback of tracks extracted from PlayStation software. The format is generally safe, though files may be bundled with untrusted content, and it remains a legacy format associated with retro game preservation.","mime":["audio/x-psf"],"risk_level":"Safe","signatures":[{"hex":"50 53 46","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":["gslib","minigsf","minipsf","minipsf1","psf1"],"usage":{"python":"def is_psflib(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PSFLIB by magic bytes.\"\"\"\n    signature = bytes([0x50, 0x53, 0x46])\n    with open(file_path, \"rb\") as f:\n        return f.read(3) == signature","node":"function isPSFLIB(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x50, 0x53, 0x46]);\n  return buffer.subarray(0, 3).equals(signature);\n}","go":"func IsPSFLIB(data []byte) bool {\n    signature := []byte{0x50, 0x53, 0x46}\n    if len(data) < 3 {\n        return false\n    }\n    return bytes.Equal(data[:3], signature)\n}"},"category":"Audio"}}