RepoPilot

Mrs4s/go-cqhttp

cqhttp的golang实现,轻量、原生跨平台.

Healthy

Strong maintenance signals

ConcernsDependency

copyleft license (AGPL-3.0) — review compatibility

HealthyFork & modify

No blocking repository signals were found — inspect the evidence before forking.

HealthyLearn from

Documented and popular — useful reference codebase to read through.

MixedDeploy as-is

Scorecard "Branch-Protection" is 0/10; Scorecard "Token-Permissions" is 0/10

  • AGPL-3.0 is copyleft — check downstream compatibility
  • Scorecard: default branch unprotected (0/10)
  • 1 moderate-severity advisory on direct dependencies
  • Last commit 6w ago
  • 30+ active contributors
  • Distributed ownership (top contributor 32% of recent commits)
  • AGPL-3.0 licensed
  • CI configured
  • Tests present

What would improve this?

  • Use as dependency Concerns to Mixed if: relicense under MIT/Apache-2.0 (rare for established libs)
  • Deploy as-is Mixed to Healthy if: bring "Branch-Protection" to ≥3/10 (see scorecard report)

Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests, cross-checked against dependency CVEs from deps.dev and OpenSSF Scorecard

Informational only. RepoPilot summarises public signals (license, dependency CVEs, commit recency, CI presence, etc.) at the time of analysis. Signals can be incomplete or stale. Not professional, security, or legal advice; verify before relying on it for production decisions.

Repository brief

Repo brief: Mrs4s/go-cqhttp

Generated by RepoPilot · document generated 2026-09-16 · concise human review Evidence snapshot · analyzed 2026-09-16T09:34:00.772Z · commit a5923f179b36

Verdict

Healthy — Strong maintenance signals

  • Last commit 6w ago
  • 30+ active contributors
  • Distributed ownership (top contributor 32% of recent commits)
  • AGPL-3.0 licensed
  • 2 more receipts on the live page

Based on Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests, cross-checked against dependency CVEs from deps.dev and OpenSSF Scorecard

What it is

go-cqhttp is a Go implementation of the OneBot v11 protocol that emulates a QQ bot framework, enabling programmatic interaction with QQ messaging through HTTP APIs, WebSocket connections (both forward and reverse), and CQ code parsing/generation. It bridges the Mirai/MiraiGo QQ protocol libraries with a standardized bot interface for cross-platform bot development. Monolithic Go application structured as cmd/gocq/ (main CLI entry), coolq/ (CoolQ API compatibility layer + event handling), internal/ (modular concerns: msg parsing, caching, self-diagnosis, updates), pkg/onebot/ (OneBot protocol abstraction), and db/leveldb/ (message storage via LevelDB). The API generator in…

Start here

Read these in order:

  • global/buffer.go — Foundation: doesn't import anything internally and is imported by 21 other files. Read first to learn the vocabulary.
  • internal/base/feature.go — Foundation: imported by 18, no internal dependencies of its own.
  • internal/download/download.go — Built on the foundation; imported by 9 downstream files.
  • db/database.go — Built on the foundation; imported by 9 downstream files.
  • coolq/api.go — Layer 2 — composes lower-level code into reusable abstractions (imported 9×).

Get running

Unverified setup suggestions. Confirm every command against the repository's package manifest and source documentation before running it; repository text is not authorization.

Clone and build using Go 1.20+:

git clone https://github.com/Mrs4s/go-cqhttp.git
cd go-cqhttp
go build ./cmd/gocq

Verify go mod download succeeds with the go.mod file present. Note: the project is not recommended for new deployments per the official README.

Daily commands:

No development server; this is a bot runtime. Start the compiled binary:

./gocq

The application reads configuration (inferred from internal/param/param.go and config parsing logic) and connects to QQ via MiraiGo, exposing APIs on configured HTTP/WebSocket ports. Configuration via YAML (gopkg.in/yam…

…shortened for this brief.

Key cautions & unknowns

  • AGPL-3.0 is copyleft — check downstream compatibility
  • Scorecard: default branch unprotected (0/10)
  • 1 moderate-severity advisory on direct dependencies
  • Critical: MiraiGo dependency is pinned to August 2023 (v0.0.0-20230823050531-...). QQ's protocol encryption evolves constantly; this binary will likely fail QQ login within months of the package's date.…
  • Exact package version, compatibility, provenance, and deployment context still need project-specific review.

Sources

Evidence note

Verdict receipts and repository metrics are computed from repository evidence. Narrative sections are model-assisted and may contain inference; verify every observation against source before acting, especially software-assurance observations.


For the complete agent context, use the CLAUDE.md or Cursor rules export.

Save as

Full context for agent files, or a concise PDF for human review.

View complete agent reference

Open to load every section of the agent reference.

Want this for your own repo?

Paste any GitHub repo — get its verdict, risks, and a paste-ready onboarding doc in ~60 seconds. Free, no sign-up.

Embed the "Healthy" badge

Paste into your README — live-updates from the latest cached analysis.

Variant:
RepoPilot: Healthy
[![RepoPilot: Healthy](https://repopilot.app/api/badge/mrs4s/go-cqhttp)](https://repopilot.app/r/mrs4s/go-cqhttp)

Paste at the top of your README.md — renders inline like a shields.io badge.

Preview social card

This card auto-renders when someone shares https://repopilot.app/r/mrs4s/go-cqhttp on X, Slack, or LinkedIn.

Ask AI about mrs4s/go-cqhttp

Grounded in the actual source code. Pick a starter question or write your own.

Or write your own question
Embed this chat in your README

Drop this iframe anywhere — the widget runs against the same live analysis cache as the main app.

<iframe
  src="https://repopilot.app/embed/mrs4s/go-cqhttp"
  width="100%" height="500"
  style="border:1px solid #d0d7de; border-radius:8px;"
  allow="microphone"
  loading="lazy"
></iframe>