devdoor 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- devdoor-0.1.0/LICENSE +21 -0
- devdoor-0.1.0/PKG-INFO +227 -0
- devdoor-0.1.0/README.md +192 -0
- devdoor-0.1.0/pyproject.toml +164 -0
- devdoor-0.1.0/pyproject.toml.orig +126 -0
- devdoor-0.1.0/src/devdoor/__init__.py +6 -0
- devdoor-0.1.0/src/devdoor/__main__.py +8 -0
- devdoor-0.1.0/src/devdoor/cli/__init__.py +1 -0
- devdoor-0.1.0/src/devdoor/cli/app.py +99 -0
- devdoor-0.1.0/src/devdoor/cli/auth.py +178 -0
- devdoor-0.1.0/src/devdoor/cli/domains.py +214 -0
- devdoor-0.1.0/src/devdoor/cli/inspector.py +209 -0
- devdoor-0.1.0/src/devdoor/cli/local.py +790 -0
- devdoor-0.1.0/src/devdoor/cli/share.py +443 -0
- devdoor-0.1.0/src/devdoor/cli/validators.py +40 -0
- devdoor-0.1.0/src/devdoor/core/__init__.py +1 -0
- devdoor-0.1.0/src/devdoor/core/config.py +482 -0
- devdoor-0.1.0/src/devdoor/core/engine.py +495 -0
- devdoor-0.1.0/src/devdoor/core/events.py +287 -0
- devdoor-0.1.0/src/devdoor/core/protocol.py +462 -0
- devdoor-0.1.0/src/devdoor/core/router.py +163 -0
- devdoor-0.1.0/src/devdoor/inspector/__init__.py +14 -0
- devdoor-0.1.0/src/devdoor/inspector/curl.py +68 -0
- devdoor-0.1.0/src/devdoor/inspector/daemon_hook.py +147 -0
- devdoor-0.1.0/src/devdoor/inspector/replay.py +122 -0
- devdoor-0.1.0/src/devdoor/inspector/store.py +291 -0
- devdoor-0.1.0/src/devdoor/platform/__init__.py +36 -0
- devdoor-0.1.0/src/devdoor/platform/base.py +209 -0
- devdoor-0.1.0/src/devdoor/platform/darwin.py +194 -0
- devdoor-0.1.0/src/devdoor/platform/linux.py +185 -0
- devdoor-0.1.0/src/devdoor/platform/windows.py +143 -0
- devdoor-0.1.0/src/devdoor/proxy/__init__.py +7 -0
- devdoor-0.1.0/src/devdoor/proxy/certs.py +311 -0
- devdoor-0.1.0/src/devdoor/proxy/forwarder.py +457 -0
- devdoor-0.1.0/src/devdoor/proxy/https_server.py +122 -0
- devdoor-0.1.0/src/devdoor/tui/__init__.py +17 -0
- devdoor-0.1.0/src/devdoor/tui/inspector_app.py +667 -0
- devdoor-0.1.0/src/devdoor/tunnel/__init__.py +1 -0
- devdoor-0.1.0/src/devdoor/tunnel/auth_client.py +287 -0
- devdoor-0.1.0/src/devdoor/tunnel/client.py +309 -0
- devdoor-0.1.0/src/devdoor/tunnel/httperr.py +168 -0
- devdoor-0.1.0/src/devdoor/tunnel/mux.py +566 -0
- devdoor-0.1.0/src/devdoor/tunnel/relay_api.py +245 -0
devdoor-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Dipak Rathod
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
devdoor-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: devdoor
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Open-source local HTTPS domain proxy, streaming tunnel client, and TUI inspector
|
|
5
|
+
Keywords: https,local-development,reverse-proxy,tunnel,websocket,tui
|
|
6
|
+
Author: Dipak Rathod
|
|
7
|
+
Author-email: Dipak Rathod <dipakrathod.tech@gmail.com>
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Environment :: Console
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Operating System :: MacOS
|
|
14
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
15
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
18
|
+
Classifier: Topic :: Internet :: Proxy Servers
|
|
19
|
+
Classifier: Topic :: Software Development :: Testing
|
|
20
|
+
Requires-Dist: aiohttp>=3.14.5
|
|
21
|
+
Requires-Dist: aiosqlite>=0.22.1
|
|
22
|
+
Requires-Dist: cryptography>=50.0.2
|
|
23
|
+
Requires-Dist: psutil>=7.2.2
|
|
24
|
+
Requires-Dist: pydantic>=2.14.4
|
|
25
|
+
Requires-Dist: pyyaml>=6.0.4
|
|
26
|
+
Requires-Dist: rich>=15.0.0
|
|
27
|
+
Requires-Dist: textual>=8.2.8
|
|
28
|
+
Requires-Dist: typer>=0.29.3
|
|
29
|
+
Requires-Python: >=3.15
|
|
30
|
+
Project-URL: Homepage, https://github.com/dipakrathod-tech/DevDoor
|
|
31
|
+
Project-URL: Repository, https://github.com/dipakrathod-tech/DevDoor
|
|
32
|
+
Project-URL: Issues, https://github.com/dipakrathod-tech/DevDoor/issues
|
|
33
|
+
Project-URL: Security, https://github.com/dipakrathod-tech/DevDoor/security/advisories
|
|
34
|
+
Description-Content-Type: text/markdown
|
|
35
|
+
|
|
36
|
+
<h1 align="center">DevDoor</h1>
|
|
37
|
+
|
|
38
|
+
<p align="center">
|
|
39
|
+
Local HTTPS domains, streaming tunnels, and built-in TUI request replay—100% open-source in Python.
|
|
40
|
+
</p>
|
|
41
|
+
|
|
42
|
+
<p align="center">
|
|
43
|
+
<a href="https://github.com/dipakrathod-tech/DevDoor/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/dipakrathod-tech/DevDoor/ci.yml?branch=main&style=flat-square&label=CI" alt="CI"></a>
|
|
44
|
+
<img src="https://img.shields.io/badge/python-3.15%2B-3776AB?style=flat-square&logo=python&logoColor=white" alt="Python 3.15+">
|
|
45
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue?style=flat-square" alt="MIT License"></a>
|
|
46
|
+
<img src="https://img.shields.io/badge/platform-macOS%20%7C%20Linux%20%7C%20Windows-111827?style=flat-square" alt="Platform">
|
|
47
|
+
<a href="https://github.com/dipakrathod-tech/devdoor-relay"><img src="https://img.shields.io/badge/relay-open%20source-16a34a?style=flat-square" alt="Open Source Relay"></a>
|
|
48
|
+
</p>
|
|
49
|
+
|
|
50
|
+
```text
|
|
51
|
+
myapp.test → localhost:3000
|
|
52
|
+
myapp.test/api → localhost:8080
|
|
53
|
+
dashboard.test → localhost:5173
|
|
54
|
+
share --port 3000 → https://brisk-otter.devdoor.dev (streaming SSE + WebSockets + replay)
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Why DevDoor?
|
|
58
|
+
|
|
59
|
+
- **Both sides open-source:** Pair the CLI with the self-hostable [`devdoor-relay`](https://github.com/dipakrathod-tech/devdoor-relay) server—no closed relay or paywalled vanity subdomains, custom domains, passwords, or TTLs.
|
|
60
|
+
- **True streaming & WebSockets:** Multiplexes HTTP body chunks, SSE/LLM streams, and WebSockets (Vite/Next.js HMR) over a single backpressure-controlled connection instead of buffering entire payloads in memory.
|
|
61
|
+
- **Built-in TUI Inspector & Replay:** Inspect live headers and bodies, copy as `cURL`, and replay captured webhooks locally even after closing a tunnel (`devdoor inspect`).
|
|
62
|
+
- **Cross-platform:** Trusted local `.test` HTTPS on macOS and Linux, plus zero-admin `*.localhost` mode (and optional elevated `.test`) on Windows.
|
|
63
|
+
|
|
64
|
+
## Installation
|
|
65
|
+
|
|
66
|
+
> **Note:** Not yet published on PyPI—install directly from GitHub or a local source clone.
|
|
67
|
+
|
|
68
|
+
Requires **Python 3.15+** and [`uv`](https://docs.astral.sh/uv/) (or `pipx`):
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
uv tool install git+https://github.com/dipakrathod-tech/DevDoor.git
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Or run from a source checkout:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
git clone https://github.com/dipakrathod-tech/DevDoor.git
|
|
78
|
+
cd DevDoor
|
|
79
|
+
uv sync
|
|
80
|
+
uv run devdoor --help
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Quick Start
|
|
84
|
+
|
|
85
|
+
Map a local app to a trusted HTTPS domain:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
devdoor start myapp --port 3000
|
|
89
|
+
# https://myapp.test → localhost:3000
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Expose a local server (or multi-route project) to the internet:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
devdoor share --port 3000
|
|
96
|
+
# https://brisk-otter.devdoor.dev → localhost:3000
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## Local HTTPS Domains
|
|
100
|
+
|
|
101
|
+
Start and stop local domains with automatic Root CA trust and per-domain SNI TLS certificates:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
devdoor start myapp --port 3000
|
|
105
|
+
devdoor start api --port 8080
|
|
106
|
+
devdoor start myapp --port 3000 --wait --timeout 15s # wait until upstream listens
|
|
107
|
+
devdoor stop myapp # stop one domain
|
|
108
|
+
devdoor stop # stop all domains
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Bare names default to `.test` on macOS/Linux (or `.localhost` in zero-admin Windows mode). You can specify any custom TLD explicitly:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
devdoor start app.loc --port 3000 # https://app.loc → localhost:3000
|
|
115
|
+
devdoor start my.demo --port 4000 # https://my.demo → localhost:4000
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
> **Note:** Avoid `.local`—it is reserved for mDNS and can cause slow DNS lookups on macOS and Linux.
|
|
119
|
+
|
|
120
|
+
Route multiple URL paths under one domain:
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
devdoor start myapp --port 3000 --route /api=8080 --route /ws=9000 --cors
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Or declare services in `devdoor.yaml` (or `.devdoor.yaml`) at your project root:
|
|
127
|
+
|
|
128
|
+
```yaml
|
|
129
|
+
services:
|
|
130
|
+
- domain: myapp
|
|
131
|
+
port: 3000
|
|
132
|
+
routes:
|
|
133
|
+
- path: /api
|
|
134
|
+
port: 8080
|
|
135
|
+
- domain: dashboard
|
|
136
|
+
port: 5173
|
|
137
|
+
log_mode: full # full | minimal | off
|
|
138
|
+
cors: true # inject dev CORS headers on proxied responses
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
devdoor up # start all project services
|
|
143
|
+
devdoor up --config /path/to/devdoor.yaml
|
|
144
|
+
devdoor down # stop project services only
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
## Internet Sharing & Self-Hosting
|
|
148
|
+
|
|
149
|
+
Authenticate via browser OAuth (`GitHub` / `OIDC`) or an API token, then share a local port or a `devdoor.yaml` multi-route service:
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
devdoor login # browser OAuth device flow
|
|
153
|
+
devdoor login --token dd_your_api_token # headless / CI / self-hosted token
|
|
154
|
+
devdoor logout # clear stored local credentials
|
|
155
|
+
devdoor config set relay https://tunnel.example.com # point to your own devdoor-relay
|
|
156
|
+
devdoor config show # inspect current config
|
|
157
|
+
|
|
158
|
+
devdoor share --port 3000 # random subdomain
|
|
159
|
+
devdoor share myapp # share multi-route devdoor.yaml service
|
|
160
|
+
devdoor share --port 3000 --subdomain demo # reserved vanity subdomain
|
|
161
|
+
devdoor share --port 3000 --password secret # password-protected tunnel (HTTP Basic Auth)
|
|
162
|
+
devdoor share --port 3000 --ttl 30m # auto-expire after 30 minutes
|
|
163
|
+
devdoor share --port 3000 --domain api.example.com # verified custom domain
|
|
164
|
+
devdoor share --port 3000 --preserve-host # preserve incoming public Host header
|
|
165
|
+
devdoor share --port 3000 --cors # inject dev CORS headers
|
|
166
|
+
devdoor share --port 3000 --tui # live Textual inspector during share
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
Manage verified custom domains and reserved vanity subdomains:
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
devdoor domain add api.example.com
|
|
173
|
+
devdoor domain verify api.example.com
|
|
174
|
+
devdoor domain list
|
|
175
|
+
devdoor domain remove api.example.com
|
|
176
|
+
|
|
177
|
+
devdoor subdomain list
|
|
178
|
+
devdoor subdomain release demo
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### Browser Warning Gate
|
|
182
|
+
|
|
183
|
+
Random-subdomain tunnels display a one-time interstitial notice on browser page loads to protect shared relay domains. It is skipped automatically for vanity subdomains, custom domains, password-protected tunnels, and programmatic HTTP clients (`curl`, webhooks, `fetch`/XHR, CORS preflights, WebSockets). Browser-like scripts can also bypass it explicitly:
|
|
184
|
+
|
|
185
|
+
```bash
|
|
186
|
+
curl -H "DevDoor-Skip-Browser-Warning: 1" https://brisk-otter.devdoor.dev/
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
## Request Inspector, Logs & Diagnostics
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
devdoor inspect # launch Textual TUI inspector & local replay
|
|
193
|
+
devdoor inspect --domain myapp.test # filter exchanges to one domain
|
|
194
|
+
devdoor list # list local domains + active tunnels (alias: ls)
|
|
195
|
+
devdoor list --json
|
|
196
|
+
|
|
197
|
+
devdoor logs # view captured access logs
|
|
198
|
+
devdoor logs --follow myapp # tail logs for one domain (-f)
|
|
199
|
+
devdoor logs --flush # clear stored logs from inspector.db
|
|
200
|
+
|
|
201
|
+
devdoor doctor # verify CA, trust store, port forwarding, hosts, certs
|
|
202
|
+
devdoor upgrade # upgrade devdoor via uv/pipx/pip (alias: update)
|
|
203
|
+
devdoor version # print version and Python runtime
|
|
204
|
+
devdoor uninstall # remove CA, trust, hosts entries, firewall rules, ~/.devdoor
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
## Contributing
|
|
208
|
+
|
|
209
|
+
Contributions are welcome! Please read the [Contributing Guide](CONTRIBUTING.md), follow the [Code of Conduct](CODE_OF_CONDUCT.md), and adhere to [CONSTRAINTS.md](CONSTRAINTS.md).
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
git clone https://github.com/dipakrathod-tech/DevDoor.git
|
|
213
|
+
cd DevDoor
|
|
214
|
+
uv sync
|
|
215
|
+
|
|
216
|
+
./scripts/check.sh fast # pyright strict, ruff, import-linter, floor guard
|
|
217
|
+
./scripts/check.sh task # fast checks + pytest coverage (>= 80% changed lines) + bandit
|
|
218
|
+
./scripts/check.sh full # task checks + pip-audit (+ gitleaks if installed)
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
## Security
|
|
222
|
+
|
|
223
|
+
Please report security vulnerabilities privately as described in [SECURITY.md](SECURITY.md) rather than opening a public issue.
|
|
224
|
+
|
|
225
|
+
## License
|
|
226
|
+
|
|
227
|
+
Released under the [MIT License](LICENSE). Copyright (c) 2026 Dipak Rathod.
|
devdoor-0.1.0/README.md
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
<h1 align="center">DevDoor</h1>
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
Local HTTPS domains, streaming tunnels, and built-in TUI request replay—100% open-source in Python.
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="https://github.com/dipakrathod-tech/DevDoor/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/dipakrathod-tech/DevDoor/ci.yml?branch=main&style=flat-square&label=CI" alt="CI"></a>
|
|
9
|
+
<img src="https://img.shields.io/badge/python-3.15%2B-3776AB?style=flat-square&logo=python&logoColor=white" alt="Python 3.15+">
|
|
10
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue?style=flat-square" alt="MIT License"></a>
|
|
11
|
+
<img src="https://img.shields.io/badge/platform-macOS%20%7C%20Linux%20%7C%20Windows-111827?style=flat-square" alt="Platform">
|
|
12
|
+
<a href="https://github.com/dipakrathod-tech/devdoor-relay"><img src="https://img.shields.io/badge/relay-open%20source-16a34a?style=flat-square" alt="Open Source Relay"></a>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
myapp.test → localhost:3000
|
|
17
|
+
myapp.test/api → localhost:8080
|
|
18
|
+
dashboard.test → localhost:5173
|
|
19
|
+
share --port 3000 → https://brisk-otter.devdoor.dev (streaming SSE + WebSockets + replay)
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Why DevDoor?
|
|
23
|
+
|
|
24
|
+
- **Both sides open-source:** Pair the CLI with the self-hostable [`devdoor-relay`](https://github.com/dipakrathod-tech/devdoor-relay) server—no closed relay or paywalled vanity subdomains, custom domains, passwords, or TTLs.
|
|
25
|
+
- **True streaming & WebSockets:** Multiplexes HTTP body chunks, SSE/LLM streams, and WebSockets (Vite/Next.js HMR) over a single backpressure-controlled connection instead of buffering entire payloads in memory.
|
|
26
|
+
- **Built-in TUI Inspector & Replay:** Inspect live headers and bodies, copy as `cURL`, and replay captured webhooks locally even after closing a tunnel (`devdoor inspect`).
|
|
27
|
+
- **Cross-platform:** Trusted local `.test` HTTPS on macOS and Linux, plus zero-admin `*.localhost` mode (and optional elevated `.test`) on Windows.
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
> **Note:** Not yet published on PyPI—install directly from GitHub or a local source clone.
|
|
32
|
+
|
|
33
|
+
Requires **Python 3.15+** and [`uv`](https://docs.astral.sh/uv/) (or `pipx`):
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
uv tool install git+https://github.com/dipakrathod-tech/DevDoor.git
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Or run from a source checkout:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
git clone https://github.com/dipakrathod-tech/DevDoor.git
|
|
43
|
+
cd DevDoor
|
|
44
|
+
uv sync
|
|
45
|
+
uv run devdoor --help
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Quick Start
|
|
49
|
+
|
|
50
|
+
Map a local app to a trusted HTTPS domain:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
devdoor start myapp --port 3000
|
|
54
|
+
# https://myapp.test → localhost:3000
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Expose a local server (or multi-route project) to the internet:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
devdoor share --port 3000
|
|
61
|
+
# https://brisk-otter.devdoor.dev → localhost:3000
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Local HTTPS Domains
|
|
65
|
+
|
|
66
|
+
Start and stop local domains with automatic Root CA trust and per-domain SNI TLS certificates:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
devdoor start myapp --port 3000
|
|
70
|
+
devdoor start api --port 8080
|
|
71
|
+
devdoor start myapp --port 3000 --wait --timeout 15s # wait until upstream listens
|
|
72
|
+
devdoor stop myapp # stop one domain
|
|
73
|
+
devdoor stop # stop all domains
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Bare names default to `.test` on macOS/Linux (or `.localhost` in zero-admin Windows mode). You can specify any custom TLD explicitly:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
devdoor start app.loc --port 3000 # https://app.loc → localhost:3000
|
|
80
|
+
devdoor start my.demo --port 4000 # https://my.demo → localhost:4000
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
> **Note:** Avoid `.local`—it is reserved for mDNS and can cause slow DNS lookups on macOS and Linux.
|
|
84
|
+
|
|
85
|
+
Route multiple URL paths under one domain:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
devdoor start myapp --port 3000 --route /api=8080 --route /ws=9000 --cors
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Or declare services in `devdoor.yaml` (or `.devdoor.yaml`) at your project root:
|
|
92
|
+
|
|
93
|
+
```yaml
|
|
94
|
+
services:
|
|
95
|
+
- domain: myapp
|
|
96
|
+
port: 3000
|
|
97
|
+
routes:
|
|
98
|
+
- path: /api
|
|
99
|
+
port: 8080
|
|
100
|
+
- domain: dashboard
|
|
101
|
+
port: 5173
|
|
102
|
+
log_mode: full # full | minimal | off
|
|
103
|
+
cors: true # inject dev CORS headers on proxied responses
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
devdoor up # start all project services
|
|
108
|
+
devdoor up --config /path/to/devdoor.yaml
|
|
109
|
+
devdoor down # stop project services only
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## Internet Sharing & Self-Hosting
|
|
113
|
+
|
|
114
|
+
Authenticate via browser OAuth (`GitHub` / `OIDC`) or an API token, then share a local port or a `devdoor.yaml` multi-route service:
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
devdoor login # browser OAuth device flow
|
|
118
|
+
devdoor login --token dd_your_api_token # headless / CI / self-hosted token
|
|
119
|
+
devdoor logout # clear stored local credentials
|
|
120
|
+
devdoor config set relay https://tunnel.example.com # point to your own devdoor-relay
|
|
121
|
+
devdoor config show # inspect current config
|
|
122
|
+
|
|
123
|
+
devdoor share --port 3000 # random subdomain
|
|
124
|
+
devdoor share myapp # share multi-route devdoor.yaml service
|
|
125
|
+
devdoor share --port 3000 --subdomain demo # reserved vanity subdomain
|
|
126
|
+
devdoor share --port 3000 --password secret # password-protected tunnel (HTTP Basic Auth)
|
|
127
|
+
devdoor share --port 3000 --ttl 30m # auto-expire after 30 minutes
|
|
128
|
+
devdoor share --port 3000 --domain api.example.com # verified custom domain
|
|
129
|
+
devdoor share --port 3000 --preserve-host # preserve incoming public Host header
|
|
130
|
+
devdoor share --port 3000 --cors # inject dev CORS headers
|
|
131
|
+
devdoor share --port 3000 --tui # live Textual inspector during share
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Manage verified custom domains and reserved vanity subdomains:
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
devdoor domain add api.example.com
|
|
138
|
+
devdoor domain verify api.example.com
|
|
139
|
+
devdoor domain list
|
|
140
|
+
devdoor domain remove api.example.com
|
|
141
|
+
|
|
142
|
+
devdoor subdomain list
|
|
143
|
+
devdoor subdomain release demo
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### Browser Warning Gate
|
|
147
|
+
|
|
148
|
+
Random-subdomain tunnels display a one-time interstitial notice on browser page loads to protect shared relay domains. It is skipped automatically for vanity subdomains, custom domains, password-protected tunnels, and programmatic HTTP clients (`curl`, webhooks, `fetch`/XHR, CORS preflights, WebSockets). Browser-like scripts can also bypass it explicitly:
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
curl -H "DevDoor-Skip-Browser-Warning: 1" https://brisk-otter.devdoor.dev/
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
## Request Inspector, Logs & Diagnostics
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
devdoor inspect # launch Textual TUI inspector & local replay
|
|
158
|
+
devdoor inspect --domain myapp.test # filter exchanges to one domain
|
|
159
|
+
devdoor list # list local domains + active tunnels (alias: ls)
|
|
160
|
+
devdoor list --json
|
|
161
|
+
|
|
162
|
+
devdoor logs # view captured access logs
|
|
163
|
+
devdoor logs --follow myapp # tail logs for one domain (-f)
|
|
164
|
+
devdoor logs --flush # clear stored logs from inspector.db
|
|
165
|
+
|
|
166
|
+
devdoor doctor # verify CA, trust store, port forwarding, hosts, certs
|
|
167
|
+
devdoor upgrade # upgrade devdoor via uv/pipx/pip (alias: update)
|
|
168
|
+
devdoor version # print version and Python runtime
|
|
169
|
+
devdoor uninstall # remove CA, trust, hosts entries, firewall rules, ~/.devdoor
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
## Contributing
|
|
173
|
+
|
|
174
|
+
Contributions are welcome! Please read the [Contributing Guide](CONTRIBUTING.md), follow the [Code of Conduct](CODE_OF_CONDUCT.md), and adhere to [CONSTRAINTS.md](CONSTRAINTS.md).
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
git clone https://github.com/dipakrathod-tech/DevDoor.git
|
|
178
|
+
cd DevDoor
|
|
179
|
+
uv sync
|
|
180
|
+
|
|
181
|
+
./scripts/check.sh fast # pyright strict, ruff, import-linter, floor guard
|
|
182
|
+
./scripts/check.sh task # fast checks + pytest coverage (>= 80% changed lines) + bandit
|
|
183
|
+
./scripts/check.sh full # task checks + pip-audit (+ gitleaks if installed)
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## Security
|
|
187
|
+
|
|
188
|
+
Please report security vulnerabilities privately as described in [SECURITY.md](SECURITY.md) rather than opening a public issue.
|
|
189
|
+
|
|
190
|
+
## License
|
|
191
|
+
|
|
192
|
+
Released under the [MIT License](LICENSE). Copyright (c) 2026 Dipak Rathod.
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "devdoor"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Open-source local HTTPS domain proxy, streaming tunnel client, and TUI inspector"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = "MIT"
|
|
7
|
+
license-files = ["LICENSE"]
|
|
8
|
+
keywords = [
|
|
9
|
+
"https",
|
|
10
|
+
"local-development",
|
|
11
|
+
"reverse-proxy",
|
|
12
|
+
"tunnel",
|
|
13
|
+
"websocket",
|
|
14
|
+
"tui",
|
|
15
|
+
]
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 4 - Beta",
|
|
18
|
+
"Environment :: Console",
|
|
19
|
+
"Intended Audience :: Developers",
|
|
20
|
+
"Operating System :: MacOS",
|
|
21
|
+
"Operating System :: Microsoft :: Windows",
|
|
22
|
+
"Operating System :: POSIX :: Linux",
|
|
23
|
+
"Programming Language :: Python :: 3",
|
|
24
|
+
"Programming Language :: Python :: 3.15",
|
|
25
|
+
"Topic :: Internet :: Proxy Servers",
|
|
26
|
+
"Topic :: Software Development :: Testing",
|
|
27
|
+
]
|
|
28
|
+
requires-python = ">=3.15"
|
|
29
|
+
dependencies = [
|
|
30
|
+
"aiohttp>=3.14.5",
|
|
31
|
+
"aiosqlite>=0.22.1",
|
|
32
|
+
"cryptography>=50.0.2",
|
|
33
|
+
"psutil>=7.2.2",
|
|
34
|
+
"pydantic>=2.14.4",
|
|
35
|
+
"pyyaml>=6.0.4",
|
|
36
|
+
"rich>=15.0.0",
|
|
37
|
+
"textual>=8.2.8",
|
|
38
|
+
"typer>=0.29.3",
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
[[project.authors]]
|
|
42
|
+
name = "Dipak Rathod"
|
|
43
|
+
email = "dipakrathod.tech@gmail.com"
|
|
44
|
+
|
|
45
|
+
[project.scripts]
|
|
46
|
+
devdoor = "devdoor.cli.app:main"
|
|
47
|
+
|
|
48
|
+
[project.urls]
|
|
49
|
+
Homepage = "https://github.com/dipakrathod-tech/DevDoor"
|
|
50
|
+
Repository = "https://github.com/dipakrathod-tech/DevDoor"
|
|
51
|
+
Issues = "https://github.com/dipakrathod-tech/DevDoor/issues"
|
|
52
|
+
Security = "https://github.com/dipakrathod-tech/DevDoor/security/advisories"
|
|
53
|
+
|
|
54
|
+
[dependency-groups]
|
|
55
|
+
dev = [
|
|
56
|
+
"bandit>=1.8.0",
|
|
57
|
+
"import-linter>=2.1",
|
|
58
|
+
"pip-audit>=2.7.3",
|
|
59
|
+
"pyright>=1.1.390",
|
|
60
|
+
"pytest>=8.3.4",
|
|
61
|
+
"pytest-asyncio>=0.25.0",
|
|
62
|
+
"pytest-cov>=6.0.0",
|
|
63
|
+
"ruff>=0.9.0",
|
|
64
|
+
]
|
|
65
|
+
|
|
66
|
+
[build-system]
|
|
67
|
+
requires = ["uv_build>=0.13.10,<0.14.0"]
|
|
68
|
+
build-backend = "uv_build"
|
|
69
|
+
|
|
70
|
+
[tool.ruff]
|
|
71
|
+
target-version = "py315"
|
|
72
|
+
line-length = 100
|
|
73
|
+
src = [
|
|
74
|
+
"src",
|
|
75
|
+
"tests",
|
|
76
|
+
"scripts",
|
|
77
|
+
]
|
|
78
|
+
extend-exclude = ["reference_data"]
|
|
79
|
+
|
|
80
|
+
[tool.ruff.lint]
|
|
81
|
+
select = [
|
|
82
|
+
"E",
|
|
83
|
+
"F",
|
|
84
|
+
"I",
|
|
85
|
+
"UP",
|
|
86
|
+
"B",
|
|
87
|
+
"SIM",
|
|
88
|
+
"RUF",
|
|
89
|
+
]
|
|
90
|
+
|
|
91
|
+
[tool.pyright]
|
|
92
|
+
pythonVersion = "3.15"
|
|
93
|
+
typeCheckingMode = "strict"
|
|
94
|
+
include = [
|
|
95
|
+
"src",
|
|
96
|
+
"tests",
|
|
97
|
+
"scripts",
|
|
98
|
+
]
|
|
99
|
+
exclude = [
|
|
100
|
+
"reference_data",
|
|
101
|
+
".venv",
|
|
102
|
+
]
|
|
103
|
+
|
|
104
|
+
[tool.pytest.ini_options]
|
|
105
|
+
testpaths = ["tests"]
|
|
106
|
+
asyncio_mode = "auto"
|
|
107
|
+
asyncio_default_fixture_loop_scope = "function"
|
|
108
|
+
|
|
109
|
+
[tool.coverage.run]
|
|
110
|
+
branch = true
|
|
111
|
+
source = ["src/devdoor"]
|
|
112
|
+
|
|
113
|
+
[tool.coverage.report]
|
|
114
|
+
show_missing = true
|
|
115
|
+
skip_empty = true
|
|
116
|
+
|
|
117
|
+
[tool.importlinter]
|
|
118
|
+
root_package = "devdoor"
|
|
119
|
+
include_external_packages = true
|
|
120
|
+
|
|
121
|
+
[[tool.importlinter.contracts]]
|
|
122
|
+
name = "Keep protocol stdlib-only"
|
|
123
|
+
type = "forbidden"
|
|
124
|
+
source_modules = ["devdoor.core.protocol"]
|
|
125
|
+
forbidden_modules = [
|
|
126
|
+
"aiohttp",
|
|
127
|
+
"pydantic",
|
|
128
|
+
"yaml",
|
|
129
|
+
"cryptography",
|
|
130
|
+
"textual",
|
|
131
|
+
"typer",
|
|
132
|
+
"rich",
|
|
133
|
+
"aiosqlite",
|
|
134
|
+
"psutil",
|
|
135
|
+
"devdoor_relay",
|
|
136
|
+
"pytest",
|
|
137
|
+
]
|
|
138
|
+
unmatched_ignore_imports_alerting = "none"
|
|
139
|
+
|
|
140
|
+
[[tool.importlinter.contracts]]
|
|
141
|
+
name = "Keep runtime package free of relay and test frameworks"
|
|
142
|
+
type = "forbidden"
|
|
143
|
+
source_modules = ["devdoor"]
|
|
144
|
+
forbidden_modules = [
|
|
145
|
+
"devdoor_relay",
|
|
146
|
+
"pytest",
|
|
147
|
+
]
|
|
148
|
+
unmatched_ignore_imports_alerting = "none"
|
|
149
|
+
|
|
150
|
+
[[tool.importlinter.contracts]]
|
|
151
|
+
name = "Keep proxy-core independent of higher layers"
|
|
152
|
+
type = "forbidden"
|
|
153
|
+
source_modules = [
|
|
154
|
+
"devdoor.core",
|
|
155
|
+
"devdoor.proxy.forwarder",
|
|
156
|
+
]
|
|
157
|
+
forbidden_modules = [
|
|
158
|
+
"devdoor.tunnel",
|
|
159
|
+
"devdoor.platform",
|
|
160
|
+
"devdoor.tui",
|
|
161
|
+
"devdoor.inspector",
|
|
162
|
+
"devdoor.cli",
|
|
163
|
+
]
|
|
164
|
+
unmatched_ignore_imports_alerting = "none"
|