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 { currentSessionPolicy, getApprovedDevice } from "./device-store";
import { configuredSessionCookieScope } from "./session-cookie";
import { deviceSessionValid } from "./live-session";
import { roleAtLeast, type DeviceRole } from "./roles";
import type { SessionPayload } from "./session";
export async function liveSessionAuthorized(session: SessionPayload, role: DeviceRole): Promise<boolean> {
if (!session.device_id) return false;
const [device, policy] = await Promise.all([getApprovedDevice(session.device_id), currentSessionPolicy(configuredSessionCookieScope())]);
return deviceSessionValid(session, device) && roleAtLeast(device.role, role) &&
session.cookie_scope === policy.scope && session.cookie_epoch === policy.epoch;
}