{
 "version": 1,
 "apps": [
  {
   "id": "bluesky",
   "name": "Bluesky",
   "url": "https://bsky.app/",
   "category": "Social",
   "keywords": [
    "posts",
    "social",
    "atproto"
   ],
   "badge": "title",
   "commands": [
    {
     "id": "notifications",
     "title": "Notifications",
     "url": "https://bsky.app/notifications"
    },
    {
     "id": "messages",
     "title": "Chat",
     "url": "https://bsky.app/messages"
    }
   ]
  },
  {
   "id": "canva",
   "name": "Canva",
   "url": "https://www.canva.com/",
   "category": "Design",
   "keywords": [
    "design",
    "graphics",
    "templates",
    "presentations"
   ],
   "window": {
    "width": 1440,
    "height": 900
   }
  },
  {
   "id": "chatgpt",
   "name": "ChatGPT",
   "url": "https://chatgpt.com/",
   "category": "AI",
   "keywords": [
    "ai",
    "chat",
    "openai",
    "assistant"
   ],
   "commands": [
    {
     "id": "new",
     "title": "New Chat",
     "url": "https://chatgpt.com/"
    },
    {
     "id": "temporary",
     "title": "Temporary Chat",
     "url": "https://chatgpt.com/?temporary-chat=true"
    }
   ]
  },
  {
   "id": "claude-design",
   "name": "Claude Design",
   "url": "https://claude.ai/artifacts/design",
   "scope": "https://claude.ai/",
   "category": "Design",
   "keywords": [
    "design",
    "prototype",
    "mockup",
    "ui",
    "anthropic",
    "claude"
   ],
   "icon": "https://appy.sh/icons/claude-design.png",
   "window": {
    "width": 1440,
    "height": 900,
    "titleBar": "hidden"
   },
   "script": "// Claude Design in Appy: the plan's usage in the menu bar, and the page running to the top of the window.\n// Runs in claude.ai's pages, signed in as the person, with window.appy from Appy.\n\n// ---- The page under the window buttons ----------------------------------------------------------------------------\n// claude.ai is built to run in Claude's own desktop app too, where the page sits under the window buttons and leaves\n// them a gap (--df-traffic-light-spacer). On the web that gap is 0 and the frame is marked data-web; here the frame is\n// given Appy's measured gap and laid out the desktop way: the sidebar button and the page title sit beside the window\n// buttons, on their row. The open sidebar's header makes room for them too, as does the header of a project opened by\n// its own link, and the top bars move the window.\nconst style = document.createElement(\"style\");\nstyle.textContent = `\n  .dframe-root { --df-traffic-light-spacer: max(0px, calc(var(--appy-window-controls-width, 0px) - 9px)) !important; }\n  .df-titlebar { padding-left: max(8px, var(--appy-window-controls-width, 0px)) !important; }\n  .df-titlebar, .df-collapsed-chrome, .dframe-header, header#hdr { app-region: drag; }\n  /* A project opened by its own link has a plain header of its own, with no sidebar. */\n  header#hdr { padding-left: max(0px, calc(var(--appy-window-controls-width, 0px) - 8px)) !important; }\n`;\n(document.head || document.documentElement).appendChild(style);\n\nconst desktopFrame = () => {\n  for (const root of document.querySelectorAll(\".dframe-root[data-web]\")) root.removeAttribute(\"data-web\");\n  // Pages outside the frame (the Design list) have a plain sticky bar at the top: that one moves the window too.\n  for (const el of document.querySelectorAll(\".sticky.top-0:not([data-app-region])\")) {\n    if (el.getBoundingClientRect().top === 0) el.setAttribute(\"data-app-region\", \"drag\");\n  }\n};\ndesktopFrame();\nnew MutationObserver(desktopFrame).observe(document.documentElement, { childList: true, subtree: true, attributes: true, attributeFilter: [\"data-web\"] });\n\n// ---- Usage in the menu bar ---------------------------------------------------------------------------------------\n// claude.ai's own usage page reads /api/organizations/<account>/usage; this reads the same, every few minutes.\n// Claude Design has no meter of its own: it uses the plan's session and weekly limits.\nconst EVERY = 5 * 60 * 1000;\nconst cookie = (name) => document.cookie.split(\"; \").find((c) => c.startsWith(name + \"=\"))?.slice(name.length + 1);\nconst until = (iso) => {\n  const minutes = Math.ceil((new Date(iso) - Date.now()) / 60000);\n  if (!(minutes > 0)) return \"now\";\n  if (minutes < 60) return `in ${minutes} min`;\n  if (minutes < 1440) return `in ${Math.floor(minutes / 60)} h` + (minutes % 60 ? ` ${minutes % 60} min` : \"\");\n  const hours = Math.floor(minutes / 60);\n  return `in ${Math.floor(hours / 24)} d` + (hours % 24 ? ` ${hours % 24} h` : \"\");\n};\nconst bar = (percent) => \"▰\".repeat(Math.round(percent / 10)) + \"▱\".repeat(10 - Math.round(percent / 10));\n\nconst meters = (u) => {\n  const out = [];\n  if (typeof u.five_hour?.utilization === \"number\") out.push({ title: \"Current session\", percent: u.five_hour.utilization, resets: u.five_hour.resets_at });\n  if (typeof u.seven_day?.utilization === \"number\") out.push({ title: \"This week\", percent: u.seven_day.utilization, resets: u.seven_day.resets_at });\n  for (const l of u.limits || []) {\n    const model = l.kind === \"weekly_scoped\" && l.scope?.model?.display_name;\n    if (model && typeof l.percent === \"number\") out.push({ title: `This week, ${model}`, percent: l.percent, resets: l.resets_at });\n  }\n  return out;\n};\n\nconst show = (list) => {\n  const top = list.reduce((a, m) => (m.percent > a.percent ? m : a), list[0]);\n  const lines = list.flatMap((m) => [\n    { title: `${m.title}  ${Math.round(m.percent)}%` },\n    { title: `${bar(m.percent)}  ${m.resets ? \"resets \" + until(m.resets) : \"\"}` },\n  ]);\n  appy.tray.set({\n    title: `${Math.round(top.percent)}%`,\n    progress: top.percent / 100,\n    tooltip: `Claude usage: ${top.title.toLowerCase()} ${Math.round(top.percent)}%`,\n    menu: [...lines, { separator: true }, { id: \"usage\", title: \"Usage Settings…\" }, { id: \"refresh\", title: \"Refresh\" }],\n  });\n};\n\nlet failures = 0;\nconst refresh = async () => {\n  if (!window.appy?.capabilities.includes(\"tray\")) return;\n  const org = cookie(\"lastActiveOrg\");\n  if (!org) return appy.tray.set({ title: \"–\", progress: 0, menu: [{ title: \"Sign in to see usage\" }] });\n  try {\n    const r = await fetch(`/api/organizations/${encodeURIComponent(org)}/usage`, { credentials: \"include\", headers: { accept: \"application/json\" } });\n    if (!r.ok) throw new Error(\"HTTP \" + r.status);\n    const list = meters(await r.json());\n    if (list.length) show(list);\n    failures = 0;\n  } catch (e) {\n    // Leave the last numbers up through a blip; say so only when it keeps failing.\n    if (++failures >= 3) appy.tray.set({ title: \"?\", progress: 0, menu: [{ title: \"Couldn't read usage\" }, { id: \"refresh\", title: \"Try Again\" }] });\n  }\n};\n\nappy.tray.onSelect((id) => {\n  if (id === \"usage\") location.assign(\"/settings/usage\");\n  if (id === \"refresh\") refresh();\n});\nrefresh();\nsetInterval(refresh, EVERY);\n// After a sleep the timer is late; catch up as soon as the page is looked at.\ndocument.addEventListener(\"visibilitychange\", () => { if (!document.hidden) refresh(); });\n"
  },
  {
   "id": "claude",
   "name": "Claude",
   "url": "https://claude.ai/",
   "category": "AI",
   "keywords": [
    "ai",
    "chat",
    "anthropic",
    "assistant"
   ],
   "commands": [
    {
     "id": "new",
     "title": "New Chat",
     "url": "https://claude.ai/new"
    },
    {
     "id": "recents",
     "title": "Recent Chats",
     "url": "https://claude.ai/recents"
    }
   ]
  },
  {
   "id": "discord",
   "name": "Discord",
   "url": "https://discord.com/channels/@me",
   "scope": "https://discord.com/",
   "category": "Communication",
   "keywords": [
    "chat",
    "voice",
    "servers",
    "gaming"
   ],
   "badge": "title"
  },
  {
   "id": "excalidraw",
   "name": "Excalidraw",
   "url": "https://excalidraw.com/",
   "category": "Design",
   "keywords": [
    "whiteboard",
    "sketch",
    "diagram",
    "draw"
   ]
  },
  {
   "id": "figma",
   "name": "Figma",
   "url": "https://www.figma.com/files/",
   "scope": "https://www.figma.com/",
   "category": "Design",
   "keywords": [
    "design",
    "prototype",
    "ui",
    "vector"
   ],
   "window": {
    "width": 1440,
    "height": 900
   }
  },
  {
   "id": "gemini",
   "name": "Gemini",
   "url": "https://gemini.google.com/app",
   "scope": "https://gemini.google.com/",
   "category": "AI",
   "keywords": [
    "ai",
    "chat",
    "assistant",
    "google"
   ],
   "commands": [
    {
     "id": "new",
     "title": "New Chat",
     "url": "https://gemini.google.com/app"
    }
   ]
  },
  {
   "id": "github",
   "name": "GitHub",
   "url": "https://github.com/",
   "category": "Developer",
   "keywords": [
    "code",
    "git",
    "repositories",
    "pull requests"
   ],
   "commands": [
    {
     "id": "notifications",
     "title": "Notifications",
     "url": "https://github.com/notifications"
    },
    {
     "id": "pulls",
     "title": "Pull Requests",
     "url": "https://github.com/pulls",
     "keywords": [
      "prs",
      "review"
     ]
    },
    {
     "id": "issues",
     "title": "Issues",
     "url": "https://github.com/issues"
    },
    {
     "id": "new-repo",
     "title": "New Repository",
     "url": "https://github.com/new",
     "keywords": [
      "create"
     ]
    }
   ]
  },
  {
   "id": "gmail",
   "name": "Gmail",
   "url": "https://mail.google.com/mail/u/0/",
   "scope": "https://mail.google.com/",
   "category": "Communication",
   "keywords": [
    "mail",
    "email",
    "google"
   ],
   "badge": "title",
   "commands": [
    {
     "id": "compose",
     "title": "Compose Email",
     "url": "https://mail.google.com/mail/u/0/?view=cm&fs=1&tf=1",
     "keywords": [
      "new",
      "write",
      "mail"
     ]
    },
    {
     "id": "inbox",
     "title": "Inbox",
     "url": "https://mail.google.com/mail/u/0/#inbox"
    },
    {
     "id": "starred",
     "title": "Starred",
     "url": "https://mail.google.com/mail/u/0/#starred"
    }
   ]
  },
  {
   "id": "google-calendar",
   "name": "Google Calendar",
   "url": "https://calendar.google.com/calendar/u/0/r",
   "scope": "https://calendar.google.com/",
   "category": "Productivity",
   "keywords": [
    "calendar",
    "events",
    "schedule",
    "google"
   ],
   "commands": [
    {
     "id": "new-event",
     "title": "New Event",
     "url": "https://calendar.google.com/calendar/u/0/r/eventedit",
     "keywords": [
      "create",
      "meeting"
     ]
    },
    {
     "id": "today",
     "title": "Today",
     "url": "https://calendar.google.com/calendar/u/0/r/day"
    },
    {
     "id": "week",
     "title": "This Week",
     "url": "https://calendar.google.com/calendar/u/0/r/week"
    }
   ],
   "icon": "https://www.gstatic.com/images/branding/product/2x/calendar_2020q4_512dp.png"
  },
  {
   "id": "google-docs",
   "name": "Google Docs",
   "url": "https://docs.google.com/document/u/0/",
   "scope": "https://docs.google.com/",
   "category": "Productivity",
   "keywords": [
    "documents",
    "sheets",
    "slides",
    "writing",
    "google"
   ],
   "also": [
    "https://drive.google.com"
   ],
   "commands": [
    {
     "id": "new-doc",
     "title": "New Document",
     "url": "https://docs.google.com/document/create",
     "keywords": [
      "create",
      "write"
     ]
    },
    {
     "id": "new-sheet",
     "title": "New Spreadsheet",
     "url": "https://docs.google.com/spreadsheets/create",
     "keywords": [
      "create",
      "sheets"
     ]
    },
    {
     "id": "new-slides",
     "title": "New Presentation",
     "url": "https://docs.google.com/presentation/create",
     "keywords": [
      "create",
      "slides",
      "deck"
     ]
    },
    {
     "id": "sheets",
     "title": "Sheets",
     "url": "https://docs.google.com/spreadsheets/u/0/"
    },
    {
     "id": "slides",
     "title": "Slides",
     "url": "https://docs.google.com/presentation/u/0/"
    }
   ],
   "icon": "https://www.gstatic.com/images/branding/product/2x/docs_2020q4_512dp.png"
  },
  {
   "id": "google-drive",
   "name": "Google Drive",
   "url": "https://drive.google.com/drive/u/0/my-drive",
   "scope": "https://drive.google.com/",
   "category": "Productivity",
   "keywords": [
    "files",
    "storage",
    "google"
   ],
   "also": [
    "https://docs.google.com"
   ],
   "commands": [
    {
     "id": "recent",
     "title": "Recent Files",
     "url": "https://drive.google.com/drive/u/0/recent"
    },
    {
     "id": "shared",
     "title": "Shared with Me",
     "url": "https://drive.google.com/drive/u/0/shared-with-me"
    },
    {
     "id": "starred",
     "title": "Starred",
     "url": "https://drive.google.com/drive/u/0/starred"
    }
   ]
  },
  {
   "id": "google-keep",
   "name": "Google Keep",
   "url": "https://keep.google.com/",
   "category": "Productivity",
   "keywords": [
    "notes",
    "lists",
    "google"
   ],
   "icon": "https://www.gstatic.com/images/branding/product/2x/keep_2020q4_512dp.png"
  },
  {
   "id": "google-meet",
   "name": "Google Meet",
   "url": "https://meet.google.com/",
   "category": "Communication",
   "keywords": [
    "video",
    "call",
    "meeting",
    "google"
   ],
   "commands": [
    {
     "id": "new",
     "title": "Start a Meeting",
     "url": "https://meet.google.com/new",
     "keywords": [
      "call",
      "instant"
     ]
    }
   ]
  },
  {
   "id": "google-photos",
   "name": "Google Photos",
   "url": "https://photos.google.com/",
   "category": "Media",
   "keywords": [
    "pictures",
    "images",
    "google"
   ]
  },
  {
   "id": "instagram",
   "name": "Instagram",
   "url": "https://www.instagram.com/",
   "category": "Social",
   "keywords": [
    "photos",
    "reels",
    "meta"
   ],
   "badge": "title",
   "commands": [
    {
     "id": "messages",
     "title": "Messages",
     "url": "https://www.instagram.com/direct/inbox/",
     "keywords": [
      "dm"
     ]
    }
   ]
  },
  {
   "id": "linear",
   "name": "Linear",
   "url": "https://linear.app/",
   "category": "Developer",
   "keywords": [
    "issues",
    "tracker",
    "projects",
    "tasks"
   ]
  },
  {
   "id": "notion",
   "name": "Notion",
   "url": "https://www.notion.so/",
   "category": "Productivity",
   "keywords": [
    "notes",
    "wiki",
    "docs",
    "workspace"
   ],
   "icon": "https://www.notion.so/front-static/logo-ios.png"
  },
  {
   "id": "perplexity",
   "name": "Perplexity",
   "url": "https://www.perplexity.ai/",
   "category": "AI",
   "keywords": [
    "ai",
    "search",
    "answers"
   ]
  },
  {
   "id": "proton-mail",
   "name": "Proton Mail",
   "url": "https://mail.proton.me/u/0/inbox",
   "scope": "https://mail.proton.me/",
   "category": "Communication",
   "keywords": [
    "mail",
    "email",
    "private",
    "encrypted"
   ],
   "badge": "title"
  },
  {
   "id": "reddit",
   "name": "Reddit",
   "url": "https://www.reddit.com/",
   "category": "Social",
   "keywords": [
    "forums",
    "communities",
    "news"
   ]
  },
  {
   "id": "telegram",
   "name": "Telegram",
   "url": "https://web.telegram.org/a/",
   "scope": "https://web.telegram.org/",
   "category": "Communication",
   "keywords": [
    "chat",
    "messages"
   ],
   "window": {
    "width": 1100,
    "height": 760
   }
  },
  {
   "id": "todoist",
   "name": "Todoist",
   "url": "https://app.todoist.com/app/",
   "scope": "https://app.todoist.com/",
   "category": "Productivity",
   "keywords": [
    "tasks",
    "todo",
    "lists"
   ],
   "commands": [
    {
     "id": "today",
     "title": "Today",
     "url": "https://app.todoist.com/app/today"
    },
    {
     "id": "inbox",
     "title": "Inbox",
     "url": "https://app.todoist.com/app/inbox"
    },
    {
     "id": "upcoming",
     "title": "Upcoming",
     "url": "https://app.todoist.com/app/upcoming"
    }
   ]
  },
  {
   "id": "trello",
   "name": "Trello",
   "url": "https://trello.com/",
   "category": "Productivity",
   "keywords": [
    "boards",
    "kanban",
    "tasks",
    "atlassian"
   ]
  },
  {
   "id": "whatsapp",
   "name": "WhatsApp",
   "url": "https://web.whatsapp.com/",
   "category": "Communication",
   "keywords": [
    "chat",
    "messages",
    "meta"
   ],
   "badge": "title",
   "window": {
    "width": 1100,
    "height": 760
   }
  },
  {
   "id": "x",
   "name": "X",
   "url": "https://x.com/home",
   "scope": "https://x.com/",
   "category": "Social",
   "keywords": [
    "twitter",
    "posts",
    "tweets"
   ],
   "badge": "title",
   "commands": [
    {
     "id": "post",
     "title": "New Post",
     "url": "https://x.com/compose/post",
     "keywords": [
      "tweet",
      "write"
     ]
    },
    {
     "id": "notifications",
     "title": "Notifications",
     "url": "https://x.com/notifications"
    },
    {
     "id": "messages",
     "title": "Messages",
     "url": "https://x.com/messages",
     "keywords": [
      "dm"
     ]
    }
   ]
  },
  {
   "id": "youtube-music",
   "name": "YouTube Music",
   "url": "https://music.youtube.com/",
   "category": "Media",
   "keywords": [
    "music",
    "songs",
    "player",
    "google"
   ],
   "commands": [
    {
     "id": "library",
     "title": "Library",
     "url": "https://music.youtube.com/library"
    },
    {
     "id": "explore",
     "title": "Explore",
     "url": "https://music.youtube.com/explore"
    }
   ]
  },
  {
   "id": "youtube",
   "name": "YouTube",
   "url": "https://www.youtube.com/",
   "category": "Media",
   "keywords": [
    "video",
    "watch",
    "google"
   ],
   "commands": [
    {
     "id": "subscriptions",
     "title": "Subscriptions",
     "url": "https://www.youtube.com/feed/subscriptions"
    },
    {
     "id": "history",
     "title": "History",
     "url": "https://www.youtube.com/feed/history"
    },
    {
     "id": "watch-later",
     "title": "Watch Later",
     "url": "https://www.youtube.com/playlist?list=WL"
    }
   ]
  }
 ]
}
