1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
cgithub is a lightweight GitHub alternative frontend. It has no bloated
JavaScript and doesn't require API keys. It runs on Cloudflare Workers; to use
it, deploy your own instance then replace `github.com` in your URL with your
domain.

## Features
Implemented:
- Repository overview
- Directory listing and file browsing (`tree`/`blob`)
- Commit history (but this often results in 429 Too Many Requests on Cloudflare)
- Issue and pull request lists and search
- Discussions
- Release lists and details
- Wiki
- User and organization profiles
Not implemented:
- Issue, pull request, and commit details
- Issue and pull request status and labels
- Code search (GitHub requires signing in)
- Pagination (only the first page of issues, pull requests, discussions,
commits, releases, branches, and tags is shown, and likewise only the replies
GitHub sends with a discussion rather than behind a "show more" button)
- Blame, contributors, stargazer/fork lists, network graphs, and insights
- Actions, checks, projects, packages, and gists
- Profile tabs other than the overview (repositories, projects, packages,
people, sponsoring)
- Anything requiring an account: signing in, notifications, starring,
commenting, editing, or any other write action
- Private repositories
## Browser extension redirects
cgithub redirects unsupported routes back to github.com. A browser extension
that rewrites github.com URLs to a cgithub instance with `declarativeNetRequest`
will match those redirects and send the request back, looping forever. To avoid
this, the extension should configure `excludedInitiatorDomains` with the cgithub
domain:
```jsonc
{
"action": {
"type": "redirect",
"redirect": { "transform": { "host": "cgithub.example" } },
},
"condition": {
"urlFilter": "||github.com",
"resourceTypes": ["main_frame"],
// So cgithub's own meta refresh to github.com isn't redirected back here.
"excludedInitiatorDomains": ["cgithub.example"],
},
}
```
## Related
- [GotHub](https://codeberg.org/gothub/gothub)
## Disclosures
AI coding assistants, in particular Claude, are used in the development process.
[Phospor Icons](https://phosphoricons.com/) used under MIT license.
|