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 type { Sample } from "../lib/samples";
// Zoomable image. The checkerboard transparency background lives on the parent
// stage; here we just render + scale the bitmap and surface its dimensions.
export function ImageView({ file, zoom }: { file: Sample; zoom: number }) {
const dims = file.dims;
return (
<div className="flex flex-col items-center gap-3">
{file.src ? (
// eslint-disable-next-line @next/next/no-img-element
<img
src={file.src}
alt={file.name}
className="max-h-full max-w-full rounded-lg shadow-2xl transition-transform duration-200"
style={{ transform: `scale(${zoom})` }}
/>
) : (
<div className="grid aspect-video w-[min(70vw,520px)] place-items-center rounded-lg border bg-card text-xs text-muted-foreground shadow-2xl">
No preview
</div>
)}
{dims && (
<span className="font-mono text-[11px] text-muted-foreground">
{dims.w} × {dims.h}
</span>
)}
</div>
);
}