01The short version
The DOS bulletin board program runs inside a small FreeDOS machine that boots in the caller's own browser tab, on an x86 emulator compiled to WebAssembly. The board's files don't live in the browser. They live on the web host, in one folder, and the DOS machine reaches them through a network drive whose server side is a piece of JavaScript in the same tab, talking to a PHP script on the host one file operation at a time. The board program talks to the caller through COM1, a serial port the emulator provides, driven by a small FOSSIL driver of our own. What comes out of COM1 is painted on screen as the classic CP437 terminal. What the caller types goes back in. The board believes it has answered a modem call on a serial line, exactly as it did in 1993.
The server never runs DOS, never runs an emulator, never listens on a port, and never keeps a process alive between requests. It serves files and arbitrates locks, and it stands between the board program and the caller's password. That last part is the piece nobody else has built, and it's what makes the whole thing safe enough to put on the open internet. It has its own section below.
02Where it came from
ATA is the sibling of ATDT BBS. ATDT is a modern bulletin board written in PHP: message areas, files, users, a SysOp console, all designed to run on cheap shared hosting with no daemon and no build step, presented to callers as a terminal with a modem connect ceremony rather than a web page. ATDT dials out, in the sense that it builds a new board in the old style.
In its 1.7 series ATDT gained DOS doors. Door games (Legend of the Red Dragon, TradeWars, Usurper and the rest) are DOS programs that a BBS launched for a caller, handing over the serial line. ATDT couldn't run them on the server, because the server is shared hosting with no ability to run a long-lived process, let alone a DOS one. So the DOS machine was built to run in the caller's browser instead. That machine is the foundation of everything that follows, and it works like this:
- The v86 emulator, an x86 PC in JavaScript and WebAssembly, boots a 1.44 MB FreeDOS floppy image in about two seconds.
- The floppy carries HimemX for extended memory, the kernel loaded high, about 600 KB of conventional memory free, a packet driver for the emulated NE2000 network card, the EtherDFS network file system client, and a FOSSIL driver written for the project.
- The door's files sit on the PHP host. The tab runs the server half of the EtherDFS protocol in JavaScript, so drive
D:inside DOS is served by the browser, which forwards reads and writes to the host one at a time. - Record locks, the DOS calls that let several nodes share a file safely, are forwarded to the host and arbitrated there, so two callers in two browsers on two continents can't tear the same file.
- Static files are cached in the browser; per-session scratch files never leave the tab; everything else is shared state on the host.
- A dead seat, meaning a closed tab, frees itself and its locks within ninety seconds.
With doors working, the obvious question followed. A BBS program is, from the outside, a very large door: a DOS program that reads and writes files in a directory and talks to a caller on COM1. If the machine could run a door for a caller, it could run the whole board for a caller, one node per browser. ATA is that inversion. The machine, the drive, the locks and the terminal were lifted from ATDT as they stood. Everything a board needs and a door doesn't was new.
03The machine in the tab
When a caller opens the board's URL, the page downloads the emulator (about 2.5 MB of WebAssembly and JavaScript plus the BIOS images) and the floppy image, all cached by the browser after the first visit. The page shows a modem dial while this happens: ATDT and the board's phone number, then RINGING, held until the machine is ready.
The floppy boots FreeDOS. CONFIG.SYS loads HimemX and puts DOS high. AUTOEXEC.BAT loads the packet driver, then the FOSSIL, then runs the EtherDFS client, which broadcasts for a server on the emulated Ethernet, finds the JavaScript in the tab, and maps the served volume as drive D:. Next, the batch calls a file the tab plants for this session only: it sets the clock from a value the server passed in (server time converted to the board's time zone, never the caller's clock), changes into the package's own directory, and runs the package's handoff line.
The handoff line is the invocation a front-end mailer used to hand a live call to the BBS: carrier up, skip the waiting-for-caller screen, put the logon prompt straight out the serial port. Every package has its own. Renegade takes RENEGADE.EXE -B{baud} -N{node} -Q. Fido takes FIDO.EXE {baud}/O. RBBS-PC takes its node, its definition file, a time cap and the baud. Maximus takes MAX.EXE -b{baud} -p1. T.A.G. takes keyword and value pairs. The profile for each package records the line, and the server substitutes the node number and the connect speed.
The board directory is mounted at the drive letter and path the package expects. Renegade ships configured for D:\R, and the machine's native drive letter is D:, so its configuration files work untouched. No paths are patched and no binaries are modified, ever. The rule is that ATA does exactly what a SysOp would have done in DOS, and nothing more.
When the board program exits, because the caller logged off or carrier dropped, the batch ends, a sentinel goes out the serial port, the tab tears the machine down, and the server closes the node's lease. The caller sees NO CARRIER.
04The drive that isn't there
Inside DOS, D: is an ordinary network drive. Every file call (open, read, write, seek, find first, lock) goes through the DOS redirector interface to EtherDFS, which packs it into an Ethernet frame and sends it to the emulated network card. The emulator hands the frame to the page, where a JavaScript implementation of the EtherDFS server side unpacks it and sends the answer frame back the same way. DOS never sees a real file handle; the JavaScript assigns the ids.
What the JavaScript does with each call depends on the file's class, declared per package in its profile:
- Static files (the executables, overlays, menus, art, help text) never change while the board runs. They're fetched whole before the machine boots, kept in the tab, remembered across visits, and revalidated in one round trip by size and stamp.
- Session files (swap files, per-node temp files, the planted batch) live only in the tab's memory. The server never sees them, and two nodes can never collide on them.
- Everything else is shared state and goes to the host: the user file, message bases, logs, node status files, door data. Reads pull the file through a cache that's flushed whenever the board's generation counter moves, since any write by anyone bumps it. Writes are acknowledged from the local copy and flushed behind, in strict order, so DOS is never left waiting on the host's latency for an ordinary write.
The wire to the host is plain HTTPS. The tab posts file operations to api.php, up to sixty-four in one request, every reply carrying the generation counter. On the host, the board lives in one folder. There's no database of files; the board directory is the board.
A DOS file call through EtherDFS gives up after about half a second, and a shared host's round trip can eat most of that. So the client warms the files a boot will need before the machine exists, answers a read against an in-flight pull the moment its own bytes have landed rather than when the file is complete, remembers directory listings while nothing has changed, and retries the odd failed transfer once after a breather. Several of these rules were learned the hard way, from a door dying mid-game because a 574 KB overlay's cold reload outlived a single read's patience.
Record locks are the one thing that must never be local. A lock call crosses the wire and is granted or refused by the host, so multi-node packages that rely on DOS record locking, which is every multi-node package of the era, behave as they did on a LAN. DOS releases a handle's locks when the handle closes and everything when the program exits, and neither event crosses the wire on its own, so the JavaScript says it for DOS. A player who left a battle in The Pit taught that rule: the winner spun forever against a lock nobody living held.
05The serial line
The board program talks to the caller through COM1. The emulator provides a serial UART at the standard address; the FOSSIL driver on the floppy implements the FTS-0061 interface that BBS software of the era expects, polled rather than interrupt driven because the emulated port runs at bus speed and buffering would only add latency. Packages that drive the UART directly instead of asking for a FOSSIL work on the same machine.
The FOSSIL is small, but it has history. Fido v12 drives its entire internal clock off one FOSSIL function; it hooks the interrupt the driver names and counts milliseconds in that handler, and every internal delay, including the goodbye's settle wait, spins on those counters. The driver originally answered that call behind a port check the specification says it must not have, and had two register roles reversed, so Fido hooked an interrupt nothing fires and waited forever at logoff. That was found by sampling the emulated CPU's instruction pointer from the page. The fix went into the driver's assembly source and the floppy was rebuilt.
On the caller's side of the port sits the terminal: a CP437 canvas with the IBM VGA font, an ANSI parser, hotkey and line input modes, and a baud throttle so screens paint at a period-correct pace. The machine's own VGA screen is never shown to callers; only what comes out of COM1. The SysOp can see the machine's screen in the console.
What a caller watches while this happens is the connect ceremony, and the dial tracks real progress: the emulator instantiating, the static bundle verifying, the boot, and then, on the first byte out of COM1, CONNECT with the speed. A board at its node cap, or one with a maintenance run in progress, answers BUSY before any emulator work is spent. Carrier is real on this line: the page can drop carrier detect into the guest, and the board sees a hangup the way it expects and gets its moment to save. That's how a SysOp's Disconnect button ends a call, and how a board that talks to a modem at logoff is hurried along. It's also what answers a mailer-shell package like Fido, which prints its goodbye and waits for the caller's carrier to drop.
A few packages needed a modem that behaves more exactly. Door-mode Citadels raise DTR and drop it in the same millisecond on their way up, then park it low for the whole session, because a board behind a mailer trusts the mailer's modem; the page must not read that as a dead boot.
06Nodes, leases, and classes
The server keeps one row per live node, called a lease. It records the node number, a token the browser presents on every request, a heartbeat, and the node's class. The browser heartbeats every thirty seconds; a lease silent for ninety seconds is dead, and the sweep closes it, releases its locks, and resets the package's node files so a ghost doesn't linger in who's online. A closed tab is a dropped carrier; the sweep is what returns the board to a clean state afterward.
The class is the heart of the access model, and it's decided only on the server:
- Unbound. The machine booted, nobody has logged on. It may read the package's files, read the user file with every password masked, write only the node's own files and logs, and append a new user record if the SysOp's policy allows applications. Nothing else.
- Bound. A caller has been identified through the relay. Adds the shared paths and the caller's own user record, with the protected fields pinned. Other callers' records stay masked.
- SysOp. The bound record's level meets the package's SysOp level. Full board access from inside the BBS, but other callers' passwords stay masked even here.
- Maintenance. A nightly event boot. Exclusive, full access, and a snapshot is taken before it starts.
- Console. The SysOp's DOS page, node zero, behind the console login. Trusted at the gate.
Every file operation that reaches the host is classified against the profile's access list before it touches the board directory. The list is first match wins, with globs over paths, and it names the minimum class and whether writes are allowed. Unlisted paths fall to shared, bound-only, read-only, and are logged so the profile can be extended. Nothing falls open.
07The credential relay
This is the part that had to be invented. There's no web login: the DOS board's own logon prompt is the login. And yet the browser, which runs the board program, must never hold a real password, because a caller can run anything in their own browser, patched or not.
The problem, stated plainly. These programs keep their user accounts in their own data files, and most keep the password in plain text; Renegade stores a checksum of it. The program reads the user file, finds the record, compares what the caller typed to what the record holds, and lets them in. If the file is served to the browser as is, every caller's browser could read every password. If the file isn't served, the program can't log anyone on. The relay resolves this without changing the program.
For every node, the server generates a session stand-in at boot: a random string the length of a password, encoded the way this package stores passwords. Every user record served to the node has its password field replaced by the stand-in, through the package's own encoding, so the program holds a file in which every account has the same password and that password is meaningless. Fields the profile names as secrets, such as a forgot-password answer, are served as a lone asterisk. No real password bytes go down the wire, in any form, to anyone.
The server watches which records the node reads. Every record read since the second most recent typed line forms the candidate window. When the caller types a line and presses Enter while the node is unbound, the browser sends the line to the server before the board program sees the Enter. The server compares the typed line against the real password of every record in the window, decoded from the clean file on disk. Exactly one match binds the node to that record. Several matches, from shared weak passwords across a file the program scanned, are disambiguated by the handle the caller already typed. No match? The line passes through unchanged.
On a bind, the browser erases what it typed into the program and types the stand-in instead. The program's own comparison passes, because the stand-in is exactly what its copy of the record holds. The caller typed their real password once, at the prompt they remember. None of it reached the program. Once bound, the relay is out of the loop and keystrokes go straight to COM1.
New callers go through the board's own application with no interception at all, because the board is establishing a password rather than checking one. The server's rule for an unbound node is that it may write only past the user file's end as it stood at boot, plus any index files the profile names. On the first write the server binds the node to the new record, pins the new-user level and flags to the package's own defaults whatever bytes the client sent, and reads the password the program wrote, for next time. The SysOp's policy switch gates the whole application on the server, which is the only gate that holds against a tampered client, and a daily cap per address limits drive-by applications.
A malicious client sees the stand-in in every masked record and can patch its own copy of the program to accept any password. The result is a locally logged-in program on a node the server still considers unbound. Every shared write is refused and the message bases are unreadable, so the program errors out. Binding happens only on the server, only on a real password match, and nothing the client can type or patch changes that.
If the relay never fires, the node stays unbound and the first shared write after logon is refused. A relay bug can strand a caller at a prompt. It can't hand one the board.
Failed candidates are throttled: eight per node drops the line, and twenty per address in fifteen minutes serves BUSY. Only lines checked against a record the board read after the first typed line spend the budget, so handles and application answers are never charged as password guesses. Every checked line leaves one breadcrumb in the log (typed length, window size, outcome, never the text), so a logon failure in the field is diagnosable from the log page alone.
08The write jail
The relay establishes who the caller is. The jail decides what their program may write, on the server, on every write, with no trust in the client.
- A bound node may write its own user record. On that write, the profile's protected fields (level, flags, download level, privilege bits) are overwritten with the values on disk before the write commits. No self-promotion, even from devtools.
- Writes aimed at any other caller's record are denied, logged, and tripwired, with one profile-scoped allowance: the package's own delivery bookkeeping. Renegade delivers email by rewriting the recipient's whole record with the waiting-mail byte bumped, so the profile names the fields a bound caller may land on a foreign record, and only those bytes pass.
- The password field isn't pinned, because callers may change their password, but a program writing the served mask back has the real password restored underneath it.
- Packed fields pin only their bits. Fido keeps the privilege in three bits of a word that also carries the caller's own screen settings, so the jail splices those bits and lets the rest through.
- Node files follow an own-node rule: node one writes its own temp files and nothing else.
- Truncating or deleting shared bases from a caller's seat is denied.
Classic BBS security assumed the executable was trusted and the caller was confined to what it allowed. ATA inverts that: the caller runs the executable. So the bridge is the only real boundary, and the product says so.
What the design prevents: reading other callers' passwords, privilege escalation, writing outside your own record, touching another node's files, exceeding the node count, colliding on a handle, and drive-by accounts when applications are closed.
What's detection and recovery rather than prevention: vandalism of message bases and door data by a caller who's already a member. That's covered by tripwires, snapshots, the package's own repair tools, and the ban list.
What's disclosed as not achievable in this design: private mail confidentiality inside the classic board, because a bound node can read the mail stores it's permitted to read. SysOps who care about it turn private mail off in the package.
09Package profiles
The machine, the drive, the relay, the jail, the locks, the leases, the snapshots and the events are package-independent. Everything that differs between packages lives in one profile, and every subsystem reads from it. A profile declares the files that identify the package and the exact versions it was verified against; the drive letter and path it expects, and the handoff line; the static and session globs and the access rows; the user file's record size and the offset, length and encoding of every field that matters; and the SysOp level, the node files to reset, the new-user steps, the console presets, the seeded nightly batch lines, and a plain-words note for the SysOp.
None of those numbers are guessed. A profile is written by bringing the package up for real: staging the install exactly as its documentation tells a SysOp to, booting it on the console, walking a real call over the wire, and reading the user file byte by byte against the package's own structures or published source. Each package had its own lessons:
- Renegade 1.40 stores the password as a checksum of its uppercased text, and the string next to it that looks like a password is the forgot-password answer. The first profile bound on the wrong field, and the Renegade development team's published Pascal source settled it in an afternoon.
- Fido v12 capitalizes a typed password like a name, so the stand-in must be capitalized letters only. It writes a new caller's record only after the goodbye's settle wait, so an applicant who never says goodbye isn't registered. That's the era's truth, kept.
- RBBS-PC 17.4 keeps its user file as a hash table with signed levels, stamps a sentinel into a slot the moment a caller picks Register, and answers logoff by restarting itself unless its configuration says otherwise.
- Maximus 3.01 refuses to boot if its language file isn't strictly older than its compiled configuration, so the installer preserves timestamps. Its phone prompt rejects any number containing 555-1212, by design of its source.
- The Citadel family's shipped sample configuration belongs to somebody's real machine on COM2 or COM4; the stagers set COM1. Asgard-86 drops characters fed back to back at its remote reader, so the test rigs type like a human.
- T.A.G. 2.7d2's user editor saves its file only on a clean quit, its phone and birthdate prompts take digits only, and its shipped security level allows one call per day.
Packages are distributed only with the rights holder's permission or under a license that allows it, and every package ships byte-identical to its release. The only files the stagers write are the ones a SysOp writes during installation. Door games aren't bundled; SysOps install their own, and the board launches them exactly as it always did, on the same serial line, with drop files the board writes itself.
10Two boards that are servers
Every other board ATA runs was written as one DOS program per line. Renegade, PCBoard, Synchronet and the others ran a copy of themselves on each node of a network, and the copies met through files on a shared drive: the user file, the message bases, the node table that says who's on, the door games' data. ATA gives each caller a machine and serves those files from the host, so the lines meet as they always did.
The Major BBS and TBBS were built the other way around. Each is one program that serves every line from one PC with a card full of serial ports, and part of what the lines share lives inside that program, where a second copy never sees it. Run one copy per caller, as on every other board, and the copies write over each other's work. ATA tried it. On TBBS, two callers' posts both came out numbered 1, and mail to a member who was online vanished when that member logged off.
They need different answers because they keep their shared state in different places. The Major BBS keeps most of it in Btrieve files, so ATA serves Btrieve itself and every caller runs a copy of the server against one shared record store. TBBS keeps it in memory. So ATA keeps that memory on the host, and every caller's browser runs only its own line of one shared TBBS. Either way, the host runs no DOS.
11The Major BBS 6.25
One server, and a copy for every caller
The Major BBS is Galacticomm's multi-line server. One program, MAJORBBS.EXE, runs under Phar Lap's 286 DOS extender, loads its features as modules (DLLs), keeps its users and messages in Btrieve 5 files, and drives every line itself as a modem channel, up to 256 of them.
On ATA each caller's browser runs a copy of that server for one line, which answers its modem on COM1 and serves a board with one live channel. Each copy thinks it's alone. Getting that to run on the emulator took engine work, each piece found on a real call:
- Two x87 instructions. Phar Lap saves and restores the floating-point unit with the 16-bit forms of FSAVE and FRSTOR, which the v86 emulator had only as stubs. The extender stopped with an invalid-opcode error before the board printed a word. ATA's build of v86 implements them now, one of the five patches it carries.
- File handles. The server opens more files than the boot floppy's FILES=40 allows. DOS refused the 38th open on its own, without asking the drive, and the board reported a missing file that was there. The page raises the limit to 99 for this board.
- A serial port that behaves like the hardware. The server's serial library reads the UART's line status and modem status registers in one 16-bit instruction and moves input through a 64-byte ring. v86 answered the word read with FFFFh and poured whole bursts into the port at once, so the server stored phantom bytes and overran its ring. ATA's engine answers word reads the way the chip does and feeds input at the pace a 16550's FIFO would. A 20 KB Zmodem upload went from as much as 55 seconds to 6.6.
- A modem to talk to. The server sends its modem AT commands, waits for OK and answers when the line rings. The caller's page plays that modem, with DSR and CTS up from power-on as an idle Hayes holds them, and carrier raised at CONNECT.
- A call that ends while the program keeps running. A server never exits after a caller, so the batch file that ends a call on every other board never finishes. The page closes the line eight seconds after the board drops DTR.
Btrieve, served by ATA
The package's record manager is Btrieve 5.00c, a resident program the server calls through interrupt 7Bh, and it was written for one PC. It never takes a DOS record lock and never re-reads what it has cached, so two copies of the server on one set of files would each write over the other's changes without knowing.
ATA replaces it with a requester of its own, ATABTRV.COM: 976 bytes of assembly that take interrupt 7Bh at the offset where BTRIEVE.EXE's handler sits. It has no logic. Each call it gets is written to a mailbox file on D:, and once the caller's page has answered, the requester reads the answer back from the same file. Behind it sits ATA's own record manager, PHP over SQLite on the host, seeded at install from the board's own .DAT files, with every record kept at the address the real record manager gave it, so the server's own record positions still line up. The server can't tell. Its executables and modules stay byte for byte as Galacticomm shipped them.
Matching a real record manager meant matching its habits, so ATA recorded every call the server made to the original and compared them with its own answers, one call at a time. Four of its habits mattered:
- A key-only read still writes the record length back.
- The status call appends a 265-byte collating table after the key definitions.
- A direct read with a length of zero still answers.
- The server keeps its own data in the position block from byte 90 on. An early version overwrote it, and the server copied a record to a null pointer and stopped.
Speed decided the rest. A boot makes about 185 Btrieve calls and a logon 29 to 42, nearly all of them reads, and one round trip to the host for each would add tens of seconds. So the page keeps a read replica. Every served file but the user file comes down once a call, about 121 KB on a fresh board, and the page answers reads of those files itself, on the spot. Writes go to the host. Every reply carries each file's generation, so when another line changes a file, the page reads that file from the host until a fresh copy arrives. Measured to the main menu, the page answered 206 of 211 Btrieve calls and sent 5 to the host, and the call took no more than 1.1 times as long as on the package's own BTRIEVE.EXE. The replica is a line-for-line port of the host's engine, and a randomized test of about 16,000 calls runs through both and wants every answer the same, byte for byte.
The jail works record by record here. A caller's copy reads the user file with other members' passwords and private details masked. It may write its own record, with the level and flags pinned on the host, and add one new record while applications are open. Some writes the board makes on every call are ones a caller mustn't land on the shared store, such as the key rings and the system variables. Those go into a private copy for that call, which the server reads back until the call ends, much as BTRIEVE.EXE's own cache would have held them. Each operation is one transaction, so a closed tab can't leave a file half written.
Message numbers took one more piece, because the server reads its message counter at start-up and never again. ATA answers that one read with the start of a block of numbers set aside for that copy and refuses an insert outside the block, so six copies number their posts from six blocks. None collide.
Lines
Each line runs its own copy with its own compiled options: the server's own MCVPATH variable puts a directory in front of every options file it opens, so each line reads from a directory of its own, made when someone first dials that line. A fresh install opens six lines, and the Settings page offers up to 256. Six at once are proven. Six new callers signed up on six lines at the same time, then all six uploaded to the File Library within a second and a half of each other, and every file landed byte for byte with the record store whole afterward.
Each copy runs flat out. The server reprograms the PC's timer to about 1,165 ticks a second and does work on every tick, so even an idle copy at the main menu was halted in fewer than 4 percent of samples. On ATA that work runs on the caller's own processor.
The Teleconference and paging across lines
The package's Teleconference and its who's-online list live in the server's memory, so with six copies every caller would have the room to themselves. ATALINK is ATA's own module for the server, built with Open Watcom and loaded first through the package's documented add-on mechanism: one DLL= line in its configuration. It takes over the Teleconference's page in the menu tree, so when a caller presses T, ATALINK tells the page. The page then runs Galacticomm's own Teleconference module, GALTLC, unchanged, as a shared world on the host, with the same machinery the game modules below use. Every line shares one room, where GALTLC's own commands and words work as they always did.
Paging crosses lines too. Anywhere on the board, /# lists who's on every line, in the board's own who's-online text. /P pages a caller on any line in the Teleconference's own words, and the page arrives within two seconds through the server's own way of sending text to another channel. /P Sysop lights the console's Watch page. A SysOp who prefers the package's own room on each line can switch back on the Settings page.
Doors, on a second PC in the tab
The Major BBS never ran DOS doors on its own PC. Its Doors module hands a caller to a serial channel, and on the far end sat a second PC running Galacticomm's GHOST, which starts the door and plugs the caller into it. ATA builds that second PC in the caller's tab: another v86 machine with 8 MB of memory and its own boot floppy, its COM1 wired to the board machine's COM2 by a JavaScript null modem. GHOST runs there unchanged. So does the door. The door's files sit on the host's shared drive, so LORD's world is one world for every line, as on every other board.
The cable runs at 9600 baud, because at 38400 the board, sharing the page's processor with the door PC, overran its 64-byte ring and passed on only a door's first lines. ATA ships the plumbing (COM2 and Galacticomm's own GHOST kit) and never a door. The door guide installs LORD.
Game modules as one shared world
A native game module is a DLL that runs inside the server, with its world in the server's memory: Galactic Empire's galaxy, Kyrandia's realm. A copy per caller would give every player a private universe. So ATA runs a module outside the board, in a Web Worker in the caller's page, on a small Major BBS host of ATA's own: v86 running the module's own code in 16-bit protected mode, with every routine the module calls in the host's library answered in JavaScript. The world's memory and its records live on the host, in SQLite.
A caller enters a module world from the Doors menu, like any door. The board hands over its door channel. On the cable, a stand-in for GHOST answers for the world and starts it in the caller's page.
Each step (a player entering, a line typed, a timer, a hangup) runs in one caller's page against a numbered version of the world. The page sends back the 64-byte lines of memory and the records the step changed, and if nobody committed in between, the host takes it. If someone did, the host hands back their changes and the page runs the step again on top of them. Timer steps, such as Galactic Empire's robot ships, go to one page at a time, in turn. The host runs no module code: it checks every commit's size, its memory ranges, its records and the order of each channel's steps, and it filters the text that reaches other players.
Measured with four players in one galaxy: 7 to 9 seconds from the door's name to the world, 67 commits with 33 conflicts run again, 35 timer turns while nobody typed, and no world that disagreed with the host. The module host matches the same module run under MBBSEmu, an independent Major BBS emulator, on every one of 14,062 host calls and their return values in a four-player script.
ATA ships no module. Galactic Empire, open source under the GPL, and Legends of Kyrandia, under the AGPL, install from the door guide.
What stays disclosed
- A caller's copy of the server runs in their browser, so it sees what that caller may see and no more. The host arbitrates every shared record: a tampered copy can't read other members' passwords or private details, and can't change their records.
- A tampered page in a shared world, a game or the Teleconference, can damage that world, because the host doesn't run steps again to check them. It can't touch the board, and the host journals every commit with the call that made it.
- Every copy of the server keeps one of the caller's CPU cores busy, so a slow computer runs the board slowly.
- A caller who enters a door within about six seconds of leaving one hears the board's own "no channel available": the board resets its door line for that long. Trying again a few seconds later works.
12TBBS 2.3
One program for every line
TBBS, eSoft's Bread Board System, ran some of the biggest multi-line boards of its day. All on one PC. In the edition ATA ships, its multitasker, MLTBBS, drives up to 32 serial ports itself and runs every line as a task of its own on one CPU, one slice at a time. What the lines share sits in MLTBBS's memory, which nothing else ever touched: the message index, who's online, the lock bytes, CHITCHAT's conference between lines and, when it's loaded, the TDBS runtime. So TBBS never needed file locks.
Two copies collide. The mail that vanished came from the member's own copy, which wrote their record back from what it held in memory when they logged off. So ATA runs one MLTBBS for every line, as eSoft built it, and keeps its memory on the host.
The host keeps the memory, browsers run the lines
A real TBBS was one CPU running every line in turn. ATA can't put a PC on a shared host. It can put the PC's memory there. The host keeps MLTBBS's memory as a versioned world in SQLite, the same idea as the Major BBS module worlds, and each caller's browser is a CPU that runs only its own line. When the caller types, their browser first takes in what the other lines changed since it last looked. Then it runs MLTBBS until MLTBBS switches away from that line, and sends back the bytes the turn changed.
The host never runs MLTBBS. It stores the bytes and checks every commit before it takes one. TBBS itself is unchanged. Everything eSoft built across lines works because one MLTBBS runs it: message numbers, private mail with TBBS's own new-mail notice, who's online, CHITCHAT, line messages, one applicant at a time in the user log. When the last caller hangs up, the shared TBBS ends, and the next caller starts it afresh from the board's files.
ATA's own DOS, expanded memory, a serial card, real line numbers
The shared TBBS doesn't boot FreeDOS, because under FreeDOS, DOS's own tables (open-file positions, the current program, the disk transfer address, the expanded-memory manager's page tables) would sit in the shared memory and change on every line's turn. So the browser runs MLTBBS on v86 in a Web Worker, with a DOS of ATA's own. ATA's loader puts MLTBBS.EXE at the same address in every browser, and a small real-mode stub hands the services it calls to JavaScript: DOS on interrupt 21h, expanded memory on 67h, the keyboard and the screen. File calls reach the board's files under the same jail as every other board's.
MLTBBS needs expanded memory. ATA's DOS carries the fourteen LIM 4.0 functions it calls, with the logical pages part of the world. MLTBBS also drives its serial ports itself, so ATA hands the shared MLTBBS a configuration that puts every line on a virtual multiport card of 16550 UARTs, the way a SysOp filled in CEDIT's port settings for a real card, and every browser carries that card. A caller's own line carries their bytes. Every other line on that browser's card shows only the carrier the world says it has, with no data, so MLTBBS there never finds work for those lines. Line numbers are real again. Line 4 is line 4 everywhere TBBS names it, its day file and CHITCHAT among them.
Turns, and two CPU features v86 lacked
A turn of a line starts when MLTBBS's scheduler chooses it and ends when the scheduler's scan starts again. Usually that's one key and its echo. The browser stops at those two points with instruction breakpoints, the x86 debug registers. v86 didn't implement them. ATA added them in its fourth emulator patch. During each scan, the browser hides other callers' lines from the scheduler, so the scheduler only ever finds that browser's own line. A fifth patch maps every byte the interpreter reads and writes during a turn.
A commit carries every byte the turn wrote, plus a checksum of every block it read, as those bytes stood at the turn's starting version. The host takes it unless something the turn read has changed since. If something has, the browser rolls back and runs the turn again on the newer bytes. That's serializable isolation. Two posts racing for the next message number come out numbered in order, as one CPU would number them. Each line's private state already sits in a 32 KB bank of its own, so most turns touch only their own line. Most commits don't collide.
Values JavaScript supplies for the program count as reads too: the clock, another line's carrier, a file's size and position, a directory listing. Leaving one out made four browsers disagree now and then, where a single machine never did. Before any caller ran it, ATA tested it on a bench, with four browsers taking turns against one machine running the same script. Every screen matched. So did every file, but for the clock digits.
Time
MLTBBS's clock interrupt writes every line's counters a hundred times a second, so a turn that moved the clock would collide with every other turn. Time moves in timer turns. The browser of the caller who has been on longest, the system browser, gives the world its owed ticks once a second and runs every line nobody holds, the console's included. A line that waits a few ticks, as TBBS's Zmodem receiver does between frames, gets those ticks in its own browser, up to the second's last tick, so a transfer doesn't stall a whole second at every pause.
Files and privacy
File operations ride the commit. The host applies them through the jail as the caller whose line made them, and they land with the memory, all or none. A stranger's turn still can't write what a stranger can't write, and the user log is masked and pinned exactly as on every other board.
Memory needs its own jail. Every browser holds the whole world, and a line's bank holds that caller's user record, what they type, the message they're writing and their place in every menu. The host serves each browser its own lines in full and every other line's bank as zeros, except the fields MLTBBS itself reads across lines, such as who's online and CHITCHAT's queue. A commit may write another caller's line only where MLTBBS does: CHITCHAT's queue, a cached message header, the chat flags, the line table's state and counters. Those lists come from a census of every byte each turn wrote and read across lines, over logons, posts, CHITCHAT, Legends and the SysOp's chat. ATA then tested the jail. Private markers typed on every line reached no other browser's memory at four browsers, where the same test found 124 with the jail off.
A line changes hands only through a reset to its start image, so no browser ever runs memory another caller left.
Typing, transfers, TDBS and doors
A turn's output reaches the screen when its commit lands, one round trip to the host after the key. TBBS has a quirk of its own, on any machine: when a burst of typed-ahead keys lands in a field that already holds text, it shows every letter after the first twice. So the browser hands TBBS one keystroke at a time, the way a person types.
Each caller line on ATA's card runs with RTS/CTS flow control. TBBS's input ring holds 1,040 bytes and drops RTS just before it fills, and a line that runs one commit at a time needs that to hold a sender off. A turn may also send only 8 KB before the card reads busy until its commit lands, because one 400 KB download sent in a single turn outlasted the clock's second and the clock's commit landed first every time. TBBS's own protocols run both ways, Zmodem and Ymodem among them. A 400 KB upload takes about two minutes at about 3 KB a second, the pace of a fast modem of the day. The download back takes under ten seconds.
TDBS, eSoft's database language for games and applications, loads inside the one MLTBBS as an option module. Its locks and shared tables work across lines as eSoft designed them. Legends 4.3 is one world for every player: four players in one game, every WHO listing all four. TDBS ships switched off.
DOS doors run through eSoft's InterChange, also inside MLTBBS, and every caller line has a door line of its own beside it, so sixteen callers use TBBS's 32 lines. When the board has a DOS door installed, each caller's tab also starts a door PC on that caller's door line, the same second machine The Major BBS uses. The door's files sit on the host's drive, so callers on different lines play LORD at the same time.
TBBS's own console is line 0's task. It chats with the line it monitors and writes that line's output itself, so it runs in the browser of the caller the SysOp is watching, and the SysOp's chat never passes through a third caller's browser.
What stays disclosed
- A tampered browser runs real turns of the shared program, so it can commit nonsense into memory the lines share, such as a chat line or a cached message header. TBBS may then misbehave or stop for everyone until the last caller hangs up and the board starts afresh from its files, which only MLTBBS's own writes through the jail ever changed.
- InterChange, on as installed, and TDBS, off as installed, keep live variables inside their own code, so their code is shared memory too. A tampered browser could change code they run in other callers' browsers, where it runs with that caller's line in view. Taking a module off the board's start-up line removes that with it, and for InterChange that means no DOS doors.
- While TDBS is on, each line's TDBS task memory is shared as well: a tampered browser could read or change what a caller types into a TDBS program.
- MLTBBS keeps one table of open files for every line, and a tampered browser could point a handle other lines use at a file it may open itself.
- Every browser learns where and how much each commit wrote, so a page can tell when another caller typed and how much. Never what.
13Events and nightly maintenance
There's no idle DOS process anywhere. So the nightly event runs the way it ran in 1993: whichever machine is on the board alone when the duty is armed runs it.
The SysOp's event language is a batch file. NIGHTLY.BAT and WEEKLY.BAT live in an ATA folder at the board root; the package profile seeds them, and the SysOp owns them from then on. At the board's arm time, midnight in the board's time zone by default, cron or pseudo-cron marks the duty pending. The console has a Run now button. And the first caller to connect while a duty is pending and nobody else is on runs it on the way in: the dial holds on RINGING with a note, a maintenance machine boots, runs the batch, exits, and then the caller's own node boots and they see CONNECT. Seconds, on a warm nightly.
A maintenance boot is exclusive, has full access, and begins with a forced snapshot of every shared path. On completion the machine writes a stamp file through the drive, and the server treats that write, arriving through the gate on a maintenance lease, as the only valid completion signal. A maintenance lease that dies before the stamp is an abort: the snapshot is restored, the attempt is counted, and two aborts in a row halt automatic runs until the SysOp resets the duty, so a bad batch doesn't punish every caller of the morning.
The package's internal event scheduler is left unconfigured on purpose. The board never sits at its waiting-for-caller screen to fire it; ATA owns the event outright.
14The SysOp console
Your console is a web page behind its own login, created by the install wizard. It shows the nodes in use with a Disconnect button, calls today and ever, cron and sweep health, pending duties and why they haven't run, snapshot age, and the event log: relay binds and denials, jail denials, tripwires, sweeps, event runs.
The DOS page is a two-screen maintenance page, booted against the live board as node zero. The left half is the machine's own screen and keyboard, facing the SysOp; the right half is a terminal on the serial line, showing what a caller on this node would see. One-click presets come from the profile: Renegade's waiting-for-caller screen, Fido's console, the tool that compiles T.A.G.'s string definitions, a plain DOS prompt. Where a package needs keystrokes typed after it starts, the preset carries them and the page types them when the screen shows each marker. The page prints the live board directory's full path on the host, for the jobs that still want FTP, and it warns when callers are live, because changes are immediate.
Two pages joined the console in 1.0.0 Beta. Files is the board drive in the browser, a folder at a time: uploads arrive in pieces and byte for byte, with no binary or text mode to pick, and a text editor opens a batch file or a menu source and draws it the way DOS does, line ends kept. Anything the page replaces or deletes is kept for 14 days and can be put back. Art is ATDT's ANSI editor and its gallery, and its Send to the board button writes a screen into a folder on the board drive under a DOS name, after warning about anything a board would choke on. Both pages hold their changes while a duty runs, and on TBBS, whose one program keeps its files open in every caller's browser, until nobody is on.
15Installing and packaging
The product is one zip: a folder the SysOp uploads as is to any host with PHP 8.1 or newer. There's no build step, no daemon, no third-party service, and no shell access assumed. Opening the installer runs a five-minute wizard: an environment check, a board picked from the bundled packages, the board's name and number, its time zone, and the console credential. The wizard seeds the board, writes the configuration, locks itself, and prints the cron line, which is recommended but optional; without it the same housekeeping rides caller traffic. Everything the SysOp owns lives in one directory: the live board, the database, snapshots, logs. Upgrading is replacing the product files and keeping that directory where it is.
16Credits
The DOS machine stands on other people's work, shipped unmodified and documented in the runtime's license file: the v86 emulator by Fabian Hemmer and contributors (BSD), SeaBIOS (LGPL), the Bochs VGA BIOS (LGPL), the FreeDOS 1.2 kernel and shell (GPL), the Crynwr NE2000 packet driver by Russell Nelson (GPL, source included), EtherDFS by Mateusz Viste with Michael Ortmann's maintained fork (MIT), and HimemX by Japheth (public domain, derived from FD Himem). Everything above the machine, the FOSSIL driver, the EtherDFS server side, the host-side PHP and the terminal with it, is ATDT's and ATA's own work, MIT licensed.
The boards are their authors': Renegade (the Renegade Development Team, distributed with T.J. McMillen's permission), Asgard-86 (Paul Gauthier), Citadel-86e (Farokh Irani, from Cynbe ru Taren's Citadel-86 line), Fido v12 (Tom Jennings, public domain), GAP (GAP Development Company), The Major BBS (Galacticomm, Inc.), Maximus (Scott J. Dudley, Lanius Corporation, GPL), PCBoard (Clark Development Company), QuickBBS (Pegasus Software; 2.849 Classic by Matrix Technologies), RBBS-PC (the Capital PC User Group, Tom Mack and company), RemoteAccess (begun by Andrew Milner, rights held by Bruce F. Morse), Searchlight (Searchlight Software with TeleGrafix Communications), Spitfire (Mike Woltz, Buffalo Creek Software), Synchronet (Rob Swindell, Digital Dynamics, public domain), T.A.G. (The T.A.G. Team; 2.7d2 by Alan Jurison and Victor Capton), TBBS (Philip L. Becker, Ltd., published by eSoft), Telegard (Tim Strike), TriBBS (PTC Software), VBBS (Virtual Advanced Communications) and Virtual Advanced (Roland De Graaf, Virtual ComTech). The manual's credits have the full lines. They run here exactly as released.
Questions or corrections? Ask on the support forum, which covers ATA, ATDT and Usurper. Want a package supported? Here's how to ask. The companion project, ATDT BBS, is free and MIT licensed, and it's running today.