Powerful Edition · v0.1.0-preview1 · an original retro desktop OS
The 1999 desktop, rebuilt by hand.
CastaliaOS 98 PE is a late-nineties professional desktop written from the platform layer up in portable C: a real window manager, an Explorer-style file manager with a task pane, a word processor, a spreadsheet, a paint program, a media player and Solitaire. It boots over FreeDOS in protected mode, takes the VESA framebuffer and fits in a few megabytes. Every pixel, every window, no Microsoft code.
- 3.7 MB idle, 4 MB ceiling enforced in CI
- 7,609 unit checks
- 4 virtual desktops
- 800×600 at 16 bpp
What it is
Inspired by an era, not copied from a product
CastaliaOS began as a simple question: could you build that feeling from scratch, legally clean, small enough to run on a 386? It turned into a full system. Where most retro desktops are themes layered on a modern operating system, this is the real thing: a 32-bit DOS protected-mode application that starts over FreeDOS through the DOS/4GW extender, takes over the graphical session through VESA, and renders everything itself into one 32-bit back buffer in RAM.
One strict rule shaped it: nothing above the platform layer may touch the hardware. Two backends implement that seam. A headless host backend renders to memory and is what continuous integration, the sanitisers and every screenshot use. The DOS backend drives VESA, the mouse and keyboard interrupts and DPMI. Everything above the seam is portable C89, which is why the system can be tested on a modern machine and still ship to DOS.
| Boot path | BIOS → FreeDOS → DOS/4GW → DPMI → VESA desktop |
|---|---|
| Reference target | Pentium II with an Intel 440BX chipset, a VESA (VBE) BIOS, IDE disk, PS/2 keyboard and mouse |
| Video | 800×600×16, falling back to 640×480×16 and 640×480×8; 16- and 256-colour pipelines |
| Rendering | Software compositor into one XRGB buffer; dirty rectangles converted to RGB565 or 3-3-2 on present |
| Language | Strict C89; Open Watcom for DOS, gcc or clang for the host build |
| Dependencies | None at runtime. DOS/4GW is bundled; FreeDOS is yours |
| Verification | 7,609 unit checks in 59 files, 74 demo scenes, valgrind, ASan, UBSan, strict-C89 lint, a DOS build and a QEMU boot per push |
Features and status
What is available, what is in validation, what comes next
Verified by the test suite on every change and booted in QEMU; validation on the reference hardware completes the path to 1.0.
available in the preview in validation built, pending hardware validation roadmap planned
Desktop and applications
- availableShellTwo-column Start panel, taskbar with Quick Launch and tray, four virtual desktops, window snapping with a preview outline, Alt+Tab, context menus, drop shadows, splash and shutdown screens, four screensavers and a Welcome tour.
- availableFile ManagerTask pane, address bar, three views with thumbnails, associations, drag and drop, find in files, a Recycle Bin with restore, archiving and Properties.
- availableOfficeCastaliaWrite and CastaliaSheet with unit-tested engines and CSV; CastaliaPaint with eleven tools and BMP files.
- availableUtilitiesNotepad, Calculator, Task Manager, Log Viewer, Control Center, System Information, Disk Usage treemap, File Compare, Character Map, Console, Help, Theme Editor, Clock, Calendar and Agenda, Benchmark Suite.
- availableGamesMines, Solitaire with drag and drop and the win cascade, FreeCell.
- availableTheming and extensionsClassic, Storm, Forest, High Contrast and Aurora presets with live recolour; a package format with validator, loader and SDK headers.
Hardware, media and network
- availableBoot, install and recoveryCBOOT safe launcher, Safe Mode, a crash boundary, last-known-good config, INSTALL.EXE with install, uninstall, backup, repair and upgrade, a FreeDOS floppy builder.
- availableMedia PlayerSample-driven visualiser, equaliser and playlist.
- in validationSound on DOSSound Blaster cues over 8-bit DMA; streaming playback for the Media Player is on the roadmap.
- in validationNetworkingAn original ARP, IPv4, ICMP and UDP stack with a ping window and a DOS packet-driver client; receive path, TCP and a downloader follow.
- roadmapHardware validationPS/2, VESA modes, IDE, CD and audio on the reference Pentium II system.
- roadmapBootable CD or USB image, localisation, an add-on catalogueToday the preview installs onto an existing FreeDOS system.
Screens
Aurora theme, 800×600, straight from the renderer
Rendered by the system's own compositor, the same pixels the DOS build presents. Click any image to open the viewer.
Six silent clips from the press kit. They play while on screen and pause when they scroll away; the animated tour is in the press kit.
Download
v0.1.0-preview1
Public preview, 19 August 2026. The archive is the installable tree: the desktop, the safe launcher, the installer, the bundled DOS/4GW extender, boot templates and documentation. Nothing to compile.
Checksum as published by GitHub for the release asset. Release notes: v0.1.0-preview1 on GitHub. A host build for Linux and macOS is available from source.
- Copy the
CASTALIA\folder to the root of a FreeDOS drive asC:\CASTALIA. - Run
BIN\INSTALL.EXE. It backs up CONFIG.SYS and AUTOEXEC.BAT and adds the boot entries; running it again is safe. - Reboot, or start it now with
BIN\CBOOT.EXE. Add/safefor Safe Mode. - Optional: load
CTMOUSE.EXE /Pfirst for a pointer. The whole desktop is keyboard-navigable without one. - Recovery: press F5 or F8 at boot, then edit
SYS\CASTALIA.INI. The last known good configuration is kept for you.
Preview software
Verified in QEMU with FreeDOS and the CuteMouse driver, the recommended way to evaluate the preview. The emulator guide walks through it.
Roadmap
From preview to release
Public preview
Shell, file manager, office applications, games, theming, installer and recovery; a full test harness; a DOS build that boots in QEMU.
Hardware validation
The reference Pentium II system: PS/2, VESA modes, IDE, CD and audio.
Sound and network on DOS
Streaming playback for the Media Player; the network receive path, then TCP and a downloader; a user guide.
Setup and beyond
A bootable CD or USB image with guided setup, an add-on catalogue, localisation and performance work for lower-end targets.
CastaliaOS 98 PE (“Powerful Edition”) is an original retro computing project. It is not Microsoft Windows, Windows 98, Windows 98 Second Edition, MS-DOS or any Microsoft product, and it is not affiliated with, endorsed by or sponsored by Microsoft. “Windows”, “Windows 98” and related marks are the property of Microsoft Corporation and are used here only nominally, to describe the era and interaction style CastaliaOS is inspired by. It is not a Windows 98 clone and contains no Microsoft code, files, icons, sounds, fonts or branding.
Original code and artwork are MIT licensed, copyright 2026 Dave Abellán. Third-party parts, each with its licence in the bundle: DOS/4GW (DOS/4G, Rational Systems and Tenberry Software), bundled unmodified under a distribution licence held by Tombatossals Softworks LLC, so redistributors outside it must supply their own; the Tango Icon Library (public domain) as the default icon pack; the Spleen 5×8 font by Frederic Cambus (BSD-2-Clause) as the default text face.
Credit as: CastaliaOS 98 PE by Dave Abellán and Claudio di Castello (Tombatossals Softworks). Copyright or trademark concerns go to the issue tracker or [email protected].









