Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

447 B
Raw Blame
export interface CustomIcon {
  dataUrl: string
  tinted: boolean
}

export type CustomIcons = Record<string, CustomIcon>

/** Only host-normalized PNGs are rendered, never URLs supplied by another device. */
export function validIcon(icon: CustomIcon | undefined): icon is CustomIcon {
  return !!icon && typeof icon.dataUrl === 'string' && icon.dataUrl.length <= 65558
    && /^data:image\/png;base64,[A-Za-z0-9+/]+={0,2}$/.test(icon.dataUrl)
}