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.

feat(web): add a Lark group for users who can't join on WeChat

leepokaif043d09e19b5
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
index bf1dd43d..214d80a4 100644
--- a/CODE_OF_CONDUCT.md
+++ b/CODE_OF_CONDUCT.md
@@ -74,7 +74,7 @@ This enforcement ladder is intended as a guideline. It does not limit the abilit
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public or other spaces. Examples of representing our community include using an official email address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
-Codync's community spaces are the GitHub repository (issues and pull requests) and the Codync Discord server.
+Codync's community spaces are the GitHub repository (issues and pull requests), the Codync Discord server, and the WeChat and Lark groups for users in China.
## Attribution
diff --git a/README.md b/README.md
index c943bc78..bab54d11 100644
--- a/README.md
+++ b/README.md
@@ -23,7 +23,7 @@ macOS: Apple Silicon + Intel (DMG) · Windows: x64 installer · Linux: AppImage
[![App Store](https://img.shields.io/badge/App_Store-iOS-0D96F6?logo=apple&logoColor=white)](https://apps.apple.com/app/codync/id6760984418)
[![Homebrew](https://img.shields.io/badge/Homebrew-codync-FBB040?logo=homebrew&logoColor=white)](https://github.com/leepokai/homebrew-codync)
[![Discord](https://img.shields.io/badge/Discord-join-5865F2?logo=discord&logoColor=white)](https://discord.gg/KBAX3Qznxh)
-[![WeChat China](https://img.shields.io/badge/WeChat-China_community-07C160?logo=wechat&logoColor=white)](#community)
+[![WeChat and Lark China](https://img.shields.io/badge/WeChat_/_Lark-China_community-07C160?logo=wechat&logoColor=white)](#community)
[![Release](https://img.shields.io/github/v/release/leepokai/Codync?color=black)](https://github.com/leepokai/Codync/releases/latest)
[![License: Apache 2.0](https://img.shields.io/badge/license-Apache%202.0-blue)](LICENSE)
<br>
@@ -245,16 +245,16 @@ Clients and the host each name the oldest version of the other they still work w
## Community
-| Discord | WeChat · China community |
-| --- | --- |
-| [Join Discord](https://discord.gg/KBAX3Qznxh) for questions, help and feedback. | A community for Codync users in China to share tips, ask questions and give feedback. Scan with regular WeChat; WeCom is not required. |
-| | <img src="web/public/wechat-group.png" width="200" alt="QR code to join the Codync WeChat community for users in China"> |
-| | [Download the QR code](web/public/wechat-group.png) · [WeChat community page](https://www.codync.dev/wechat) |
+| Discord | WeChat · China community | Lark · if you can't join on WeChat |
+| --- | --- | --- |
+| [Join Discord](https://discord.gg/KBAX3Qznxh) for questions, help and feedback. | A community for Codync users in China to share tips, ask questions and give feedback. Scan with regular WeChat; WeCom is not required. | If you can't join the WeChat group, join here instead. Scan with the Lark app; you need a Lark account. |
+| | <img src="web/public/wechat-group.png" width="200" alt="QR code to join the Codync WeChat community for users in China"> | <img src="web/public/lark-group.png" width="200" alt="QR code to join the Codync Lark community for users in China"> |
+| | [Download the QR code](web/public/wechat-group.png) · [WeChat community page](https://www.codync.dev/wechat) | [Download the QR code](web/public/lark-group.png) · [Open in Lark](https://applink.larksuite.com/client/chat/chatter/add_by_link?link_token=210q827f-a135-4b31-8be0-d4baf5lgh4cj&qr_code=true) |
## Contact
-- Questions and bug reports: [GitHub Issues](https://github.com/leepokai/Codync/issues), [Discord](https://discord.gg/KBAX3Qznxh) or [WeChat (China)](#community)
+- Questions and bug reports: [GitHub Issues](https://github.com/leepokai/Codync/issues), [Discord](https://discord.gg/KBAX3Qznxh) or [WeChat or Lark (China)](#community)
- Security issues: report privately as described in [SECURITY.md](SECURITY.md) (GitHub private reporting or email)
- Community rules: [Code of Conduct](CODE_OF_CONDUCT.md)
diff --git a/docs/reference/analytics-events.md b/docs/reference/analytics-events.md
index b453d573..8ff87a0f 100644
--- a/docs/reference/analytics-events.md
+++ b/docs/reference/analytics-events.md
@@ -162,8 +162,8 @@ codync.dev counts visits without cookies or anything stored on the visitor's dev
(posthog-js `cookieless_mode: 'always'`, which needs the project's *cookieless server hash mode*;
without it PostHog drops these events): `$pageview`, `$pageleave` (time on page and scroll depth), `$web_vitals` (load speed, without attribution), `download_clicked` (`platform`:
`mac`/`windows`/`linux`/`ios`; `linux` counts the Linux download links (x86_64 and arm64) and copies of the install command; the Homebrew `mac` is a copy of its command),
-`link_opened` (`link`; `android_test` is the Google Play button, which opens the Android tester sign-up form). One document-level click listener in `web/app/analytics.tsx` reads each
-link's `href`, so a new link is counted without code; the film counts as `demo` when focus moves
+`link_opened` (`link`: `issues`, `github`, `discord`, `lark`, `product_hunt`, `ko_fi`, `demo`, `android_test`, which is the Google Play button that opens the Android tester sign-up form, and `lark_qr` / `wechat_qr`, the QR code downloads on the China community page). One document-level click listener in `web/app/analytics.tsx` matches each
+link's `href` against its `links` table, so a new link needs a row there to be counted; the film counts as `demo` when focus moves
into its frame. Events go through the site's own `/e` path, which `web/vercel.json` rewrites to
PostHog, so content blockers don't drop them; only Vercel has the rewrite, so `next dev` on a LAN
address sends nothing that arrives.
diff --git a/web/app/analytics.tsx b/web/app/analytics.tsx
index 98d1314d..e2104370 100644
--- a/web/app/analytics.tsx
+++ b/web/app/analytics.tsx
@@ -3,7 +3,7 @@
import { useEffect } from "react";
import posthog from "posthog-js";
import "posthog-js/dist/web-vitals"; // Bundled, as external loading is off below.
-import { ANDROID_TEST, APP_STORE, DISCORD, DMG, GITHUB, KO_FI, LINUX, LINUX_ARM, PRODUCT_HUNT, WINDOWS } from "./links";
+import { ANDROID_TEST, APP_STORE, DISCORD, DMG, GITHUB, KO_FI, LARK_JOIN, LARK_QR, LINUX, LINUX_ARM, PRODUCT_HUNT, WECHAT_QR, WINDOWS } from "./links";
// Cookieless counts for codync.dev (docs/reference/analytics-events.md, Website). Nothing is
// stored on the device; PostHog's server hashes the visitor per day.
@@ -19,6 +19,9 @@ const links: [prefix: string, link: string][] = [
[`${GITHUB}/issues`, "issues"],
[GITHUB, "github"],
[DISCORD, "discord"],
+ [LARK_JOIN, "lark"],
+ [LARK_QR, "lark_qr"],
+ [WECHAT_QR, "wechat_qr"],
[PRODUCT_HUNT, "product_hunt"],
[KO_FI, "ko_fi"],
[ANDROID_TEST, "android_test"],
diff --git a/web/app/components/questions.tsx b/web/app/components/questions.tsx
index c6cf24da..da42b745 100644
--- a/web/app/components/questions.tsx
+++ b/web/app/components/questions.tsx
@@ -1,7 +1,7 @@
import Link from "next/link";
import { DiscordLogo, Plus, WechatLogo } from "@phosphor-icons/react/ssr";
import Reveal from "./reveal";
-import { DISCORD, WECHAT } from "../links";
+import { CHINA_COMMUNITY, DISCORD } from "../links";
const questions: [string, string][] = [
[
@@ -71,9 +71,9 @@ export default function Questions() {
<DiscordLogo size={20} aria-hidden="true" />
<span className="underline underline-offset-4">Ask on Discord</span>
</a>
- <Link href={WECHAT} className="inline-flex items-center gap-2 hover:text-white" lang="zh-CN">
+ <Link href={CHINA_COMMUNITY} className="inline-flex items-center gap-2 hover:text-white" lang="zh-CN">
<WechatLogo size={20} aria-hidden="true" />
- <span className="underline underline-offset-4">微信中国用户交流群</span>
+ <span className="underline underline-offset-4">微信 / Lark 中国用户交流群</span>
</Link>
</div>
</Reveal>
diff --git a/web/app/components/site-chrome.tsx b/web/app/components/site-chrome.tsx
index 706bc8c1..cc2c72f7 100644
--- a/web/app/components/site-chrome.tsx
+++ b/web/app/components/site-chrome.tsx
@@ -2,7 +2,7 @@ import Image from "next/image";
import Link from "next/link";
import { Coffee, DiscordLogo, GithubLogo, WechatLogo } from "@phosphor-icons/react/ssr";
import DownloadButton from "./download-button";
-import { DISCORD, EMAIL, GITHUB, KO_FI, WECHAT } from "../links";
+import { CHINA_COMMUNITY, DISCORD, EMAIL, GITHUB, KO_FI } from "../links";
const nav: [href: string, label: string][] = [
["/#product", "Product"],
@@ -47,9 +47,9 @@ export function SiteHeader() {
<DiscordLogo size={20} />
</a>
<Link
- href={WECHAT}
- aria-label="WeChat community for users in China"
- title="微信中国用户交流群"
+ href={CHINA_COMMUNITY}
+ aria-label="WeChat and Lark community for users in China"
+ title="微信 / Lark 中国用户交流群"
className="hidden rounded-full p-2 text-neutral-400 transition hover:text-neutral-100 sm:block"
>
<WechatLogo size={20} />
@@ -80,7 +80,7 @@ const footerLinks: [label: string, href: string][] = [
["Privacy", "/privacy"],
["Code signing policy", "/code-signing"],
["Discord", DISCORD],
- ["WeChat (China)", WECHAT],
+ ["WeChat / Lark (China)", CHINA_COMMUNITY],
["Ko-fi", KO_FI],
["Contact", `mailto:${EMAIL}`],
];
diff --git a/web/app/links.ts b/web/app/links.ts
index dc85a57d..9fe93564 100644
--- a/web/app/links.ts
+++ b/web/app/links.ts
@@ -16,8 +16,12 @@ export const APP_STORE = "https://apps.apple.com/app/codync/id6760984418";
export const ANDROID_TEST = "https://docs.google.com/forms/d/e/1FAIpQLScvtCO7edjgFHKozWbHQ-9dDIJturifAA8znvhLVfCtRzu8cg/viewform";
export const GITHUB = "https://github.com/leepokai/Codync";
export const DISCORD = "https://discord.gg/KBAX3Qznxh";
-export const WECHAT = "/wechat";
+// Lists the WeChat and Lark groups; the route stays /wechat because the README and shared links point to it.
+export const CHINA_COMMUNITY = "/wechat";
export const WECHAT_QR = "/wechat-group.png";
+export const LARK_QR = "/lark-group.png";
+// The join link inside the Lark group's permanent QR code.
+export const LARK_JOIN = "https://applink.larksuite.com/client/chat/chatter/add_by_link?link_token=210q827f-a135-4b31-8be0-d4baf5lgh4cj&qr_code=true";
// Donation page.
export const KO_FI = "https://ko-fi.com/leepokai";
export const EMAIL = "[email protected]";
diff --git a/web/app/wechat/page.tsx b/web/app/wechat/page.tsx
index 04ee21ba..e4bf2e11 100644
--- a/web/app/wechat/page.tsx
+++ b/web/app/wechat/page.tsx
@@ -1,47 +1,78 @@
import type { Metadata } from "next";
import Image from "next/image";
import { SiteFooter, SiteHeader } from "../components/site-chrome";
-import { DISCORD, WECHAT, WECHAT_QR } from "../links";
+import { CHINA_COMMUNITY, DISCORD, LARK_JOIN, LARK_QR, WECHAT_QR } from "../links";
export const metadata: Metadata = {
- title: "微信中国用户交流群 · WeChat community for China",
- description: "加入 Codync 微信中国用户交流群,交流使用经验、提问与反馈。使用普通微信扫码即可,无需安装企业微信。",
- alternates: { canonical: WECHAT },
+ title: "中国用户交流群 · WeChat and Lark community for China",
+ description: "加入 Codync 中国用户交流群,交流使用经验、提问与反馈。使用普通微信扫码即可,无需安装企业微信;加入不了的话,可以加入飞书(Lark)群。",
+ alternates: { canonical: CHINA_COMMUNITY },
};
-export default function WechatPage() {
+const groups = [
+ {
+ name: "微信",
+ join: "使用普通微信扫描二维码加入,无需安装企业微信。",
+ phone: "在手机上浏览?保存二维码后,在微信「扫一扫」中从相册选择图片。",
+ qr: WECHAT_QR,
+ file: "codync-wechat-group.png",
+ },
+ {
+ name: "飞书(Lark)",
+ join: "微信群加入不了的话,用 Lark App 扫描二维码加入。还没有账号的话,需要先下载并注册 Lark。",
+ phone: "在手机上浏览?直接点下方链接,在 Lark 中打开。",
+ qr: LARK_QR,
+ file: "codync-lark-group.png",
+ open: { href: LARK_JOIN, label: "在 Lark 中打开" },
+ },
+];
+
+const linkClass = "text-neutral-100 underline underline-offset-4 hover:text-white";
+
+export default function CommunityPage() {
return (
<>
<SiteHeader />
<main className="flex-1 px-4 py-16 sm:px-6 md:py-24" lang="zh-CN">
<div className="mx-auto max-w-2xl">
- <p className="text-sm font-medium text-neutral-400">Codync · WeChat community for China</p>
+ <p className="text-sm font-medium text-neutral-400">Codync · WeChat and Lark community for China</p>
<h1 className="mt-4 text-3xl font-semibold tracking-tight text-neutral-50 sm:text-4xl">
- 微信中国用户交流群
+ 中国用户交流群
</h1>
<p className="mt-5 text-lg leading-relaxed text-neutral-400">
- 和中国的 Codync 用户交流使用经验、提问与反馈。使用普通微信扫描下方二维码即可加入「Codync 交流群」,无需安装企业微信。
- </p>
- <div className="mt-8 w-fit max-w-full rounded-2xl bg-white p-4">
- <Image
- src={WECHAT_QR}
- alt="Codync 微信中国用户交流群入群二维码"
- width={396}
- height={396}
- className="h-auto w-72 max-w-full"
- />
- </div>
- <p className="mt-5 leading-relaxed text-neutral-400">
- 在手机上浏览?保存二维码后,在微信「扫一扫」中从相册选择图片。
+ 和中国的 Codync 用户交流使用经验、提问与反馈。请先加入微信群;如果加入不了,再加入飞书(Lark)群。
</p>
- <div className="mt-6 flex flex-wrap gap-x-6 gap-y-4 font-medium">
- <a href={WECHAT_QR} download="codync-wechat-group.png" className="text-neutral-100 underline underline-offset-4 hover:text-white">
- 下载入群二维码
- </a>
- <a href={DISCORD} className="text-neutral-300 underline underline-offset-4 hover:text-white" lang="en">
- Prefer Discord? Join us there
- </a>
+ <div className="mt-10 grid gap-12 sm:grid-cols-2 sm:gap-8">
+ {groups.map((group) => (
+ <section key={group.name}>
+ <h2 className="text-xl font-semibold text-neutral-50">{group.name}</h2>
+ <p className="mt-3 leading-relaxed text-neutral-400">{group.join}</p>
+ <div className="mt-5 w-fit max-w-full rounded-2xl bg-white p-4">
+ <Image
+ src={group.qr}
+ alt={`Codync ${group.name}中国用户交流群入群二维码`}
+ width={240}
+ height={240}
+ className="h-auto w-60 max-w-full"
+ />
+ </div>
+ <p className="mt-5 leading-relaxed text-neutral-400">{group.phone}</p>
+ <div className="mt-4 flex flex-wrap gap-x-6 gap-y-3 font-medium">
+ {group.open && (
+ <a href={group.open.href} className={linkClass}>
+ {group.open.label}
+ </a>
+ )}
+ <a href={group.qr} download={group.file} className={linkClass}>
+ 下载入群二维码
+ </a>
+ </div>
+ </section>
+ ))}
</div>
+ <a href={DISCORD} className="mt-12 inline-block font-medium text-neutral-300 underline underline-offset-4 hover:text-white" lang="en">
+ Prefer Discord? Join us there
+ </a>
</div>
</main>
<SiteFooter />
diff --git a/web/content/docs/getting-started.mdx b/web/content/docs/getting-started.mdx
index c2500605..dd62fafd 100644
--- a/web/content/docs/getting-started.mdx
+++ b/web/content/docs/getting-started.mdx
@@ -148,4 +148,4 @@ routine names, custom tool titles and message contents stay as written.
## Community and help
-Ask questions and share feedback on [Discord](https://discord.gg/KBAX3Qznxh), or join the [WeChat community for Codync users in China](/wechat) to exchange tips in Chinese. Scan the QR code with regular WeChat; you do not need WeCom.
+Ask questions and share feedback on [Discord](https://discord.gg/KBAX3Qznxh), or join the [community for Codync users in China](/wechat) to exchange tips in Chinese. Scan the WeChat QR code with regular WeChat; you do not need WeCom. If you can't join the WeChat group, scan the Lark QR code with the Lark app instead.
diff --git a/web/public/lark-group.png b/web/public/lark-group.png
new file mode 100644
index 00000000..e86bf582
Binary files /dev/null and b/web/public/lark-group.png differ
diff --git a/web/public/llms.txt b/web/public/llms.txt
index 74d06832..2f58a2a0 100644
--- a/web/public/llms.txt
+++ b/web/public/llms.txt
@@ -29,7 +29,7 @@ Key facts:
- [codync-mem](https://www.codync.dev/codync-mem): the open-source Rust crate behind the bots' memory (Markdown files the bot keeps, and the rules for who may change them)
- [Source code on GitHub](https://github.com/leepokai/Codync): README, install guide and docs
- [Discord](https://discord.gg/KBAX3Qznxh): community, help and feedback
-- [WeChat community for China](https://www.codync.dev/wechat): Chinese-language discussion, help and feedback; join with regular WeChat by scanning the QR code
+- [WeChat and Lark community for China](https://www.codync.dev/wechat): Chinese-language discussion, help and feedback; join by scanning the QR code with regular WeChat, or with the Lark app if the WeChat group can't be joined
- [User manual](https://www.codync.dev/docs): how to set up and use Codync, page by page
- [Getting started](https://www.codync.dev/docs/getting-started)
- [Bots](https://www.codync.dev/docs/bots) and [agents](https://www.codync.dev/docs/agents)