Skip to content

🤖 Open-source, local-first alternative to Grok Bot, OpenAI dots and Claude Duet. Your own AI bots on any model: GPT, Claude, Gemini, Grok, DeepSeek, Kimi, GLM and 70+ more through one Modelflare key. Reach them in the app, WeChat or Feishu; they remember you, work in the background, run commands and use your computer. Pay per use.

379 B
Raw Blame
/** Animate headings without splitting Korean words or Japanese loanwords mid-line. */
export function headingUnits(text: string, lang: string): string[] {
  if (lang === "zh") return Array.from(text);
  if (lang === "ja") return Array.from(new Intl.Segmenter("ja", { granularity: "word" }).segment(text), (part) => part.segment);
  return text.split(/(\s+)/).filter(Boolean);
}