A board takes Flash when its files say swf or flv (bbs chan board set f
files swf,flv), as 4chan's /f/ did, and [chan] ruffle names Ruffle's
self-hosted package (make ruffle fetches it from npm into ruffle/).
- SWF: FWS and CWS read for the stage, frames, rate and sounds, the
tags walked as they unpack with nothing kept (a zlib bomb costs no
memory and is refused); ZWS (LZMA) taken as 550x400 with sound
- FLV: onMetaData (AMF0) for size and length, the tags for sound and
the video codec (Sorenson, Screen, VP6, VP6 alpha, H.264); ffmpeg
thumbnails it, a movie gets a card
- sound needs the board's sound; an FLV is held to max_video
Clicking a Flash thumbnail plays it in a sandboxed frame (/chan/flash:
allow-scripts alone, by its CSP and the frame's attribute): no origin,
no cookies, nothing of the page. The page fetches the file with its own
cookies and hands the bytes over; Ruffle runs with networking, scripting
and links off. Ruffle 0.7.1 does not play a standalone FLV, so the BBS
makes a small AVM1 movie of its own (/chan/flvplayer.swf: NetStream
into a Video of the FLV's size) that plays it from a blob of the frame.
Ruffle's files are served at /chan/ruffle/ with CORS open (the frame
has no origin), only the package's .js, .wasm and .map.
Played in Chromium with Ruffle 0.7.1: a movie, and a Sorenson FLV with
sound through the player; both frames of origin "null", cookies
refused, no CSP violations.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
NANPA's report of 14 October 2026 (reports.nanpa.com/public/
npa_report.csv) has thirteen geographic area codes in service that
libphonenumber's data of 8 October lacks: 357, 436, 457, 465, 471, 483,
621, 624, 679, 729, 837, 861 and 924 (the nine dropped before among
them), and 538, 542 and 543 for personal services.
The generator now takes the report too (-nanpa; make phone-data
NANPA=...) and writes nanpa.go: each area code in service, or announced
with its day, with its country and state or province, or what service
it is. A number in an area code NANPA has in service is one even
before libphonenumber has it; the area's place is NANPA's state or
province unless libphonenumber names the exchange; an announced code
(273 Quebec, 565 Georgia...) becomes a number on its day.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
NANPA's site was out of reach, so the hand-made tables were checked
against Google's libphonenumber (its data of 2026-10-08, kept up from
NANPA and the national regulators) and then replaced by it:
- the area-code check found 273 (Quebec) and 633 (Canadian personal)
missing, and nine US codes it has nowhere (357, 436, 457, 483, 624,
679, 837, 861, 924): those are gone with the old tables
- internal/phone/gen makes metadata.go (every territory's calling code,
international and trunk prefixes, shared-code rules, number kinds and
formats) and places.gz (269,198 prefixes to places, 151 calling codes)
from a libphonenumber checkout: make phone-data
- Parse follows libphonenumber's rules: national prefixes taken off and
transformed, shared codes told apart by leading digits and plans,
the kind of number (fixed line, mobile, toll-free...), the place to
the exchange where known, and numbers written as each country does
(+44 20 7123 4567, +81 3-1234-5678)
- checked against nyaruka/phonenumbers on 34,362 numbers: the same
country, kind and place for all; formats differ only for the Faroes,
where its bundled data is older
- the tables load when first wanted (about 6 MB); the sysop's node list
says which callers are on mobiles
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
[http] serves a REST API under /api/v1 (accounts, message areas, mail,
file areas with uploads and ranged downloads, chat rooms, paging, and
sysop administration including FidoNet polls and news syncs), with
server-sent events and two WebSocket endpoints speaking the bbs.v1
protocol from proto/bbs.proto: JSON text frames at /api/v1/ws and
binary protobuf at /api/v1/ws/proto. Stream clients get a real node,
so web users chat with terminal callers, get node messages and page
the sysop.
Tokens are login sessions or API keys (bbs token add/list/revoke),
stored as SHA-256 hashes, with scopes. TLS by default, per-token and
per-address rate limits, strict bodies, one CORS origin at most,
Prometheus metrics on their own address, and an OpenAPI 3.1 document
checked against the routes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
doors/dosemu2 builds dosemu2, fdpp and comcom64 from source on Ubuntu (no
PPA) and runs a door with the caller's line on COM1 behind dosemu2's
FOSSIL: rundoor bridges the container's stdio to the port with socat,
the door's directory on F: and the node's drop files on G:. It runs as
the BBS's user (not root, which dosemu2 refuses), with no network, and
goes when the door ends or the caller hangs up. {uid}/{gid} fill in the
BBS's own ids for docker run --user; make doors-image builds it.
testdoor/FOSDOOR.COM, a FOSSIL door in assembly, reads DOOR.SYS, writes
CP437 and ANSI and echoes keys; TestDosemuDoor plays it through the BBS
when the image is built, hangs up in it and checks the container is gone.
README, sample config and service notes (the docker group's risk).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
go3270 is replaced by the Neo-Desktop/go3270-sec fork, which keeps the
terminal's query replies and builds Load PS and Object Picture
structured fields. With it the 3270 BBS uses what the terminal has:
- graphic escape (nearly every 3270): a box around the main menu,
rules, bar charts of messages by area; ASCII where there is none
- programmed symbols (PCOMM, HostExplorer): the logo on the logon
screen, the system's name in a pixel font or a PNG (tn3270_logo),
cut into character cells, deduplicated and loaded into the first
loadable symbol set, format 1 (9x16) or 3 as the terminal says
- vector graphics (PCOMM's native host graphics): the logo as a bitmap
image instead, with tn3270_vector = yes; experimental
Option 7, "Your terminal", shows what the terminal reported, every
query reply in hex included, and the log has a line of it for each
3270, for setting emulators up. A panic while serving a caller now
costs that call only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
One telnet port serves both kinds of terminal: a client that says it is
a 3270 (IBM-327x, IBM-DYNAMIC) is handed to go3270 and gets full 3270
screens with PF keys; any other gets a text BBS with ANSI color where
the terminal has it. Modem callers come through the D-Modem suite:
app_dmodem's mode = tcp on a raw port, or modemmenu by rlogin, telnet,
or a unix socket whose session header (MODEM_*/DMODEM_*) gives the
call's details and, trusted, the user modemmenu logged in.
Message areas, private mail, who's online, the user list, profiles and
self-service sign-up, in SQLite. User text is cleaned of escape
sequences and control characters before it is stored and shown;
passwords are bcrypt; logins are delayed, limited and throttled per
address or caller ID; every step has a size limit and a timeout.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr