Source: https://seerepo.com/compare/teamhanko/hanko/vs/Wei-Shaw/sub2api
Markdown source: https://seerepo.com/compare/teamhanko/hanko/vs/Wei-Shaw/sub2api.md
Description: hanko and sub2api share 7 technologies: pq, Redis, Postgres, github.com/go-webauthn/webauthn, github.com/pquerna/otp, github.com/go-playground/validator/v10, and github.com/aws/aws-sdk-go-v2/config. Both are written in Go.

# hanko vs sub2api

hanko and sub2api share 7 technologies: pq, Redis, Postgres, github.com/go-webauthn/webauthn, github.com/pquerna/otp, github.com/go-playground/validator/v10, and github.com/aws/aws-sdk-go-v2/config. Both are written in Go.

- [teamhanko/hanko](https://seerepo.com/r/teamhanko/hanko): Modern authentication, on your terms. Open source alternative to Auth0, Clerk, WorkOS, Stytch.
- [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: pq, Redis, Postgres, github.com/go-webauthn/webauthn, github.com/pquerna/otp, github.com/go-playground/validator/v10, github.com/aws/aws-sdk-go-v2/config
- Only in hanko: Echo, pgx, redigo, github.com/go-redsync/redsync/v4, MySQL, github.com/labstack/echo-contrib, github.com/lestrrat-go/jwx/v2, golang.org/x/oauth2, github.com/russellhaering/gosaml2, github.com/labstack/echo-jwt/v4, github.com/coreos/go-oidc/v3, github.com/russellhaering/goxmldsig, gopkg.in/gomail.v2, github.com/beevik/etree, github.com/invopop/jsonschema, github.com/mattermost/xml-roundtrip-validator, github.com/rs/zerolog
- Only in sub2api: Gin, go-redis, s3, Dgraph, github.com/patrickmn/go-cache, SQLite, Alibaba Cloud, Alipay, MCP, Stripe, github.com/zeromicro/go-zero, Vite, Vue, vue-router, entgo.io/ent, github.com/golang-jwt/jwt/v5, github.com/aws/aws-sdk-go-v2/credentials, Model Context Protocol, github.com/tiktoken-go/tokenizer, golang.org/x/image, go.uber.org/zap, github.com/aws/aws-sdk-go-v2, 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

| | hanko | sub2api |
|---|---|---|
| Size | 78,772 lines written, 553 code files | 1,208,231 lines written, 1,720 code files |
| Who writes it | 0.5% of its commits signed by AI. With Claude Code and GitHub Copilot | 18.2% of its commits signed by AI. With Codex, Claude Code, Cursor, GitHub Copilot, and Factory |
| Activity | Last push November 14, 2026, 2,277 commits, 9,072 stars | Last push November 13, 2026, 5,553 commits, 45,985 stars |
| Tests | 134 test files. 25.9% of its code files have a test that imports them | 2,122 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, hanko or sub2api?

sub2api, with 1,208,231 lines written; hanko has 78,772.

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

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

sub2api, with 45,985 stars; hanko has 9,072.

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

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

sub2api, with 2,122 test files; hanko has 134.

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

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

hanko: its last push was on November 14, 2026, and sub2api's on November 13, 2026.

The proof: [teamhanko/hanko's commits on GitHub](https://github.com/teamhanko/hanko/commits)

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

sub2api: an AI signed 18.2% of its commits, with Codex, Claude Code, Cursor, GitHub Copilot, and Factory; in hanko, 0.5%.

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

## Sources

- teamhanko/hanko: Read on November 15, 2026, at commit 31909b8 (https://github.com/teamhanko/hanko/tree/31909b84f20a4cfe94f4d0fbe455e3f184c6e24b)
- Wei-Shaw/sub2api: Read on November 13, 2026, at commit 530c5e3 (https://github.com/Wei-Shaw/sub2api/tree/530c5e3a4f9c73ca2b0881191d0ef8e0d82c5484)

## 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.
