Boards by directory with anonymous posts and images: thumbnails made
in Go (JPEG, PNG, GIF, WebP, told by their bytes), JPEG metadata
stripped, duplicates refused by MD5. Threads bump until a bump limit,
sage, image limits, pruning off the last page, stickies and closed
threads. Tripcodes are 2channel's (a DES crypt(3) of our own, checked
against libc's) and secure ones; greentext, >>quotes with backlinks,
cross-board links, spoilers and code. Index, thread pages, catalog,
password deletion, reports; staff (sysops, a board's mods) delete,
ban by address or range, and post with capcodes. Yotsuba, Yotsuba B,
Futaba, Burichan, Photon and Tomorrow styles, and 4chan's read-only
JSON. bbs chan board|ban on the command line; [chan] in bbs.conf.
[http] trusted_proxies: requests from those take their caller's
address from X-Forwarded-For (Forwarded, X-Real-IP), the last hop that
is not a trusted proxy, for rate limits, logs, the deny lists and the
image boards' bans; a proxy's connections are not held to max_per_ip.
secure_cookies for TLS at the proxy.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
yabb1 (Gold, as YaBB 1 Gold), yabb2 (Default, as YaBB 2.0-2.4, wearing
yabb1's pages under its own head and board index) and yabb25 (Silver,
as YaBB 2.5, wearing yabb2's with its own head, board index and topic).
Layouts follow the templates and stylesheets in YaBB's releases on
SourceForge, and colors follow those stylesheets and, for 2.5, its
translucent images laid over their colors; the templates and CSS are
written for this BBS and take no code or images from YaBB (folders,
lamps, orbs, stars and icons are drawn in CSS). Adds YaBB's two date
styles, the second with its ordinal day.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
pun12 (Oxygen, as PunBB 1.2, which FluxBB 1.2 shares), flux15 (Air, as
FluxBB 1.4 and 1.5, wearing pun12's templates over its stylesheet) and
pun14 (Oxygen as PunBB 1.3 and 1.4 restyled it, with pages of its own).
Colors and proportions follow the styles in PunBB's and FluxBB's
repositories; the templates and CSS are written for this BBS and take
no code or images from either. Adds a ymd date format.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
mybb12 (original): MyBB 1.0-1.2's look, a white frame on a grey page,
a bold menu and welcome panel, steel-bordered tables with blue gradient
heads and pale blue column rows over two greys, round forum lamps,
Board Statistics, posts as rows with the author on the left and the
date beneath, dashed quote boxes.
mybb16 (classic) wears 1.2's pages as MyBB 1.4-1.6 kept them, with
each post a table of its own: a date strip with "Post: #1", the author
across the top with the counts at the right, plain quote boxes.
mybb18 (flat) wears 1.6's pages with 1.8's head, foot and posts: a
black glossy bar with search and welcome over a grey links row,
rounded tables with deep blue heads and black column rows,
speech-bubble icons, posts with a grey author band, black buttons.
Colors and layouts follow the default themes in MyBB's repository
(install/resources/mybb_theme.xml at 1.0, 1.2, 1.4, 1.6 and 1.8); the
CSS and templates are our own, no code or images taken.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
xf1 (classic): XenForo 1's look, a deep navy head with tabs opening
onto a pale row of links, arrow-ended breadcrumbs, blue gradient
category strips, speech-bubble forum icons, a side column, posts with
the poster in a pale box whose arrow points at the message.
xf2 (xen): XenForo 2's look, a deep blue head over a lighter navigation
bar and pale section links, flat blocks with blue-tinted heads, comment
icons bright when unread, stacked Threads/Messages counts, an orange
Post thread button, posts with the poster in a tinted cell.
xf23 (light) wears xf2's templates as 2.3 refreshed 2.2: rounder
corners, pill buttons, page links and reactions, round pictures, and a
dark variation when the reader's device asks for one.
No XenForo source was at hand; the looks are drawn from memory of its
default styles, in our own CSS and templates.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
smf1 (core): SMF 1's Core look, a blue gradient head box with the
greeting, member strip and news, dark blue tabs hanging below it, blue
category bars over grey-lavender cells, posts with the poster's group
and stars on the left.
smf20 (curve): SMF 2.0's Curve, a slate band fading to a pale page, a
white rounded frame, rounded menu buttons and category bars, orange
board and poster names, an Info Center, Quick Reply.
smf21 (simple) and smf30 (natural) wear Curve's templates as SMF 2.1
and 3.0 grew out of it, each with a stylesheet of its own: 2.1's white
top strip, orange menu pills, boxed breadcrumb, orange-edged title bars
and dark blue foot; 3.0's banded top and menu, slate foot and a dark
scheme when the reader's device asks for one.
Colors and layout follow the Core, Curve, 2.1 and 3.0 default themes in
the SMF repository; the CSS and templates are our own, nothing taken
from SMF.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
vb6 (clean) wears the vb5 theme's templates, as vBulletin 6 restyled
vBulletin 5 Connect, with a stylesheet of its own: a white header with
tabs underlined in blue, rounded cards with soft shadows on a cool grey
page, blue buttons in place of orange, larger type in the system's own
face, and a dark scheme when the reader's device asks for one. The vb5
layout now links its stylesheet by theme name so the two can share it.
Our own CSS; nothing taken from vBulletin.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
vb5 (connect): a flat navy header with the board's name and the
member's menu, tabs that open onto a white row of links, flat white
widgets with thin grey-blue edges on a pale page, forum and topic
tables with small uppercase column heads and round photos for the last
posters, orange New Topic and Post Reply buttons, posts with the poster
on the left and small Reply, Quote and Like buttons beneath, Who's
Online and Forum Statistics side by side, a navy foot.
Our own CSS and templates; nothing taken from vBulletin.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
vb4 (steel): a white header with the board's name and a login strip, a
deep blue tab bar over a pale blue row of links, a breadcrumb with a big
page title beneath, blocks with rounded blue gradient heads on a light
grey page, round forum icons that glow blue for new posts, Threads /
Posts and Last Post columns, posts with the poster's details on the
left and text buttons beneath, What's Going On?, Quick Reply.
Our own CSS and templates; nothing taken from vBulletin.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
ipb5 (fresh): a slate header with the board's name, its sections and
the member's menu over a darker band with the breadcrumb and a round
search box, a cool grey page, white boxes with soft corners and
shadows, rounded square forum icons that turn blue for unread content,
round photos, a side column of widgets, posts with the author beside
them and pill-shaped reactions beneath, a slate foot. Colors follow
IC5's default palette, worked out to plain hex.
Our own CSS and templates; nothing taken from Invision Community.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
vb3 (blue): a white page in a grey one under the board's name, a
breadcrumb box with the welcome or a login form beside it and a strip
of blue menu buttons beneath, navy-bordered tables with steel-blue
gradient category bars and darker column heads over two pale
lavenders, the last thread and poster in the Last Post column, What's
Going On?, each post a table of its own with the poster's details on
the left and small buttons beneath, Quick Reply, a deep blue foot.
Our own CSS and templates; nothing taken from vBulletin.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
vb2 (purple): a white panel in a purple page, an oval logo over grey
pill links, slate-bordered tables with lilac headings and purple
category bars, yellow "v" new-post squares, month-day-year dates with
grey times, posts with user titles, Registered and Posts beside them,
Currently Active Users and a guest login row.
vblite (lavender): a chrome italic logo beside five icon links, navy
headings over two lavenders, bulbs for new posts, italic new thread and
post reply buttons, "Posted by:" with the date above.
Our own CSS and templates; nothing taken from vBulletin.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
ipb4: a community suite of the late 2010s, after IPS Community 4.7's
default theme: a pale page, a white header with the board's name and
the user's menu (a <details>, no script), a blue navigation bar with
white tabs, a secondary row and a search box, breadcrumbs with All
Activity, white boxes with soft shadows, big round forum icons blue
when unread, stacked post counts, the last poster's round photo,
Who's Online and statistics widgets beside the forums, posts with the
author's pane on the left, likes as reactions, a reply box with the
poster's photo, a profile with a cover band. Its own CSS and
templates; no code or images taken from IPS.
Times as such boards tell them ("2 hours ago", "Yesterday at 11:21
PM"): the ago template function.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
Themes may now have a parent: a theme wears its ancestors' templates
under its own, so versions of one look share their markup and differ
in their stylesheets.
- phpbb31: prosilver made responsive, in a white frame on a pale page;
the header's search box with icon buttons, Quick links and the user's
menu as <details> (no script), breadcrumbs, white gradient buttons
with red words, icon-only post buttons, the last post's subject in
the forum list, small coloured icons, coloured poll bars, quick reply
- phpbb32 (on phpbb31): its pictures turned to icon-font glyphs, grey
and link blue, drawn by the BBS (no icon font loaded); names in the
lists in normal weight
- phpbb33 (on phpbb32): what 3.3 changed in the look, which was little:
taller list headings
The layout's stylesheet is now the theme's name, so a child theme's
page links its own sheet; the 3.2 and 3.3 sheets @import their
parent's. Their own CSS and templates; no code or images taken from
phpBB.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
phpbb30: a board of 2007-2014, after phpBB 3.0's prosilver: a rounded
blue gradient header with the board's name and a search box, a pale
blue navigation bar with the Board index trail and small icon links,
forums in rounded blue boxes with uppercase headings and pale gradient
rows, round sheet icons (red when unread), white NEW TOPIC and POST
REPLY buttons, posts in rounded panels with the subject, "by X » date"
and the poster's profile on the right, beige quotes, red poll bars,
Who is online and Statistics, a login box for guests and a quick
reply. Its own CSS and templates; no code or images taken from phpBB.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
phpbb2: a PHP board of 2002-2008, after phpBB 2.0's subSilver: a grey
page round a white panel, a rounded logo beside the board's title and
a menu of little icons, tables in a thick blue border with blue
gradient headings in orange, silver category bars fading to white,
rows in three silvers, round-tab folders, "new topic" and "post reply"
pill buttons, Posted / Post subject above each post with quote beside
it and Back to top and profile beneath, Who is Online and a login box
on the index, Goto page and Page N of M. Its own CSS and templates;
no code or images taken from phpBB.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
phpbb1: a PHP board of 2001, after phpBB 1.4's default theme: a black
page, white text and teal links, a glowing italic logo, glowing New
Topic and Reply buttons in the header, [bracketed] menu links, the
-N- statistics block, near-black table lines with cells alternating
grey and navy, small folder icons, posts between rules with little
labelled links beneath, Goto page. Its own CSS and templates; no code
or images taken from phpBB.
Layouts now know which page they show (page.Page), for headers that
differ by page, as phpBB 1's did.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
ikon: a Perl board of 2001, after Ikonboard 2's default look: a narrow
centered page, grey tables with one-pixel cell lines, a title box with
its menu row, a Welcome box, a brushed-metal logo beside a folder tree
of where you are, dark red links, "» Category" rows, Date/Time/by last
posts, grey bevelled buttons, folder badges and gem topic icons, posts
with their author on the left, small icon links above and Total Posts,
Joined, Posted on beneath. Its own CSS and templates; no code or
images taken from Ikonboard.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
ipb1: a board of the early 2000s, after Invision Power Board 1.3's
default skin: tables outlined in slate blue with white cell lines,
bright title bars and blue sub-title bars, a flat menu box with round
icons, a Logged in as box, round forum badges, envelope topic icons,
rounded glossy buttons, posts with Posted on and small pill buttons, a
post links bar, a Back to strip, Fast Reply, a big-name profile. Its
own CSS and templates; no code or images taken from IPB.
The theme test now checks each theme's own layout.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
The forum can wear more than one look. A theme is a stylesheet and,
in themes/NAME/, templates of its own for the pages it lays out
differently, parsed over the default's.
- ipb2: a board of the mid-2000s in the manner of Invision Power Board
2's default skin: white page, navy-outlined boxes, gradient title and
sub-title bars, pale blue rows, Logged in as / Welcome Guest bars,
Last Post Info, topic folders, post tables with Member No. and Top,
quote boxes, big blue buttons, Fast Reply, the footer bar. Its own
CSS and templates; no code or images taken from IPB.
- ipb3: the existing look (its stylesheet now ipb3.css)
- a theme chooser at the foot of every page, for guests too, kept in a
cookie; [http] forum_theme sets the forum's own, checked by bbs check
- docs: Web-Forum themes, configuration, development
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
The HTTP API's server serves /forum/ (and / when it is on): the areas as
categories of forums, topics and posts with their authors beside them,
laid out in the manner of Invision Power Board 3's default skin with CSS
of its own (no code or assets taken from it, no scripts on the pages).
- store: messages carry their topic (thread), set on posting, found for
messages from before, mended when a topic's first post or a reply's
parent goes; per-user topic read marks; topic lists and counts
- forum: board index with groups, statistics and who's online; area
topic lists with unread marks and pages; topics with quotes, likes
(the BBS's votes), polls, deleting, replies; new topics with polls and
aliases; profiles, search, who's online, login and sign-up
- logins are the API's session tokens in an HttpOnly, SameSite cookie;
every logged-in form carries a CSRF token; strict CSP, no framing
- [http] forum and forum_guests settings
- bbs.WrapBody: text typed in paragraphs (the forum, the API's posts and
mail) wrapped to the terminals' 79 columns instead of cut, quotes
carried onto wrapped lines
- docs: Web-Forum wiki page, configuration, HTTP API, development
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
As a hub: an account flagged qwk_node (bbs user qwknode NAME, or the
API's qwk_node) is another BBS's. What its REPs bring is posted under
its writers' names, with its access checked, and its packets leave out
what came from it.
As a node: [qwknet NAME] calls the hub by FTP (FTPS explicit or
implicit) every so often, or on bbs qwknet call and POST
/api/v1/admin/qwknet/call. It puts a REP of what was written here in
the network's areas since the last call (nothing from before joining,
nothing that came by a network or peer), then takes the hub's packet
and posts it in the areas of its conferences (CONFERENCE = AREA).
Messages are known by conference and number (qwk_msgs), so nothing
comes twice and answers keep their threads.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
internal/qwk reads and writes QWK packets and REPs: MESSAGES.DAT's
blocks, CONTROL.DAT, conference and personal indexes (MBF floats),
QWKE kludges for long names and subjects, CP437 text.
A caller's packet holds their unread mail (conference 0) and the new
messages of the areas in their new scan (an area's ID its conference);
they count as read only once the packet has gone. A REP's messages are
posted and mailed as the caller, with their access checked; one brought
twice posts once (qwk_seen, kept 90 days). BBSID: qwk_id, or made of
the name.
Offline mail is O on the main menu (qwk in the sysop's menus): by
X/Y/ZMODEM or Kermit on the text BBS, IND$FILE GET and PUT on a 3270,
/qwk over FTP, and GET /api/v1/qwk, POST /api/v1/qwk/rep.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
For every front end (internal/app), the API and the CLI:
- Threads: from a message, the one it answers (O, PF2) and its whole
thread (T, PF6), replies under what they answer; GET
/messages/{id}/thread.
- Votes: up, down or none on a message (V, PF1), shown by its number;
POST /messages/{id}/vote.
- Polls: a question and 2 to 10 answers posted in an area (L, PF9),
answered (A, PF12) and shown with each answer's share; POST with
"poll", POST /messages/{id}/answer.
- Aliases: a user's alias (checked like a new name, no one's name or
alias) posted under in areas that allow it; the message's From is the
alias everywhere, newsgroup articles included (they used the real
name), while the sysop keeps whose it is.
- Signatures: up to three lines under posts and mail written on the BBS.
- Groups: areas listed by group, with a Group column.
- Retention: an area keeps its newest N messages and/or those of the
last D days, purged hourly and by bbs area purge.
Tested on SQLite, PostgreSQL, MySQL and MariaDB.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
A sysop's main menu has * (and custom menus a sysop action), on every
terminal:
- Watch a node: what a text caller is sent, as it is sent (the text
terminal's connection echoes to bbs.Node.Echo; a slow watcher misses
some, never slows the caller). A key stops; the caller leaving ends
it. Text terminals only.
- Chat with a node: the caller is told and taken into a private chat
(their page's room) at their next menu; the sysop waits there.
- Kick a node.
- Users: level, flags, lock, sysop rights, a new password (not one's
own lock or rights).
- Statistics: totals, and calls, new users, posts and uploads for each
of the last 14 days as bars.
- The bans (lifted by number) and the hack log.
- Scheduled events ([event NAME]: a program run without a shell, daily
at a time or every N minutes, with a timeout; internal/events): when
they run next, the last run's end and output, run now.
- Available: whether pages reach the sysop; when not, a caller who pages
may leave a message.
The API: GET /admin/events, POST /admin/events/{name}/run, PUT
/admin/available. Sysop-Tools is the wiki page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
- Last callers (L, and a callers menu action): each login is recorded
(calls: the newest 10000 kept); GET /api/v1/callers.
- Feedback to the sysop (K, a feedback action): mail any caller may
send, whatever their level allows.
- The user list picks a user: their details (a sysop sees their access
and files too), and mail to them from there.
- A line about oneself, on the profile (Y; - clears it) and PATCH /me's
about, shown with one's details.
- Expert menus (the expert setting, X on a text terminal's profile): a
menu is its prompt, "Command (? for the menu): ", and ? shows it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
[security] in bbs.conf (internal/guard):
- deny_file: addresses and networks (IPv4, IPv6, CIDR) whose
connections every service closes at once: the terminal listeners and
SSH, FTP, NNTP, the HTTP API, finger, gopher and binkp. Read again
when it changes; bbs check warns of bad lines. Unix-socket callers
(modem servers, menus) are never refused.
- ban_minutes: an address the login throttle turns away is banned from
every service for that long. The API lists bans and lifts them.
- name_deny_file: name patterns (* wildcards, any case) no new account,
nor one an upstream menu makes, may take; the text BBS says so as the
name is typed.
- hack_log: failed logins and the names tried, locked accounts,
throttles, bans, refused connections and names, one a line; the API
shows its end.
A telnet or raw listener with tls_cert and tls_key is telnet over TLS
(1.2 or later; port 992), with 15 seconds for the handshake.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
- FILE_ID.DIZ: an archive uploaded by any way (the BBS, IND$FILE, FTP,
the API, the CLI) is described by its DIZ, kept as the file's longer
description (CP437 decoded, colors and control characters out, at
most 20 lines); its first line that says something is the description
unless the uploader gave one.
- Archives: what is in a ZIP, tar or tar.gz, from a file's details (V,
PF6) and GET /files/{id}/listing.
- New files since the caller's last call (N, PF5) and finding files by
name and descriptions (F, PF10), across the areas they may see; the
API's GET /files?since= and ?q=.
- A batch: files tagged (T, by numbers such as 1 3 5-7, or from a
file's details) download together by YMODEM, ZMODEM or Kermit; a file
counts once the protocol has gone on past it. Frontend.Download takes
a list of files.
- Ratios: [level] ratio and ratio_free (files downloadable for each
upload, and before the ratio counts), checked with the day's limit for
a whole batch. Users' lifetime downloads and uploads are counted.
The store gains a {plain} token: PostgreSQL's LIKE refuses the
case-insensitive collation of {name} columns. Tested on SQLite,
PostgreSQL, MySQL and MariaDB.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
What a caller switches on their profile (ANSI, UTF-8, sixel, RIP, a
Commodore's width) is kept with their account as settings (users.prefs,
"key=value" pairs) and applied after the next login: ANSI and UTF-8 as
set, sixel and RIP kept off when turned off and on only where the
terminal has them. An editor setting (full or line) is there for the
full-screen editor.
The API shows them at GET /me and changes them with PATCH /me ("":
forgets one); unknown settings and values are refused.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
Users have a level (0-255) and flags (A-Z). [level N] sections say what
a range of levels may do: time online a day (warned at 5 and 1 minutes,
hung up at the end; doors' limits cut to what is left), downloads a day
(counted by every way: the BBS, 3270, FTP, the API), and whether they
may post, mail (else only the sysop), chat, page, download, upload and
open doors.
Requirements ("30 F !X", "sysop") are put on message areas (reading and
posting), file areas (downloading and uploading), doors, menus and menu
items ("x = menu:extras Extras | 50 X"). They are checked in the core,
so the text BBS, 3270s, FTP, NNTP and the API keep them alike: an area a
user may not read is not listed, opened or found by number or
Message-ID.
New users start at new_user_level and are told they wait; the sysop
validates them on the BBS (V on the main menu), by bbs user
waiting/validate/level/flags, or by PATCH /api/v1/admin/users. Users
see their access in the profile and /api/v1/me; no one changes their
own. Drop files carry the caller's level.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
[http] serves /terminal (and / goes there): a page with xterm.js 5.5 and
its fit addon, built into the binary (MIT licensed, license included),
joined by a WebSocket (/terminal/ws, subprotocol bbs.terminal, binary
frames) to the text BBS, run in-process as for a telnet caller: a node
shown as "web terminal", the BBS's own login, ANSI and UTF-8, the size
the page fitted.
The page has a strict Content Security Policy (scripts only from the
BBS, no inline scripts, no framing); the WebSocket is taken only from
the BBS's own pages (or the cors origin), under the HTTP server's TLS,
connection and rate limits. terminal = no turns it off.
The WebSocket's own stream closes the connection when a read deadline
passes, which the text BBS uses for idle time and notices: the line
adapter SSH sessions had (reads with deadlines that only end the read)
now serves both.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
internal/vt asks an ANSI terminal everything at once (ENQ answerback,
DA1, DA2, XTVERSION, its cell size), with a cursor position report last
so the answers are complete when it comes, and reads them into a name
(XTVERSION, SyncTERM's CTerm, DEC models by DA2 and firmware, tmux,
screen, mintty, rxvt, xterm, VTE, the answerback, the VT class), a VT
level, sixel and color. A terminal that is not ANSI is asked ESC Z: a
VT52 answers.
What it said changes what the caller gets: a VT without UTF-8 (not a
PC's CP437 BBS terminal) gets line drawing in DEC Special Graphics and
Latin-1 on a VT220 or later; a DEC monochrome terminal gets bold for
color; a VT52 its own escapes (VT52Writer) with its cursor keys ignored.
Sixel now comes from the same answers. The name shows in the profile,
the log and the API's who (terminal). A listener's vt = no asks nothing.
Also: the terminal type and rlogin's rate are set under the BBS's lock
(who's online reads them).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
[listen NAME] type = ssh serves the text BBS over SSH. Users log in
with their BBS password (password or keyboard-interactive, throttled
and delayed as on a terminal) or with one of their public keys; the
user "new" gets the BBS's own prompt to sign up. The pty's terminal
type and size go to the text BBS. Commands, SFTP, forwarding and
second sessions are refused.
Host keys (ed25519 and RSA by default, beside the database) are made
0600 the first time and refused when others may read them; legacy = yes
adds CBC ciphers and group1 DH for old clients.
Keys live in a new ssh_keys table and are managed by bbs sshkey
add/list/del, the profile on the text BBS (after the password again),
and /api/v1/me/keys (from a login's session only, not an API key).
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