Dev.to WebDev πŸ›  Dev πŸ‘ 2 πŸ“– 3 min read

Introducing Webbench 3.1: An Amiga Desktop for Your Real Machine

If you used an Amiga, you probably remember the Workbench screen: grey and blue bevels, the Topaz font, drawers instead of folders, and a menu bar you reached with the right mouse button. I wanted that desktop back, conn

Introducing Webbench 3.1: An Amiga Desktop for Your Real Machine

Webbench’s Amiga-style desktop with a home drawer and fish terminal

If you used an Amiga, you probably remember the Workbench screen: grey and blue bevels, the Topaz font, drawers instead of folders, and a menu bar you reached with the right mouse button. I wanted that desktop back, connected to the files, drives, and shell on a modern machine.

So I built Webbench 3.1. It’s a single Go executable that serves an AmigaOS 3.1-style desktop to your browser. Behind it are a real macOS or Linux filesystem, an interactive fish terminal, and live host stats.

Drawers that open real folders

Mounted drives and your home drawer appear on the desktop. Double-click one and you can browse, create, rename, duplicate, edit, or delete files. MultiView previews text and binary files, and a drawer refreshes when something changes on disk outside Webbench.

The Shell window runs fish in a real pseudoterminal, so you get completion, history, keyboard shortcuts, and interactive programs. The window title follows the working directory or running command. The desktop bar shows memory usage, and SysMonitor adds disk and memory readouts.

These are the host’s files and processes. Delete a file here and it’s deleted on disk.

One executable, including the shell

I wanted to copy one file to a machine and run it. Go embeds the desktop’s HTML, CSS, and JavaScript, the Topaz fonts, talkDOM, the widget library, and the fish build for the target platform. There’s no separate frontend build at runtime, no CDN, and no system-wide fish installation.

On Linux, Webbench tries to launch fish from memory and can fall back to an extracted executable. On macOS, it extracts fish into the project directory. Shell history and configuration stay under that project’s fish directory, separate from my everyday setup. That separation is for configuration, not for restricting access to files.

The desktop starts as Markdown

Webbench generates a plain file called filesystem.md on startup and when you rescan. The file describes the drives, the home drawer, and registered apps. You can open it in an editor, diff it, or change it by hand. Even the protection flags borrow from AmigaDOS.

The interface uses talkDOM for message passing. When I click Update All, an HTML attribute tells the desktop to rescan, refresh the open windows, update the memory readout, and write a status line. The server sends back HTML fragments. Moving that behavior and the shared controls out of the main desktop script made it much easier to follow.

Building little desktop tools in Go

The GadTools Gallery beside Webbench’s SysMonitor

The Go SDK, pkg/wbui, takes its cues from Intuition and GadTools. You compose a window from controls like bevel boxes, tabs, buttons, and readouts, then register it as an app. Webbench adds an icon to the Apps drawer and connects the window to its server-side actions. SysMonitor and the GadTools Gallery both use the same SDK. The SDK guide shows how to add your own tool.

Try it locally

The Amiga-inspired Webbench login screen

Build it from the Webbench repository:

git clone https://github.com/eringen/webbench.git
cd webbench
CGO_ENABLED=0 go build -trimpath -o webbench .
./webbench

Open http://127.0.0.1:8080 and sign in with the ordinary OS account running Webbench. The repository documents builds for ARM64 and x86-64 on macOS and Linux.

I’d leave it on loopback. Webbench is a single-user administration tool with access to real files and a real shell. It isn’t a sandbox, and I wouldn’t expose it directly to the public internet.

Thanks to AmigaOS 3.1, Intuition, and GadTools for the ideas, rewtnull/amigafonts for Topaz, and fish for the shell.

πŸ“° Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.