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 { describe, expect, it } from "vitest";
import { safeReturnPath } from "./return-path";
describe("login return path", () => {
it.each(["https://evil.test", "//evil.test", "/x/..//evil.test", "/x/%2e%2e//evil.test", "/\\\\evil.test", "/\n/evil.test", "/login?returnTo=/login", null])("rejects unsafe destination %j", value => {
expect(safeReturnPath(value)).toBe("/");
});
it("preserves a local destination and query", () => {
expect(safeReturnPath("/integrations?transfer=1")).toBe("/integrations?transfer=1");
});
});