Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.
TypeScript browser-shellcontrol-planefile-managerhomelabmobile-firstnextjsptyreactself-hostedserver-managementshadcn-uisysadmintailwindcssterminaltypescriptvpsweb-desktopweb-terminal
import { execFileSync } from "node:child_process";
import { readFileSync } from "node:fs";
// Keep operator-instance identities out of the portable/public repository. Build
// these strings from fragments so the guard does not exempt itself by accident.
const forbidden = [
["mso", "rahmanef", "com"].join("."),
["mso-ui", "rahmanef", "com"].join("."),
["game", "rahmanef", "com"].join("."),
["", "home", "rahman"].join("/"),
];
const candidates = execFileSync("git", ["ls-files", "--cached", "--others", "--exclude-standard"], { encoding: "utf8" })
.split("\n").filter(Boolean)
.filter((file) => !file.startsWith("coverage/") && !file.startsWith(".next/"));
const hits = [];
for (const file of candidates) {
let text;
// `Bun.file` made this guard silently inspect zero files under Node: the ReferenceError
// was swallowed by the catch, so `gates-12.sh` reported "passed" while reading nothing.
// `readFileSync` works under both runtimes, and a genuinely unreadable file still skips.
try { text = readFileSync(file, "utf8"); } catch { continue; }
const literals = /^(app|lib|frontend|components)\//.test(file) && !file.includes(".test.") ? [...forbidden, ["rahmanef", "com"].join(".")] : forbidden;
for (const literal of literals) if (text.toLowerCase().includes(literal.toLowerCase())) hits.push(`${file}: ${literal}`);
}
if (hits.length) {
console.error("Forbidden operator-instance literals in portable/public source:\n" + hits.join("\n"));
process.exit(1);
}
console.log(`instance literal guard passed (${candidates.length} files scanned)`);