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
"use client";
// Slice-local ui primitive (minimal controlled tabs, os-rr style) — the
// shadcn/radix tabs have a different API (value/onValueChange context), so
// the slice ships the variant its workspace was built against.
import * as React from "react";
import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
function Tabs({ className, children }: { className?: string; children: React.ReactNode }) {
return <div className={cn("flex flex-col", className)}>{children}</div>;
}
function TabsList({ className, children }: { className?: string; children: React.ReactNode }) {
return (
<div className={cn("inline-flex items-center gap-1 rounded-lg bg-secondary p-0.5", className)}>
{children}
</div>
);
}
function TabsTrigger({
active,
onClick,
children,
className,
}: {
active: boolean;
onClick: () => void;
children: React.ReactNode;
className?: string;
}) {
return (
<Button
type="button"
variant="ghost"
onClick={onClick}
className={cn(
// Coarse pointers: grow the tap target to ≥36px tall (visuals unchanged on desktop).
"h-auto rounded-md px-3 py-1 text-xs font-medium transition-colors [@media(pointer:coarse)]:min-h-9",
active ? "bg-card text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground",
className,
)}
>
{children}
</Button>
);
}
export { Tabs, TabsList, TabsTrigger };