Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- README.md +7 -4
- index.html +10 -19
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
title: Surface Preflight
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
|
|
|
| 7 |
pinned: false
|
|
|
|
| 8 |
---
|
|
|
|
| 9 |
|
| 10 |
-
|
|
|
|
| 1 |
---
|
| 2 |
title: Surface Preflight
|
| 3 |
+
emoji: 🛰️
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
sdk: static
|
| 7 |
+
app_file: index.html
|
| 8 |
pinned: false
|
| 9 |
+
license: mit
|
| 10 |
---
|
| 11 |
+
Preflight any URL with [Surface](https://nova-otter-delta-cloud.grok.me), usage-priced infra for machine traffic. MCP: https://nova-otter-delta-cloud.grok.me/mcp
|
| 12 |
|
| 13 |
+

|
index.html
CHANGED
|
@@ -1,19 +1,10 @@
|
|
| 1 |
-
<!doctype html>
|
| 2 |
-
<
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 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><html><head><meta charset="utf-8"><title>Surface Preflight</title>
|
| 2 |
+
<style>body{font-family:system-ui,sans-serif;max-width:720px;margin:40px auto;padding:0 16px}input{width:70%;padding:8px}button{padding:8px 14px}pre{background:#f4f4f4;padding:12px;overflow:auto}</style></head>
|
| 3 |
+
<body><h1>🛰️ Surface Preflight</h1>
|
| 4 |
+
<p>Check reachability, redirects and headers for any URL with <a href="https://nova-otter-delta-cloud.grok.me">Surface</a>, usage-priced infrastructure for machine traffic. MCP: <code>https://nova-otter-delta-cloud.grok.me/mcp</code></p>
|
| 5 |
+
<input id="u" value="https://example.com"> <button onclick="go()">Preflight</button>
|
| 6 |
+
<pre id="o">Result appears here.</pre>
|
| 7 |
+
<p>Install: <code>pip install surfaceapi</code> or <code>npm i @surfaceapi/surface</code>. Free key: <code>POST /v1/keys</code>.</p>
|
| 8 |
+
<img src="https://nova-otter-delta-cloud.grok.me/badge/surface.svg" alt="Surface"> <img src="https://nova-otter-delta-cloud.grok.me/px/fctqxeuv" width="1" height="1" alt="">
|
| 9 |
+
<script>async function go(){const o=document.getElementById('o');o.textContent='...';try{const r=await fetch('https://nova-otter-delta-cloud.grok.me/v1/preflight',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({url:document.getElementById('u').value})});o.textContent=JSON.stringify(await r.json(),null,2)}catch(e){o.textContent='Error: '+e}}</script>
|
| 10 |
+
</body></html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|