Source: https://seerepo.com/compare/QuantumNous/new-api/vs/sqlc-dev/sqlc
Markdown source: https://seerepo.com/compare/QuantumNous/new-api/vs/sqlc-dev/sqlc.md
Description: new-api and sqlc share 3 technologies: pgx, MySQL, and Postgres. Both are written in Go.

# new-api vs sqlc

new-api and sqlc share 3 technologies: pgx, MySQL, and Postgres. Both are written in Go.

- [QuantumNous/new-api](https://seerepo.com/r/QuantumNous/new-api): Open-source AI gateway. Self-hosted LLM gateway with OpenAI-, Claude- and Gemini-compatible APIs, model routing, access control, usage tracking and cost accounting.
- [sqlc-dev/sqlc](https://seerepo.com/r/sqlc-dev/sqlc): Generate type-safe code from SQL

## What they share and what sets them apart

- In common: pgx, MySQL, Postgres
- Only in new-api: Gin, Redis, ClickHouse, github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream, github.com/glebarez/sqlite, Stripe, Electron, React, TanStack, gorm.io/gorm, github.com/go-webauthn/webauthn, github.com/casbin/casbin/v2, github.com/golang-jwt/jwt/v5, github.com/aws/aws-sdk-go-v2/credentials, github.com/Azure/go-ntlmssp, github.com/coreos/go-oidc/v3, github.com/pquerna/otp, golang.org/x/oauth2, github.com/tiktoken-go/tokenizer, golang.org/x/image, github.com/abema/go-mp4, github.com/go-playground/validator/v10, github.com/aws/aws-sdk-go-v2, github.com/grafana/pyroscope-go, Prometheus, Tailwind CSS, class-variance-authority, tailwind-merge, sonner, React Hook Form, @tanstack/react-table, Base UI, motion, xyflow, @visactor/vchart, CodeMirror, react-day-picker, @lezer/highlight, cmdk, embla-carousel-react, input-otp, react-resizable-panels, react-top-loading-bar, recharts, use-stick-to-bottom, vaul, Lucide, hugeicons, @lobehub/icons, react-icons, ai, tokenlens, dompurify, marked, shiki, katex, qrcode.react, yaml, Zod, @hookform/resolvers
- Only in sqlc: github.com/microsoft/go-mssqldb, Google, github.com/yuin/goldmark

## Side by side

| | new-api | sqlc |
|---|---|---|
| Size | 574,600 lines written, 1,977 code files | 77,648 lines written, 576 code files |
| Who writes it | 0.7% of its commits signed by AI. With Claude Code, CodeRabbit, Codex, Jules, and Cursor | 2.9% of its commits signed by AI. With Claude Code |
| Activity | Last push November 5, 2026, 5,420 commits, 51,436 stars | Last push November 3, 2026, 1,919 commits, 18,435 stars |
| Tests | 511 test files. 39.5% of its code files have a test that imports them | 75 test files. 14.8% 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, new-api or sqlc?

new-api, with 574,600 lines written; sqlc has 77,648.

The proof: [QuantumNous/new-api's code at commit 2de51a1](https://github.com/QuantumNous/new-api/tree/2de51a19e35a602a0041d380b29be7c9bcd1e0e5)

### Which has more GitHub stars, new-api or sqlc?

new-api, with 51,436 stars; sqlc has 18,435.

The proof: [QuantumNous/new-api on GitHub](https://github.com/QuantumNous/new-api)

### Which has more tests, new-api or sqlc?

new-api, with 511 test files; sqlc has 75.

The proof: [QuantumNous/new-api's code at commit 2de51a1](https://github.com/QuantumNous/new-api/tree/2de51a19e35a602a0041d380b29be7c9bcd1e0e5)

### Which was updated more recently, new-api or sqlc?

new-api: its last push was on November 5, 2026, and sqlc's on November 3, 2026.

The proof: [QuantumNous/new-api's commits on GitHub](https://github.com/QuantumNous/new-api/commits)

### Which has more commits signed by AI, new-api or sqlc?

sqlc: an AI signed 2.9% of its commits, with Claude Code; in new-api, 0.7%.

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

## Sources

- QuantumNous/new-api: Read on November 5, 2026, at commit 2de51a1 (https://github.com/QuantumNous/new-api/tree/2de51a19e35a602a0041d380b29be7c9bcd1e0e5)
- sqlc-dev/sqlc: Read on November 6, 2026, at commit 3ad8b20 (https://github.com/sqlc-dev/sqlc/tree/3ad8b20fb02b5bea81591b673da0758b8685d951)

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