ftrtemis commited on
Commit
26415a1
·
verified ·
1 Parent(s): acdefcd

Deploy: ARTEMIS Server showcase v1.0

Browse files
Files changed (2) hide show
  1. README.md +8 -6
  2. index.html +114 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Artemis Server
3
- emoji: 💻
4
- colorFrom: yellow
5
- colorTo: blue
6
  sdk: static
7
  pinned: false
8
  ---
9
-
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
1
  ---
2
+ title: ARTEMIS Server
3
+ emoji: 📡
4
+ colorFrom: blue
5
+ colorTo: indigo
6
  sdk: static
7
  pinned: false
8
  ---
9
+ # ARTEMIS Server
10
+ Portable HTTP file server with integrated Cloudflare tunnel. Single Go binary.
11
+ Serve any directory to the internet instantly - no port forwarding, no config.
12
+ ARM64 + ARM builds for Termux/Android included.
index.html CHANGED
@@ -1,19 +1,114 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <title>ARTEMIS Server</title>
7
+ <style>
8
+ *{margin:0;padding:0;box-sizing:border-box}
9
+ body{background:#06090f;color:#c9d1d9;font-family:'Segoe UI',system-ui,sans-serif;
10
+ min-height:100vh;padding:40px 20px;display:flex;flex-direction:column;align-items:center}
11
+ .title{font-size:2.2rem;font-weight:800;letter-spacing:.08em;margin-bottom:8px;text-align:center;
12
+ background:linear-gradient(90deg,#58a6ff,#7ee8fa);
13
+ -webkit-background-clip:text;-webkit-text-fill-color:transparent}
14
+ .sub{color:#8b949e;font-size:.95rem;margin-bottom:40px;text-align:center;max-width:580px;line-height:1.6}
15
+ .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
16
+ gap:18px;width:100%;max-width:900px;margin-bottom:32px}
17
+ .card{background:#0d1117;border:1px solid #1e3a5f;border-radius:8px;padding:22px}
18
+ .card h3{color:#58a6ff;font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;margin-bottom:10px}
19
+ .card p,.card li{font-size:.87rem;color:#8b949e;line-height:1.7}
20
+ ul{padding-left:16px}
21
+ code{background:#161b22;color:#e3b341;padding:2px 6px;border-radius:3px;font-size:.82rem}
22
+ .flow{font-family:'Cascadia Code',monospace;font-size:.8rem;background:#0d1117;
23
+ border:1px solid #1e3a5f;border-radius:6px;padding:20px;max-width:900px;width:100%;margin-bottom:24px}
24
+ pre{white-space:pre;color:#c9d1d9}
25
+ .badge{display:inline-block;background:#1e3a5f;color:#58a6ff;border-radius:4px;
26
+ padding:2px 8px;font-size:.74rem;margin:2px}
27
+ .dl{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px;justify-content:center}
28
+ .btn{background:linear-gradient(135deg,#1e3a5f,#0d2137);border:1px solid #58a6ff;
29
+ color:#58a6ff;padding:10px 22px;border-radius:6px;font-size:.88rem;cursor:pointer;
30
+ text-decoration:none;letter-spacing:.04em}
31
+ </style>
32
+ </head>
33
+ <body>
34
+ <div class="title">ARTEMIS SERVER</div>
35
+ <div class="sub">A portable HTTP file server with an integrated Cloudflare tunnel.
36
+ One binary. Zero config. Serve any directory to the internet in seconds,
37
+ from any machine &mdash; no port forwarding, no firewall rules, no domain required.</div>
38
+
39
+ <div class="grid">
40
+ <div class="card">
41
+ <h3>How It Works</h3>
42
+ <p>Starts a local HTTP file server, then launches <code>cloudflared</code> in tunnel mode.
43
+ Cloudflare assigns a random <code>*.trycloudflare.com</code> URL that proxies straight to your machine.
44
+ Anyone with the link can access your files instantly.</p>
45
+ </div>
46
+ <div class="card">
47
+ <h3>Features</h3>
48
+ <ul>
49
+ <li>Single binary &mdash; no runtime, no installer</li>
50
+ <li>ARM64 + ARM builds for Android / Termux</li>
51
+ <li>Custom MIME types (video/mp4, audio/ogg)</li>
52
+ <li>Optional log file output</li>
53
+ <li>HTTP/2 and QUIC tunnel protocols</li>
54
+ <li>Graceful shutdown on Ctrl+C</li>
55
+ </ul>
56
+ </div>
57
+ <div class="card">
58
+ <h3>Stack</h3>
59
+ <p>
60
+ <span class="badge">Go</span>
61
+ <span class="badge">net/http</span>
62
+ <span class="badge">Cloudflared</span>
63
+ <span class="badge">ARM64</span>
64
+ <span class="badge">Termux</span>
65
+ <span class="badge">Windows</span>
66
+ </p>
67
+ <br>
68
+ <p>Built as a companion to the ARTEMIS ecosystem &mdash;
69
+ used to serve files from an Android device over a Cloudflare tunnel
70
+ without exposing any local ports.</p>
71
+ </div>
72
+ </div>
73
+
74
+ <div class="flow">
75
+ <div style="color:#58a6ff;margin-bottom:10px;font-size:.78rem;letter-spacing:.08em">ARCHITECTURE</div>
76
+ <pre>
77
+ Your Machine
78
+ +-----------------------+
79
+ | artemis-server |
80
+ | | Cloudflare Edge
81
+ | http.FileServer +------> *.trycloudflare.com ------> Anyone on the internet
82
+ | :8080 | (tunnel)
83
+ | |
84
+ | cloudflared tunnel |
85
+ +-----------------------+
86
+
87
+ $ ./artemis-server --dir /path/to/files --port 8080
88
+ Serving /path/to/files on http://0.0.0.0:8080
89
+ Tunnel URL: https://random-words-here.trycloudflare.com
90
+ </pre>
91
+ </div>
92
+
93
+ <div class="grid">
94
+ <div class="card">
95
+ <h3>Usage</h3>
96
+ <p>
97
+ <code>./artemis-server</code> &mdash; serve current dir on :8080<br><br>
98
+ <code>./artemis-server --dir ~/files --port 9000</code><br><br>
99
+ <code>./artemis-server --protocol quic --log server.log</code>
100
+ </p>
101
+ </div>
102
+ <div class="card">
103
+ <h3>Termux / Android</h3>
104
+ <p>The ARM64 binary runs natively in Termux with no root required.
105
+ Pair with <code>cloudflared</code> to instantly share files from your phone
106
+ to any device in the world. No app, no account, no subscription.</p>
107
+ </div>
108
+ </div>
109
+
110
+ <div style="margin-top:32px;color:#484f58;font-size:.8rem">
111
+ Part of the ARTEMIS ecosystem &middot; ftrtemis
112
+ </div>
113
+ </body>
114
+ </html>