repowiserepowise
Sign in
go-gitea/gitea
OverviewDocsArchitectureKnowledge GraphFilesCode HealthSecurityRefactoring

People & History

CommitsContributorsDecisions
Chat
Stats
repowiserepowise
ExplorePricingDocs
Sign in
repowisego-gitea/gitea
GI
GI

go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD

Go★ 58,327
Use in your agentAsk this codebase

github.com/go-gitea/gitea·Indexed at 8a3daef·3mo ago·Up to date with upstream

About this codebase

`repo` is a Go-based code hosting and repository services backend that ingests repository content (via filesystem/Git/LFS workflows), transforms it through indexing, routing, and background service pipelines, and produces served HTTP/API responses plus persisted state (database models) and web UI assets.

Written by gpt-5.4-nano from the index

3,783 files and 21,638 symbols in 12 modules, led by Go (2,978 files) and TypeScript (223).

Start reading

  • Knowledge graph3,462 files and how they depend on each other.→
  • Upgrade eslint plugins and remove eslint-plugin-githubDecisionProposed decision, from a pull request.→

Code health

7.4out of 10Good

This codebase scores 7.4 out of 10 for code health, which we rate good. It also scores maintainability 8.3 and static performance 9.8 out of 10. The three are scored separately and never blended into one number. Risk is concentrated, as it usually is: 218 of 3,783 files are git hotspots, and they average 4.5 — which is where the fixes pay off most.

Full health report →

On the leaderboards:#3 of 20 Go repos

Do next

3 things worth doing in the week to Jul 17, the last indexed commit.

Worth planning

  • Break up registerWebRoutes (CCN 36, 1,249 lines)

    routers/web/web.go:331

    registerWebRoutes nests its control flow deeply, and part of it is duplicated, so splitting it also removes a copy; changed 9 times in 90 days.

    gain
    up to +0.9 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 36, 1,249 lines, nests 4 deep
    severity
    medium
    Medium effort, worth a check
  • Break up EditBranchProtection (CCN 77, 302 lines)

    routers/api/v1/repo/branch.go:891

    EditBranchProtection nests its control flow deeply, and part of it is duplicated, so splitting it also removes a copy; changed 7 times in 90 days.

    gain
    up to +1.2 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 77, 302 lines, nests 5 deep
    severity
    high
    Medium effort, worth a check
  • Break up prepareIssueViewCommentsAndSidebarParticipants (CCN 61, 195 lines)

    routers/web/repo/issue_view.go:808

    prepareIssueViewCommentsAndSidebarParticipants nests its control flow deeply, and part of it is duplicated, so splitting it also removes a copy; changed 15 times in 90 days.

    gain
    up to +0.4 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 61, 195 lines, nests 6 deep
    severity
    high
    Medium effort, worth a check
Listing 3 of 4.
All actions in the Overview →

Use go-gitea/gitea in your agent

Point Claude Code, Cursor, Codex or VS Code at this repository. Your agent gets the index this page is built from: cited answers, callers, history and health for any file.

https://api.repowise.dev/mcp/go-gitea/gitea

One command, run anywhere. Adds the server to your local Claude Code config.

Docs
bash
claude mcp add --transport http repowise https://api.repowise.dev/mcp/go-gitea/gitea \
  --header "Authorization: Bearer rw_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
The snippet shows a placeholder key. Generate one to get a copyable secret.
Sign in and create an API key to connect.Sign in

This repo is public, so anyone with a Repowise account and an API key can connect.

Try asking

  • get_overview()
  • get_answer("how is gitea put together?")
  • get_why("why is gitea structured this way?")

Prefer local? pip install repowise && repowise init indexes your own checkout, no account needed.

Go deeper

  • OverviewEverything the index found, what changed this week, commits and decisions.→
  • DocumentationModule-by-module documentation, 3,134 pages, 710 written by a model.→
  • ArchitectureDependency graph, layers and third-party dependencies.→
  • Code healthEvery file's score, the findings behind it, tests and refactoring plans.→
  • CommitsEach commit's effect on code health, with agent provenance.→
  • ContributorsWho owns what, and where one person holds most of the knowledge.→
  • DecisionsArchitectural decisions mined from commits and pull requests.→
  • Ask this codebaseSign inGrounded answers over the indexed code.→

Maintain this repo? Claim the page

Sign in with GitHub and we check that you are an admin or maintainer of go-gitea/gitea. Then add a badge to the README that links readers here.

Use this repo from Claude or ChatGPT

Add this URL as a custom connector and sign in with repowise when asked. No API key to copy.

https://api.repowise.dev/mcp/go-gitea/gitea
Sign up to connect

For maintainers

Add a badge to your README

Every badge is public, cached, and updates on its own after every index. Nothing to install.

Repowise badge

Links to this page, with no score on it. Adding it also re-indexes the repo every week.

Repowise badge preview
[![repowise.dev](https://api.repowise.dev/badge/wiki/go-gitea/gitea.svg)](https://repowise.dev/repo/go-gitea/gitea?src=badge_wiki)

Code health badge

The repo's health score out of 10, from the latest index.

Code health badge preview
[![repowise.dev code health](https://api.repowise.dev/badge/health/go-gitea/gitea.svg)](https://repowise.dev/repo/go-gitea/gitea?src=badge_health)

Code health card

A larger card with the score, its change since the last index, and when it was measured. The HTML version follows the reader's light or dark theme.

Code health card preview
[![repowise.dev code health](https://api.repowise.dev/badge/health/go-gitea/gitea.svg?style=card)](https://repowise.dev/repo/go-gitea/gitea?src=badge_card)

How go-gitea/gitea works

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD This page is a map of the go-gitea/gitea repository, written primarily in Go, rebuilt from the source each time it is indexed. Repowise parses every symbol, computes a dependency graph, scores per-file code health from complexity, duplication, test coverage and churn, mines git history for hotspots and ownership, and lifts the architectural decisions into documentation you can read here or query through MCP.

The codebase has 3,783 files and 21,638 symbols in 12 modules, led by Go, TypeScript and Shell. Code health is 7.4 out of 10, rated good.

Use the links above to open each view, or connect this repository to your agent for grounded answers inside Claude, Cursor, Codex or VS Code.