# RubyMetric/chsrc

chsrc 全平台通用换源工具与框架. Change Source everywhere for every software

Repository: https://github.com/RubyMetric/chsrc
Canonical: https://ross.abutalabs.com/products/chsrc
Homepage: https://chsrc.run/
Language: C
License: GPL-3.0
License Family: copyleft
Topics: gem, linux, pip, ubuntu, windows, macos, debian, archlinux, fedora, cargo, maven, npm, composer, cpan, brew, flathub, guix, nix, c11, raku
Last push: 2026-08-22T13:17:40+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 87, longevity 78
- inputs: {"age_days": 1096, "days_push": 11, "days_rel": 11, "gap_med": 84.0, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6854, forks 281 (observed 2026-08-28T04:09:50.884458+00:00)

## What it is
chsrc is a cross-platform command-line tool and framework for switching package manager mirrors (change source) on Linux, Windows, macOS, BSD, and Android. Written in C11, it supports 65+ targets such as pip, npm, cargo, maven, brew, and apt via an extensible recipe system.

## Use cases
- switch pip to a faster mirror
- change npm registry mirror from the command line
- set up Chinese mirrors for apt and brew
- configure mirror sources for cargo and maven across platforms
- speed up package downloads by switching to a local mirror
- reset package manager sources to defaults

## When to choose
- you need one consistent tool to switch mirrors for many package managers
- you work across Linux, macOS, Windows, or Android and want portable mirror configuration
- you are in a region where official mirrors are slow and want quick switching
- you want a lightweight native binary without a language runtime dependency

## When to avoid
- you only need to change a single package manager's mirror once and prefer editing its config directly
- you need a GUI for mirror management
- your target package manager is not among the supported recipes

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, configuration-management, package-manager, developer-tools
- domain: developer-tools
- platform: windows, bsd, cli, cross-platform
- tags: mirror-switching, package-mirrors, c11, recipe-framework, china-mirrors, command-line, devops, automation, linux, macos, android

## Member repositories
- RubyMetric/chsrc (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:50.884458+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:41:44.938632+00:00, confidence not recorded.
  - readme: https://github.com/RubyMetric/chsrc (fetched 2026-08-28T04:09:50.884458+00:00, sha 7dfb844d4c40)
  - homepage: https://chsrc.run/ (fetched 2026-08-29T08:37:41.850225+00:00, sha af2e000078dc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
