SafeLine vs sub2api

SafeLine and sub2api share 3 technologies: Gin, Postgres, and MCP. Both are written in Go.

Read it as markdown

What they share and what sets them apart

chaitin

SafeLine

SafeLine is a self-hosted WAF(Web Application Firewall) / reverse proxy to protect your web apps from attacks and exploits.

Go23.2kRead on November 4, 2026, at commit 9b72ba6What is SafeLine built with?

Only in SafeLine

In common

Wei-Shaw

sub2api

Sub2API 一站式开源中转服务,让 Claude、Openai 、Gemini、Grok订阅统一接入,支持拼车共享,更高效分摊成本,原生工具无缝使用。

Go45.2kRead on October 31, 2026, at commit d851a38What is sub2api built with?

Only in sub2api

Side by side

SizeLines written by people and agents, without generated ones; code files, without tests.
SafeLine14,197 lines written109 code files
sub2api1,182,759 lines written1,683 code files
Who writes itA commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
SafeLine0.4% of its commits signed by AIWith Codex
sub2api17.7% of its commits signed by AIWith Codex, Claude Code, Cursor, Gemini CLI, GitHub Copilot, and Factory
ActivityFrom GitHub and its history, on the day SeeRepo read it.
SafeLineLast push October 22, 2026783 commits23,167 stars
sub2apiLast push October 30, 20265,448 commits45,171 stars
TestsThe files that test the code, and the share of code files a test imports.
SafeLine12 test files12.8% of its code files have a test that imports them
sub2api2,018 test files79.3% of its code files have a test that imports them

Frequently asked questions

Which is bigger, SafeLine or sub2api?
sub2api, with 1,182,759 lines written; SafeLine has 14,197.

The proof: Wei-Shaw/sub2api's code at commit d851a38

Which has more GitHub stars, SafeLine or sub2api?
sub2api, with 45,171 stars; SafeLine has 23,167.

The proof: Wei-Shaw/sub2api on GitHub

Which has more tests, SafeLine or sub2api?
sub2api, with 2,018 test files; SafeLine has 12.

The proof: Wei-Shaw/sub2api's code at commit d851a38

Which was updated more recently, SafeLine or sub2api?
sub2api: its last push was on October 30, 2026, and SafeLine's on October 22, 2026.

The proof: Wei-Shaw/sub2api's commits on GitHub

Which has more commits signed by AI, SafeLine or sub2api?
sub2api: an AI signed 17.7% of its commits, with Codex, Claude Code, Cursor, Gemini CLI, GitHub Copilot, and Factory; in SafeLine, 0.4%.

The proof: the commits each tool signed in Wei-Shaw/sub2api

See inside your code, today.

Paste your repo and see it drawn, part by part: a medium one in under a minute.

Free, no account.

Or look inside SeeRepo's own →