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 { NextResponse } from "next/server";
import { getSessionActor } from "@/lib/auth/require-session";
import { rateLimited } from "@/lib/host/limits-api";
import { verifyAuth } from "@/lib/agent/server";
import { apiError } from "@/lib/host/request-api";
import { listDir } from "@/lib/host/fs-api";
export async function handleGetFsList(req: Request): Promise<Response> {
if (!(await verifyAuth(req)))
return NextResponse.json({ error: "unauthorized" }, { status: 401 });
const actor = await getSessionActor();
if (!actor) return NextResponse.json({ error: "unauthorized" }, { status: 401 });
if (rateLimited(`fs.enumerate:${actor}`, 30, 60_000)) return NextResponse.json({ error: "rate_limited" }, { status: 429 });
const path = new URL(req.url).searchParams.get("path") ?? "~";
try {
return NextResponse.json(await listDir(path, true, req.signal));
} catch (e) {
return apiError("fs/list", e);
}
}