Skip to content

Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.

476 B
Raw Blame
// keyboard shortcuts are shown the way the person's own keyboard labels them

const isMac = typeof navigator !== 'undefined' && /Mac|iPhone|iPad/.test(navigator.platform);

export function shortcutLabel(key: string): string {
  return `${isMac ? 'Cmd' : 'Ctrl'} ${key}`;
}

export const APP_SHORTCUTS: ReadonlyArray<{ keys: string; action: string }> = [
  { keys: shortcutLabel('K'), action: 'Search' },
  { keys: shortcutLabel('B'), action: 'Show or hide the sidebar' },
];