{"id":42028455,"url":"https://github.com/sevtin/lark","last_synced_at":"2026-01-26T04:12:56.897Z","repository":{"id":95913071,"uuid":"600303827","full_name":"sevtin/lark","owner":"sevtin","description":"Lark是一个开源的Golang IM服务端项目，具有高性能和可扩展等特性。采用微服务架构设计，支持集群和水平扩展，能够满足高并发业务需求，并实现了万人群消息的秒达。","archived":false,"fork":false,"pushed_at":"2024-10-21T00:55:48.000Z","size":2556,"stargazers_count":602,"open_issues_count":6,"forks_count":135,"subscribers_count":18,"default_branch":"main","last_synced_at":"2024-10-21T04:19:04.245Z","etag":null,"topics":["chat","chatserver","go","gochat","goim","im","imserver","lark","talk","websocket"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sevtin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-11T04:16:30.000Z","updated_at":"2024-10-21T02:45:59.000Z","dependencies_parsed_at":"2023-12-19T07:32:20.790Z","dependency_job_id":"889d6d35-b82f-4f60-8d83-db61528bebaf","html_url":"https://github.com/sevtin/lark","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sevtin/lark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sevtin%2Flark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sevtin%2Flark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sevtin%2Flark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sevtin%2Flark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sevtin","download_url":"https://codeload.github.com/sevtin/lark/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sevtin%2Flark/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28766608,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T03:54:34.369Z","status":"ssl_error","status_checked_at":"2026-01-26T03:54:33.031Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chat","chatserver","go","gochat","goim","im","imserver","lark","talk","websocket"],"created_at":"2026-01-26T04:12:56.802Z","updated_at":"2026-01-26T04:12:56.888Z","avatar_url":"https://github.com/sevtin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Lark是一个开源的Golang IM服务端项目，具有高性能和可扩展等特性。采用微服务架构设计，支持集群和水平扩展，能够满足高并发业务需求，并实现了万人群消息的秒达。\n\n\u003cimg src=\"assets/images/lark-logo.png\" height=\"119\" width=\"309\"/\u003e\n\n### 技术选型及开发环境\n| 序号 | 技术                   | 说明            | 官网                                         |\n|------|------------------------|------------------|----------------------------------------------|\n| 1    | Go                     | 开发语言          | https://go.dev/                              |\n| 2    | Lua                    | Redis Lua 脚本    | http://www.lua.org/                          |\n| 3    | Mysql                  | 关系型数据库       | https://www.mysql.com/                       |\n| 4    | MongoDB                | NoSql数据库      | https://www.mongodb.com                      |\n| 5    | Elasticsearch          | 搜索和分析引擎     | https://www.elastic.co/cn/elasticsearch/     |\n| 6    | Redis                  | KV 数据库         | https://redis.io/                            |\n| 7    | Kafka                  | 消息中间件         | https://kafka.apache.org/                    |\n| 8    | RabbitMQ               | 消息中间件         | https://www.rabbitmq.com/                    |\n| 9    | ZooKeeper              | 分布式协调服务      | https://zookeeper.apache.org/                |\n| 10   | Docker                 | 应用容器引擎        | https://www.docker.com                       |\n| 11   | MinIO                  | 对象存储           | https://min.io/                              |\n| 12   | Nginx                  | Web/反向代理       | https://www.nginx.com/                       |\n| 13   | JWT                    | JWT登录支持        | https://github.com/golang-jwt/jwt           |\n| 14   | Validator              | 验证框架           | https://github.com/go-playground/validator   |\n| 15   | Jaeger                 | 链路追踪           | https://www.jaegertracing.io                 |\n| 16   | Prometheus             | 系统监控和报警系统   | https://prometheus.io/                       |\n| 17   | Grafana                | 指标数据的可视化展现 | https://grafana.com/                         |\n| 18   | ETCD                   | 服务发现           | https://etcd.io/                             |\n| 19   | Kibana                 | 数据分析和可视化平台 | https://www.elastic.co/cn/kibana/            |\n| 20   | Logstash               | 数据收集引擎         | https://www.elastic.co/cn/logstash/          |\n| 21   | Filebeat               | 日志采集器           | https://www.elastic.co/cn/beats/filebeat     |\n| 22   | Flink                  | 通用数据处理平台      | https://flink.apache.org/                    |\n| 23   | ShardingSphere-Proxy   | 数据库中间件         | https://shardingsphere.apache.org/           |\n| 24   | Mycat                  | 数据库中间件【已弃用】 | http://mycatone.top/                         |\n| 25   | Gin                    | Web 框架           | https://github.com/gin-gonic/gin             |\n| 26   | gRpc                   | 远程过程调用系统      | https://pkg.go.dev/google.golang.org/grpc    |\n| 27   | GORM                   | ORM                | https://gorm.io/                             |\n\n\n\n![](assets/images/lark-architecture-diagram.png)\n\n\n### 单机版运行步骤\n\n```\nStep 1\n下载单机版分支代码（注:该分支代码已停止维护）\ngit clone -b standalone git@github.com:sevtin/lark.git\n\nStep 2\n创建日志文件目录,并设置权限\n/var/log/lark\n\nStep 3\n创建docker容器数据卷目录\n/Volumes/data/lark\n\nStep 4\n修改host文件\nlark/configs/docker/host.txt\n\nStep 5\n执行容器启动脚本\n./lark/build/run/docker-up.sh\n\nStep 6\nhttp://127.0.0.1:9001/identity/account/new-account\nMinio Create Service Account\nAccess Key: SEv0QKlwqQ36M1eV\nSecret Key: sZVZR1RD8Pcy73NANvk6vbMmoDsGSSOk\n\nCreate Buckets And Change Access Policy\n[\"documents\",\"photos\",\"videos\"]\nAccess Policy: Public\n\nmkdir -p /private/tmp/lark/photos\n\nupload files to photos\n./lark/assets/images/avatar/06b73ea9-0c61-4ea6-b3e5-f89d89d53add.jpeg\n./lark/assets/images/avatar/6b546cc7-5e4a-4d31-8017-1e5853f88a1c.jpeg\n./lark/assets/images/avatar/b11883ba-f3d7-4164-a593-700c177c37c8.jpeg\n\nupdate CONST_AVATAR_SMALL/CONST_AVATAR_MEDIUM/CONST_AVATAR_LARGE/SYSTEM_ACCOUNT_AVATAR_CONTACT_INVITE\n\nStep 7\n通过Apache Flink同步数据到Elasticsearch\n\nStep 8\n执行build脚本\n./lark/scripts/build.sh\n\nStep 9\n执行项目启动脚本\n./lark/build/run/run_all.sh\n\n```\n\n### 支持作者\n维护这个项目需要花费大量的时间和精力来保持其更新和改进。如果你愿意支持我们，你的捐款将帮助我们继续保持项目的活跃性。\n\u003ccenter\u003e\n\u003cimg src=\"assets/images/WeChatPay.jpg\" alt=\"WeChatPay\" width=\"30%\"/\u003e\n\u003cimg src=\"assets/images/Alipay.jpg\" alt=\"Alipay\" width=\"30%\"/\u003e\n\u003c/center\u003e\n\n### 基于Lark项目编写的加密币交易所\nhttps://eipistar.dpdns.org/\n\nhttps://github.com/sevtin/coinex\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsevtin%2Flark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsevtin%2Flark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsevtin%2Flark/lists"}