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";
import { ChevronLeft, Sparkles } from "lucide-react";
import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
export function IosFeatureHeader({
title,
backLabel,
onBack,
onAI,
scrolled,
safeTop = true,
}: {
title: string;
backLabel: string;
onBack: () => void;
onAI: () => void;
scrolled: boolean;
/** Skip the notch pad when a parent already cleared the status area (iPad tab bar). */
safeTop?: boolean;
}) {
return (
<header
data-slot="mobile-feature-header"
className={cn(
"shrink-0 border-b transition-[background-color,border-color] duration-200",
scrolled ? "glass border-border bg-[var(--glass-bar)]" : "border-transparent bg-transparent",
)}
style={safeTop ? { paddingTop: "var(--sai-top)" } : undefined}
>
<div className="relative flex h-[46px] items-center px-1.5">
<Button
type="button"
variant="ghost"
onClick={onBack}
aria-label={`Back to ${backLabel}`}
className="absolute left-1 top-1/2 h-[44px] max-w-[34%] -translate-y-1/2 gap-0 overflow-hidden px-1 text-[17px] font-normal leading-[22px] tracking-[-0.43px] text-info hover:bg-transparent hover:text-info"
>
<ChevronLeft className="size-[25px] shrink-0" aria-hidden />
<span className="truncate">{backLabel}</span>
</Button>
<span className="mx-auto max-w-[44%] truncate text-[17px] font-semibold leading-[22px] tracking-[-0.43px] text-foreground">{title}</span>
<Button
type="button"
variant="ghost"
aria-label="Ask AI"
onClick={onAI}
className="absolute right-1 top-1/2 grid size-[44px] -translate-y-1/2 place-items-center rounded-full p-0 text-info hover:bg-[var(--fill)] hover:text-info"
>
<Sparkles className="size-5" aria-hidden />
</Button>
</div>
</header>
);
}