Merge commit '496274ce4e7a9745d5037a3efef93ff41bfc882a'

This commit is contained in:
Alexa Amundson
2025-11-20 17:45:20 -06:00
4 changed files with 865 additions and 158 deletions

952
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -19,5 +19,12 @@
"@types/node": "^20.12.7", "@types/node": "^20.12.7",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"typescript": "^5.4.3" "typescript": "^5.4.3"
"type": "module",
"main": "server.mjs",
"scripts": {
"start": "node server.mjs"
},
"dependencies": {
"express": "^4.21.0"
} }
} }

View File

@@ -249,6 +249,42 @@
text-align: center; text-align: center;
color: var(--muted); color: var(--muted);
font-size: 13px; font-size: 13px;
<meta charset="UTF-8" />
<title>BlackRoad OS</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
body {
margin: 0;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background: #050510;
color: #f5f5f5;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
.desktop {
border-radius: 16px;
padding: 24px 32px;
border: 1px solid #333;
box-shadow: 0 0 40px rgba(0,0,0,0.6);
background: radial-gradient(circle at top left, #3f89ff55, #050510 55%);
text-align: center;
max-width: 640px;
width: 100%;
}
h1 {
margin-bottom: 8px;
font-size: 1.8rem;
}
p {
margin: 4px 0;
opacity: 0.85;
}
.tag {
margin-top: 16px;
font-size: 0.85rem;
opacity: 0.7;
} }
</style> </style>
</head> </head>
@@ -337,6 +373,11 @@
<footer> <footer>
This placeholder keeps the domain alive while the full BlackRoad experience is wired up. This placeholder keeps the domain alive while the full BlackRoad experience is wired up.
</footer> </footer>
<div class="desktop">
<h1>BlackRoad OS</h1>
<p>Primary app endpoint is online.</p>
<p>Youre looking at the app behind <strong>app.blackroad.systems</strong>.</p>
<p class="tag">We can wire in agents, API, console, and more after this.</p>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,6 +1,9 @@
import express from 'express'; import express from 'express';
import path from 'path'; import path from 'path';
import { fileURLToPath } from 'url'; import { fileURLToPath } from 'url';
import express from "express";
import path from "path";
import { fileURLToPath } from "url";
const __filename = fileURLToPath(import.meta.url); const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename); const __dirname = path.dirname(__filename);
@@ -20,4 +23,22 @@ app.get('*', (_req, res) => {
app.listen(port, () => { app.listen(port, () => {
console.log(`BlackRoad OS placeholder server listening on port ${port}`); console.log(`BlackRoad OS placeholder server listening on port ${port}`);
const PORT = process.env.PORT || 8080;
app.use(express.static(path.join(__dirname, "public")));
app.get("/health", (_req, res) => {
res.json({
ok: true,
service: "blackroad-operating-system",
status: "healthy"
});
});
app.get("*", (_req, res) => {
res.sendFile(path.join(__dirname, "public", "index.html"));
});
app.listen(PORT, () => {
console.log(`BlackRoad OS app listening on port ${PORT}`);
}); });