Source: https://seerepo.com/compare/ccfos/nightingale/vs/Wei-Shaw/sub2api
Markdown source: https://seerepo.com/compare/ccfos/nightingale/vs/Wei-Shaw/sub2api.md
Description: nightingale and sub2api share 9 technologies: Gin, go-redis, pq, Redis, github.com/patrickmn/go-cache, Postgres, SQLite, MCP, and Model Context Protocol. Both are written in Go.

# nightingale vs sub2api

nightingale and sub2api share 9 technologies: Gin, go-redis, pq, Redis, github.com/patrickmn/go-cache, Postgres, SQLite, MCP, and Model Context Protocol. Both are written in Go.

- [ccfos/nightingale](https://seerepo.com/r/ccfos/nightingale): Open-source, self-hosted alerting for metrics, logs, and databases. Includes a built-in AI agent and MCP server.
- [Wei-Shaw/sub2api](https://seerepo.com/r/Wei-Shaw/sub2api): Sub2API 一站式开源中转服务，让 Claude、Openai 、Gemini、Grok订阅统一接入，支持拼车共享，更高效分摊成本，原生工具无缝使用。

## What they share and what sets them apart

- In common: Gin, go-redis, pq, Redis, github.com/patrickmn/go-cache, Postgres, SQLite, MCP, Model Context Protocol
- Only in nightingale: sarama, MySQL, ClickHouse, github.com/glebarez/sqlite, OpenSearch, TiDB, Kafka, gorm.io/gorm, gorm.io/driver/clickhouse, github.com/golang-jwt/jwt, golang.org/x/oauth2, github.com/coreos/go-oidc, github.com/go-ldap/ldap/v3, github.com/mojocn/base64Captcha, gopkg.in/gomail.v2, github.com/google/jsonschema-go, Prometheus, github.com/prometheus/prometheus, github.com/prometheus/client_golang, github.com/gin-contrib/pprof, github.com/prometheus/client_model
- Only in sub2api: s3, Dgraph, Alibaba Cloud, Alipay, Stripe, github.com/zeromicro/go-zero, Vite, Vue, vue-router, entgo.io/ent, github.com/golang-jwt/jwt/v5, github.com/go-webauthn/webauthn, github.com/aws/aws-sdk-go-v2/credentials, github.com/pquerna/otp, github.com/tiktoken-go/tokenizer, golang.org/x/image, github.com/go-playground/validator/v10, go.uber.org/zap, github.com/aws/aws-sdk-go-v2, github.com/aws/aws-sdk-go-v2/config, github.com/hashicorp/go-hclog, github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common, gopkg.in/natefinch/lumberjack.v2, Tailwind CSS, Chart.js, vue-chartjs, driver.js, TanStack, vue-draggable-plus, dompurify, marked, qrcode, xlsx

## Side by side

| | nightingale | sub2api |
|---|---|---|
| Size | 204,238 lines written, 596 code files | 1,207,828 lines written, 1,720 code files |
| Who writes it | 0.1% of its commits signed by AI. With Cursor and GitHub Copilot | 18.3% of its commits signed by AI. With Codex, Claude Code, Cursor, GitHub Copilot, and Factory |
| Activity | Last push November 6, 2026, 3,263 commits, 13,470 stars | Last push November 10, 2026, 5,549 commits, 45,793 stars |
| Tests | 246 test files. 61.4% of its code files have a test that imports them | 2,119 test files. 79.4% of its code files have a test that imports them |

- Size: Lines written by people and agents, without generated ones; code files, without tests.
- Who writes it: A commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
- Activity: From GitHub and its history, on the day SeeRepo read it.
- Tests: The files that test the code, and the share of code files a test imports.

## Frequently asked questions

### Which is bigger, nightingale or sub2api?

sub2api, with 1,207,828 lines written; nightingale has 204,238.

The proof: [Wei-Shaw/sub2api's code at commit e2c9812](https://github.com/Wei-Shaw/sub2api/tree/e2c9812190dd71bb309c8ad020a1211da1e0d3b4)

### Which has more GitHub stars, nightingale or sub2api?

sub2api, with 45,793 stars; nightingale has 13,470.

The proof: [Wei-Shaw/sub2api on GitHub](https://github.com/Wei-Shaw/sub2api)

### Which has more tests, nightingale or sub2api?

sub2api, with 2,119 test files; nightingale has 246.

The proof: [Wei-Shaw/sub2api's code at commit e2c9812](https://github.com/Wei-Shaw/sub2api/tree/e2c9812190dd71bb309c8ad020a1211da1e0d3b4)

### Which was updated more recently, nightingale or sub2api?

sub2api: its last push was on November 10, 2026, and nightingale's on November 6, 2026.

The proof: [Wei-Shaw/sub2api's commits on GitHub](https://github.com/Wei-Shaw/sub2api/commits)

### Which has more commits signed by AI, nightingale or sub2api?

sub2api: an AI signed 18.3% of its commits, with Codex, Claude Code, Cursor, GitHub Copilot, and Factory; in nightingale, 0.1%.

The proof: [the commits each tool signed in Wei-Shaw/sub2api](https://seerepo.com/r/Wei-Shaw/sub2api/ai)

## Sources

- ccfos/nightingale: Read on November 10, 2026, at commit 3abcdb2 (https://github.com/ccfos/nightingale/tree/3abcdb2312453be2dbb2174e42320620c9819dcf)
- Wei-Shaw/sub2api: Read on November 10, 2026, at commit e2c9812 (https://github.com/Wei-Shaw/sub2api/tree/e2c9812190dd71bb309c8ad020a1211da1e0d3b4)

## What is your repo built with?

Any public repo, with no account: https://seerepo.com/r/owner/repo/built, with the owner and name it has on GitHub.
