Files
hapi/website/src/const.ts
T
weishu 6e9b7928a1 feat(website): redesign in HAPI style with prerendered, crawlable pages
- Replace the Manus SPA with Vite SSR prerendering: / (en), /zh/ (zh) and a
  real 404, hydrated on the client with the locale taken from the URL
- Per-locale head: canonical, hreflang, Open Graph, JSON-LD (Organization,
  WebSite, SoftwareApplication, FAQPage), and a 1200x630 og image
- Warm HAPI look: brand coral on warm white, system fonts, light/dark, mascots
  from the App Store creative and current native screenshots (WebP)
- Show the real agent logos used in the web app, put App Store / Google Play
  badges in the hero and move Docs to the header
- Drop the pricing note from the home page; add a FAQ on why native apps are
  paid and that their source is open
- Remove react-helmet-async, i18next, wouter, framer-motion and other unused
  dependencies; add @lobehub/icons for the agent logos
- Serve /zh, 404 and the legacy /?lng=zh redirect from the Express server
2026-11-18 12:55:02 +08:00

37 lines
1.5 KiB
TypeScript

export const SITE_URL = "https://hapi.run";
export const GITHUB_URL = "https://github.com/tiann/hapi";
export const RELEASES_URL = `${GITHUB_URL}/releases`;
export const ISSUES_URL = `${GITHUB_URL}/issues`;
export const NPM_URL = "https://www.npmjs.com/package/@twsxtd/hapi";
export const APP_STORE_URL = "https://apps.apple.com/app/id6805699104";
export const GOOGLE_PLAY_URL = "https://play.google.com/store/apps/details?id=run.hapi.companion";
export const DOCS = {
home: "/docs/",
quickStart: "/docs/guide/quick-start",
agents: "/docs/guide/agents",
howItWorks: "/docs/guide/how-it-works",
nativeApps: "/docs/guide/native-apps",
whyHapi: "/docs/guide/why-hapi",
faq: "/docs/guide/faq",
privacy: "/docs/privacy",
};
export type AgentFlavor = "claude" | "codex" | "cursor" | "grok" | "opencode" | "kimi" | "copilot" | "agy" | "pi" | "dsh";
// Display names and flavor ids (shared/src/modes.ts) of the agents HAPI supports.
export const AGENTS: { name: string; flavor: AgentFlavor }[] = [
{ name: "Claude Code", flavor: "claude" },
{ name: "Codex", flavor: "codex" },
{ name: "Cursor Agent", flavor: "cursor" },
{ name: "Grok Build", flavor: "grok" },
{ name: "OpenCode", flavor: "opencode" },
{ name: "Kimi", flavor: "kimi" },
{ name: "GitHub Copilot", flavor: "copilot" },
{ name: "Antigravity", flavor: "agy" },
{ name: "Pi", flavor: "pi" },
{ name: "DeepSeek Harness", flavor: "dsh" },
];
export const SUPPORTED_AGENTS = AGENTS.map((agent) => agent.name);