Source: https://seerepo.com/compare/chaitin/SafeLine/vs/infiniflow/ragflow
Markdown source: https://seerepo.com/compare/chaitin/SafeLine/vs/infiniflow/ragflow.md
Description: SafeLine and ragflow share 4 technologies: Gin, Postgres, MCP, and go.uber.org/zap. Both are written in Go.

# SafeLine vs ragflow

SafeLine and ragflow share 4 technologies: Gin, Postgres, MCP, and go.uber.org/zap. Both are written in Go.

- [chaitin/SafeLine](https://seerepo.com/r/chaitin/SafeLine): SafeLine is a self-hosted WAF(Web Application Firewall) / reverse proxy to protect your web apps from attacks and exploits.
- [infiniflow/ragflow](https://seerepo.com/r/infiniflow/ragflow): RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

## What they share and what sets them apart

- In common: Gin, Postgres, MCP, go.uber.org/zap
- Only in SafeLine: gorm.io/gorm, github.com/pquerna/otp, github.com/sirupsen/logrus
- Only in ragflow: net/http, go-redis, mysql-connector-python, pgx, pq, s3, MySQL, Redis, AWS S3, Google, AIOHTTP, werkzeug, React, React Router, OpenAI, github.com/aws/aws-sdk-go-v2/credentials, golang.org/x/oauth2, github.com/golang-jwt/jwt/v5, Model Context Protocol, github.com/yuin/goldmark, github.com/ledongthuc/pdf, github.com/gomarkdown/markdown, github.com/emersion/go-message, golang.org/x/image, reportlab, github.com/aws/aws-sdk-go-v2, github.com/aws/aws-sdk-go-v2/config, go.opentelemetry.io/otel/trace, OpenTelemetry, github.com/aws/aws-sdk-go-v2/service/sts, go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp, github.com/Azure/azure-sdk-for-go/sdk/azcore, qrcode, Tailwind CSS, classnames, class-variance-authority, tailwind-merge, next-themes, React Hook Form, xyflow, Radix UI, lexical, tanstack, @monaco-editor/react, react-syntax-highlighter, sonner, react-force-graph-2d, react-day-picker, react-copy-to-clipboard, recharts, @floating-ui/react, cmdk, D3, embla-carousel-react, Mermaid, react-dropzone, react-resizable-panels, Lucide, Ant Design, @lexical/markdown, dompurify, react-markdown, react-pdf-highlighter, rehype-katex, rehype-raw, unist-util-visit-parents, xlsx, papaparse, remark-gfm, rehype-sanitize, remark-breaks, remark-math, Zod, @hookform/resolvers, Ajv, ajv-formats

## Side by side

| | SafeLine | ragflow |
|---|---|---|
| Size | 14,197 lines written, 109 code files | 1,294,372 lines written, 2,843 code files |
| Who writes it | 0.4% of its commits signed by AI. With Codex | 2.1% of its commits signed by AI. With Claude Code, Cursor, CodeRabbit, GitHub Copilot, Kilo Code, Codex, OpenHands, Gemini CLI, and Factory |
| Activity | Last push October 22, 2026, 783 commits, 23,167 stars | Last push November 4, 2026, 10,792 commits, 93,494 stars |
| Tests | 12 test files. 12.8% of its code files have a test that imports them | 1,962 test files. 50.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, SafeLine or ragflow?

ragflow, with 1,294,372 lines written; SafeLine has 14,197.

The proof: [infiniflow/ragflow's code at commit 8cab68a](https://github.com/infiniflow/ragflow/tree/8cab68a9a3b083da95abb2ea0789b0a5623defaf)

### Which has more GitHub stars, SafeLine or ragflow?

ragflow, with 93,494 stars; SafeLine has 23,167.

The proof: [infiniflow/ragflow on GitHub](https://github.com/infiniflow/ragflow)

### Which has more tests, SafeLine or ragflow?

ragflow, with 1,962 test files; SafeLine has 12.

The proof: [infiniflow/ragflow's code at commit 8cab68a](https://github.com/infiniflow/ragflow/tree/8cab68a9a3b083da95abb2ea0789b0a5623defaf)

### Which was updated more recently, SafeLine or ragflow?

ragflow: its last push was on November 4, 2026, and SafeLine's on October 22, 2026.

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

### Which has more commits signed by AI, SafeLine or ragflow?

ragflow: an AI signed 2.1% of its commits, with Claude Code, Cursor, CodeRabbit, GitHub Copilot, Kilo Code, Codex, OpenHands, Gemini CLI, and Factory; in SafeLine, 0.4%.

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

## Sources

- chaitin/SafeLine: Read on November 4, 2026, at commit 9b72ba6 (https://github.com/chaitin/SafeLine/tree/9b72ba6ad4d7e042e7a79ee2e062305179312c98)
- infiniflow/ragflow: Read on November 4, 2026, at commit 8cab68a (https://github.com/infiniflow/ragflow/tree/8cab68a9a3b083da95abb2ea0789b0a5623defaf)

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