File size: 7,822 Bytes
569d293
 
 
 
 
 
 
 
dbcdc7c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
---
title: Proxy
emoji: 🌐
colorFrom: blue
colorTo: blue
sdk: docker
pinned: false
---
<div align="center">
  
  <img src="https://github.com/DogeNetwork/dogeub/blob/main/public/logo.svg" width="322" />
  <br />

  [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/I3I81MF4CH) ![](https://dcbadge.limes.pink/api/server/https://discord.gg/unblocking?compact=true)


  <hr />
  DogeUB version 5 is finally here!

  
  <br />
  <br />

  <img width="1278" height="628" alt="image" src="preview.png" />


</div>

## Overview

DogeUB is a browser-in-browser style internet hub that brings together web apps, tools, and games in one place, built with [React](https://github.com/facebook/react).

> [!IMPORTANT]
> Please consider starring our repository if you are forking it!

### List of features:

| Feature | Implemented |
|---------|-------------|
| Web Proxy | Yes |
| Browser-like UI | Yes |
| App player UI | Yes |
| Cloak features | Partially |
| Game Downloader | Yes |
| Quick Links | Yes |
| DuckDuckGo Search API | Yes |
| Apps & Games | Yes |
| Search Engine Switcher | Yes |
| Themes/Site Customization | Yes |

---

### Development & Building

#### Production:
```bash
git clone https://github.com/DogeNetwork/dogeub.git
cd dogeub
npm i
npm run build
node server.js
```

#### Development:

```bash
git clone https://github.com/DogeNetwork/dogeub.git
cd dogeub
npm i
npm run dev
```
---


### Run on your own machine

You only need a few things installed:
- **Node.js 20+** (recommended: latest LTS)
- **npm** (comes with Node.js)
- **git**

Quick start (production-style run):
```bash
git clone https://github.com/DogeNetwork/dogeub.git
cd dogeub
npm install
npm run build
node server.js
```
Then open: `http://localhost:2345` (or your configured `PORT`).

Local development mode (hot reload):
```bash
npm install
npm run dev
```
Then open the Vite URL shown in terminal (usually `http://localhost:5173`).


> [!TIP]
> If your environment is on Node.js 16 (common in older/dev containers), switch to Node 20 before installing deps:
> ```bash
> nvm install 20
> nvm use 20
> node -v
> ```

### Troubleshooting (Codespaces / CAPTCHA / "Robot" detections)

#### Change proxy mode (UI)

1. Open **Settings**.
2. Go to **Browsing** settings.
3. Find **Backend Engine**.
4. Choose:
   - **Scramjet only** (default)
   - **Ultraviolet only**
   - **Automatic**

### Troubleshooting (Codespaces / CAPTCHA / "Robot" detections)

If you run DogeUB inside **GitHub Codespaces**, some sites may repeatedly show bot checks or a reCAPTCHA spinner that never finishes.

Common reasons:
- **Datacenter IP reputation**: Codespaces egress IPs are often flagged by anti-bot systems.
- **Strict browser integrity checks**: Some providers detect proxy/service-worker flows and block challenge completion.
- **Cookie/storage restrictions**: CAPTCHA flows can fail if required storage/cookies are blocked or partitioned.
- **TLS / origin issues**: Make sure you are using the HTTPS URL provided by Codespaces port forwarding.

What to try:
1. Open the app from the forwarded **HTTPS** Codespaces URL (not plain localhost in another device/browser).
2. In Codespaces Port Forwarding, set the app port visibility to **Public** (or required mode for your usage).
3. Test in a clean browser profile with extensions/ad blockers disabled.
4. If CAPTCHA still loops, run on a different host/network with better IP reputation (self-hosted VPS/reverse proxy or local network).

> [!IMPORTANT]
> Some anti-bot pages are intentionally difficult or impossible to complete through proxy contexts. This is an upstream site security behavior, not always a build/runtime bug in DogeUB.

#### Where to test (recommended)

Use a two-environment check:
1. **Codespaces (repro check):** confirm whether the issue appears on `*.app.github.dev`.
2. **Non-Codespaces host (control check):** run the same build on local machine/VPS/custom domain to compare behavior.

If it fails only in Codespaces but works elsewhere, the root cause is usually platform/network reputation or Codespaces auth/cross-origin behavior rather than your project build.

### Put DogeUB on your own website

For a games site, the safest setup is a **separate subdomain** (recommended), e.g. `hub.yoursite.com`.

Why subdomain is better than a subpath:
- The app and service workers use root-style paths (e.g. `/portal/...`, `/ham/...`, `/sw.js`).
- Hosting under a subpath like `/games/dogeub/` usually requires extra rewrite work.

Recommended deployment pattern:
1. Build the app:
   ```bash
   npm install
   npm run build
   ```
2. Run the server behind a reverse proxy:
   ```bash
   PORT=2345 node server.js
   ```
3. Point a subdomain to your server and terminate HTTPS in Nginx/Caddy.

Example Nginx site block:
```nginx
server {
  listen 443 ssl http2;
  server_name hub.yoursite.com;

  location / {
    proxy_pass http://127.0.0.1:2345;
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
  }
}
```

Then link to it from your main site with a normal link or iframe (link is usually more reliable).

#### CORS / CORP / COEP notes (Render)

Short answer: you usually **do not** need to add strict cross-origin policies for this proxy app.

Recommended for Render deploys:
- Keep default CORS behavior unless you have a specific API requirement.
- Do **not** force `Cross-Origin-Resource-Policy: same-origin` globally.
- Do **not** force `Cross-Origin-Embedder-Policy: require-corp` globally.
- Do **not** force `Cross-Origin-Opener-Policy: same-origin` globally.

Those strict headers can break proxied scripts/assets and challenge flows.

#### Deploying with Docker:

```bash
docker run -d \
  --name dogeub \
  --restart unless-stopped \
  -p 3000:3000 \
  -e NODE_ENV=production \
  -e PORT=3000 \
  ghcr.io/dogenetwork/dogeub:latest
```

> [!NOTE]
> If accessing over a network instead of localhost, you will need to provide a valid SSL certificate (e.g., using a reverse proxy like Nginx or Caddy). This is required for the built-in service worker to function properly.

#### HTTPS requirements (important)

- **`localhost` is OK without custom certs** for local testing.
- **Any non-localhost host** (LAN IP, VPS domain, school/work domain, etc.) should be served over valid **HTTPS** for reliable service-worker behavior.
- **Codespaces URLs are already HTTPS**, but can still hit platform auth/bot checks unrelated to your build.

Example Caddy reverse proxy (auto HTTPS):
```caddyfile
your-domain.example.com {
    reverse_proxy 127.0.0.1:2345
}
```

Then run DogeUB on localhost and let Caddy terminate TLS:
```bash
PORT=2345 node server.js
```

---

### Contributors / Developers

| Name          | Role               | GitHub |
| ------------- | ------------------ | ------ |
| Derpman | Lead Developer     |      [@qerionx](https://github.com/qerionx) |
| Fowntain | Project Manager | [@fowntain](https://github.com/fowntain)     |
| Akane | Contributor | [@genericness](https://github.com/genericness)     |
| DJshelfmushroom | Contributor | [@DJshelfmushroom](https://github.com/DJshelfmushroom)     |


> [!NOTE]
> Want to be on this list? Make a few pull requests!

---

### Made possible thanks to:

* [MercuryWorkshop/wisp-server-node](https://github.com/MercuryWorkshop/wisp-server-node)
* [MercuryWorkshop/scramjet](https://github.com/MercuryWorkshop/scramjet)
* [titaniumnetwork-dev/Ultraviolet](https://github.com/titaniumnetwork-dev/Ultraviolet)
* [lucide-icons/lucide](https://github.com/lucide-icons/lucide)
* [pmndrs/zustand](https://github.com/pmndrs/zustand)
* [Stuk/jszip](https://github.com/Stuk/jszip)

## License

This project is licensed under the **GNU Affero GPL v3**.  
See the [LICENSE](LICENSE) file for more details.