~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

Monolith: the project's name, its site, its look and HTML email

Merged chadtmiller.com asked to merge into main from chadtmiller.com/monolith:docs/landing
.claude/skills/landing/context.mdnew+89−0
@@ -0,0 +1,89 @@
# Context for the landing page's writer
## The reader
Someone who runs servers and has heard of atproto: Bluesky's protocol,
where each account lives on a server of its choosing, its PDS. They are
deciding whether to host accounts themselves (their own, a few friends',
a community's), and the default choice is the reference PDS, Bluesky's
`@atproto/pds`, with its installer. They already assume any PDS hosts
accounts, signs apps in with OAuth, keeps images, federates with the
network and lets accounts move between servers. They came to learn why
they would run this one instead, what it takes, and how to start.
## Monolith in three lines
- An atproto PDS written in Rust: one program, `pds`, that is the server
(`pds serve`) and its command line (`pds <group> <command>`).
- Built by AI agents from a written specification alone, and held to the
reference by a harness that sends both servers the same random
requests and compares every answer.
- New, at an early version, private for now; it will be published as an
image and a Linux binary.
## What the reference ships
The reader knows this, so the page never presents these as Monolith's
own advantages:
- `@atproto/pds`, a Node.js service, distributed as a Docker image in a
compose file with Caddy (which gets TLS certificates on demand) and
Watchtower (which updates it), installed by an interactive script on
Ubuntu or Debian, with `goat` as its admin CLI.
- Its data in SQLite files on disk: no database server beside it either.
- Recommended for 1 to 20 accounts on 1 GB of RAM and one core.
- OAuth sign-in, sign-up and account-management pages, brandable.
- Blobs on disk or in an S3 bucket; account migration in and out; JSON
logs; metrics over OpenTelemetry.
## What the page computes
Read from the repository at build time. The copy may use at most one,
as its placeholder, never a number typed in:
- `{start}`, `{idle}`: Monolith's start time and idle memory; the same
for the reference as `{ref.start}`, `{ref.idle}`.
- `{agreed}`, `{checks}`: the last compatibility run's checks that agree
with the reference, of those run.
- `{methods}`: how many methods the server serves.
## The page
As plain as ghostty.org: the picture fills the first screen; a scroll
below it, a headline, one sentence, two buttons, then only a footer.
What the server does, how it is checked and what it measures are in the
docs, one click away; the page does not hold them.
- The picture: a photograph of a black monolith on a hill, backlit, with
the wordmark "MONOLITH" and "an atproto PDS" set under it. The nav
reads "MONOLITH PDS".
- Under it, a headline the owner chose, kept as it is: "A new dawn for
your Atmosphere account." (the Atmosphere is what atproto's network of
apps and accounts calls itself). It sets the mood; it does not say
what Monolith is.
- Under the headline, the sentence: what Monolith is and what sets it
apart from the reference, in one sentence the reader takes in at a
glance. It does the work the headline does not.
- Two buttons: one to start (the getting-started guide), one to the docs.
- The page's `<title>` and meta description, which a link to it shows.
## Pages to link
The docs site's own: `/overview/`, `/guide/getting-started/`,
`/guide/deploying/`, `/guide/calling/` (with `#connect-an-ai-app`),
`/guide/operating/`, `/reference/methods/`, `/reference/bench-results/`,
`/reference/compat-results/`, `/spec/` (the specification).
## Glossary
Only what the facts use:
- **PDS**: the server an account's data lives on.
- **DID**: an account's permanent identifier; a **handle** is its
changeable name, as `alice.example.com`.
- **PLC rotation key**: the key the server signs an account's DID
changes with.
- **firehose**: the stream of every write a PDS makes, which relays read.
- **XRPC**: atproto's HTTP methods, under `/xrpc/`.
- **MCP**: the protocol AI apps such as Claude use to call tools on a
server.
.claude/skills/landing/SKILL.mdnew+57−0
@@ -0,0 +1,57 @@
---
name: landing
description: Write or rewrite the copy of Monolith's landing page (docs-site/src/pages/index.astro). Use when asked to work on the landing's words, or when what the server does or how it compares with the reference changes enough that the page no longer says it. Facts first, then a fresh writer given only the facts and context.md, then a check of every claim.
---
# Writing the landing page
Copy edited in place keeps its shape and its weak lines, and a writer who
knows the project states what a reader takes for granted: that a PDS
hosts accounts, signs in apps, keeps blobs, moves accounts. Every atproto
PDS does those, the reference first. So the page is written fresh, from
facts, by an agent that has seen neither the old copy nor the docs, and
held to one test: each line says why someone would run Monolith instead
of `@atproto/pds`, or what they need to do it.
## 1. Facts
Write a fact inventory to a scratch file. Each fact is one line, with
where it comes from:
- `[ours]` what Monolith does: the spec page, guide or results file, and
its section.
- `[ref]` what the reference PDS and its distribution do, from their
public docs (the `bluesky-social/pds` README, atproto.com), never from
the reference's source.
- `[measured]` a figure from `bench/results.json`, `compat/results.json`
or a run named in `bench/RESULTS.md`, with how it is taken.
- `[both]` what both do: the reader assumes it, and the page names it
only to say how Monolith does it differently.
Under a heading **Where the reference is ahead**, list what it has that
Monolith lacks (the README's Known gaps, and what the reference's
distribution ships around the server). Under **Not measured**, list
comparisons nobody has run, so the writer does not imply them.
## 2. Context
`context.md` beside this file: the reader, Monolith in three lines, what
the reference ships, the figures the page computes, and the parts of the
page that are not copy. Update it when those change.
## 3. Write
Give a fresh agent only `context.md` and the facts file, with the brief
in `writer.md`. It writes a draft as Markdown, section by section, each
claim tagged with the fact it rests on, and reports what it left out.
## 4. Check
- Every claim against the facts; a figure against the file it is read
from. The page computes figures at build time: the draft names them as
`{placeholders}`, never as numbers typed in.
- Every `[both]` fact the draft states as a strength: cut it, or say what
differs.
- Nothing from **Not measured** implied.
- Put it in the page, then `cd docs-site && npm run build`, and look at
it at desktop and phone widths.
.claude/skills/landing/writer.mdnew+69−0
@@ -0,0 +1,69 @@
# Brief for the writer
Fill in the brackets and hand it to a fresh agent.
---
Write the words of Monolith's landing page from scratch, into
[scratch path].
## Your inputs
These two files are your only sources. Read them in full first:
- [context file]: the reader, Monolith in three lines, what the reference
ships, the figures the page may use, and the page's shape.
- [facts file]: what Monolith and the reference each do, measured
figures, where the reference is ahead, and what was never measured.
Do not read the current landing page, README.md, docs/ or AGENTS.md. You
may read a spec page or a results file named in a fact, only to settle a
doubt about that fact, and say so in your report.
## The model
ghostty.org: a picture, then one sentence, then Download and
Documentation. "Ghostty is a fast, feature-rich, and cross-platform
terminal emulator that uses platform-native UI and GPU acceleration."
The sentence says what it is and what sets it apart, in plain words, and
stops. Monolith's page has the same shape: the photograph, then a
headline the owner chose, "A new dawn for your Atmosphere account.",
then your sentence under it, then two buttons. The headline sets the
mood; your sentence says what Monolith is.
## The test the sentence meets
The reader already assumes what any PDS does, and the default choice is
the reference, `@atproto/pds`. The sentence says why they would run
Monolith instead. Something as true of the reference fails: "in one
binary", "no database beside it", "OAuth sign-in", "self-hosted",
"federates with the network".
Pick the one or two differences that matter most to the reader, from the
facts. Specific beats general: a mechanism or a figure says more than an
adjective. Imply nothing the facts list as not measured.
## How to write it
- One sentence, about 15 to 30 words. It names Monolith and what it is.
- At most one figure, as the context's `{placeholder}`, never typed in.
- Plain words, present tense. No slogans, no em dashes, no "not just X but
Y", no lists of three for rhythm, and none of: blazing, seamless,
robust, powerful, effortless, next-generation, leverage.
- The button labels: short, specific, in the page's style (upper case,
set in mono).
## The draft's form
1. The sentence, with the facts it rests on in a quoted line under it.
2. The two button labels.
3. The `<title>` and the meta description (one sentence, may differ from
the page's).
4. Four alternative sentences, each with a line on what it leads with
and what it gives up.
## Report back
1. Which sentence you would ship, and why, in two lines.
2. Facts you wanted in the sentence and left out, and why.
3. Anything in the facts you doubted, and what you read to settle it.
.claude/skills/ui/SKILL.md+6−0
@@ -40,8 +40,14 @@ just look ended # consent answered 400: "This sign-in has ende
just look busy # the sign-in held on its way: the button busy, the rest disabled
just look error # the error page
just look consent --phone --light # one size and scheme alone
just look email resetPassword # an email's HTML part, as the server sent it over SMTP
```
`email` takes any kind of email: `confirmEmail`, `updateEmail`,
`resetPassword`, `signInAuthFactor`, `deleteAccount`, `plcOperation`; or
`all`, which `just look-emails` runs. The browser draws it as a page; a
mail client may draw less.
It prints each console message, and says when a view is wider than the
screen, naming the element that runs past the edge. Fix that before
anything else, because on a phone the page then scrolls sideways.
.knotless/workflows/docs.yml+2−2
@@ -12,10 +12,10 @@ runners: [runner.knotless.dev]
on:
push:
refs: [refs/heads/main]
paths: [docs/**, spec/*.md, spec/lexicons/**, compat/*.md, bench/*.md, docs-site/**, web/src/tokens.css, .knotless/workflows/docs.yml, .knotless/uses.lock]
paths: [docs/**, spec/*.md, spec/lexicons/**, compat/*.md, bench/*.md, bench/results.json, docs-site/**, .knotless/workflows/docs.yml, .knotless/uses.lock]
pull:
base: [refs/heads/main]
paths: [docs/**, spec/*.md, spec/lexicons/**, compat/*.md, bench/*.md, docs-site/**, web/src/tokens.css, .knotless/workflows/docs.yml, .knotless/uses.lock]
paths: [docs/**, spec/*.md, spec/lexicons/**, compat/*.md, bench/*.md, bench/results.json, docs-site/**, .knotless/workflows/docs.yml, .knotless/uses.lock]
cache: [docs-site/node_modules]
steps:
- uses: chadtmiller.com/steps/npm-ci@1
bench/docker/reference.Dockerfile+1−1
@@ -4,7 +4,7 @@
# harness/bench-reference.mjs. Built by `node bench.mjs --setup` with
# harness/ as its context:
#
# docker build -t spec-pds-bench-reference:local -f bench/docker/reference.Dockerfile harness
# docker build -t monolith-bench-reference:local -f bench/docker/reference.Dockerfile harness
#
# The image also answers the benchmark's client ceiling (bench.mjs), with
# its node and another entrypoint.
bench/soak/data/at-rest/events-monolith.jsonl.gznew+0−0
A binary file, not shown.
bench/soak/data/at-rest/events-spec-pds.jsonl.gzdeleted+0−0
A binary file, not shown.
bench/soak/data/at-rest/summary-spec-pds.json → bench/soak/data/at-rest/summary-monolith.jsonrenamed+1−1
@@ -1,5 +1,5 @@
{
"side": "spec-pds",
"side": "monolith",
"updated": "2026-11-13T17:54:02.772Z",
"started": "2026-11-13T17:43:55.394Z",
"accounts": 20,
bench/soak/data/day-local-disk/events-monolith.jsonl.gznew+0−0
A binary file, not shown.
bench/soak/data/day-local-disk/events-spec-pds.jsonl.gzdeleted+0−0
A binary file, not shown.
bench/soak/data/day-local-disk/summary-spec-pds.json → bench/soak/data/day-local-disk/summary-monolith.jsonrenamed+1−1
@@ -1,5 +1,5 @@
{
"side": "spec-pds",
"side": "monolith",
"updated": "2026-11-13T18:37:19.433Z",
"started": "2026-11-13T17:01:54.588Z",
"accounts": 50,
bench/soak/data/night1/events-monolith.jsonl.gznew+0−0
A binary file, not shown.
bench/soak/data/night1/events-spec-pds.jsonl.gzdeleted+0−0
A binary file, not shown.
bench/soak/data/night1/summary-spec-pds.json → bench/soak/data/night1/summary-monolith.jsonrenamed+1−1
@@ -1,5 +1,5 @@
{
"side": "spec-pds",
"side": "monolith",
"updated": "2026-11-13T16:13:52.687Z",
"started": "2026-11-13T07:08:46.689Z",
"accounts": 50,
bench/soak/analyze.mjs+5−5
@@ -4,7 +4,7 @@
//
// The run's directory holds what soak.mjs wrote (summary-*.json, events-*.jsonl)
// and, where they were kept, a sampler's samples.jsonl and kills.jsonl, and
// spec-pds's request lines as server-log.jsonl (its log, PDS_LOG_DIR, cut to
// Monolith's request lines as server-log.jsonl (its log, PDS_LOG_DIR, cut to
// them); each may be gzipped. --split cuts the time into periods, as before
// and after a change; --from and --to bound everything read by time.
// Markdown on stdout: only the sections the files allow.
@@ -142,7 +142,7 @@ if (samples.length) {
const synced = samples.filter((s) => s.specFsync && s.specFsync['+Inf'] != null)
if (synced.length > 1) {
out.push("## spec-pds's syncs (samples.jsonl: its fsync histogram, the disk's counters)", '')
out.push("## Monolith's syncs (samples.jsonl: its fsync histogram, the disk's counters)", '')
// Counts between consecutive samples of the same start (a start sets the histogram to 0).
const steps = []
for (let i = 1; i < synced.length; i++) {
@@ -160,7 +160,7 @@ if (samples.length) {
}
}
// ---------------------------------------------------------------- spec-pds's log
// ---------------------------------------------------------------- Monolith's log
const log = lines('server-log.jsonl').filter((l) => inRange(l.time))
if (log.length) {
@@ -174,7 +174,7 @@ if (log.length) {
const s = [...ms].sort((a, b) => a - b)
return [int(s.length), num(pct(s, 0.5)), num(pct(s, 0.99)), num(pct(s, 0.999)), num(s.at(-1))]
}
out.push("## spec-pds's requests, server side (server-log.jsonl)", '', `Its \`request\` lines' \`ms\`. Starts in the log: ${starts.length}.`, '')
out.push("## Monolith's requests, server side (server-log.jsonl)", '', `Its \`request\` lines' \`ms\`. Starts in the log: ${starts.length}.`, '')
const by = {}
for (const r of reqs) (by[r.method] ??= []).push(r.ms)
table(['method', 'n', 'p50 ms', 'p99 ms', 'p99.9 ms', 'worst ms'], Object.entries(by).filter(([, v]) => v.length >= 500).sort((a, b) => b[1].length - a[1].length).map(([m, v]) => [m.replace('com.atproto.', ''), ...stats(v)]))
@@ -211,7 +211,7 @@ if (log.length) {
out.push(`Slow writes: ${int(slowN)}.`, '')
if (samples.length) {
// Slow writes against the disk's flush time and spec-pds's slow syncs, a sample apart.
// Slow writes against the disk's flush time and Monolith's slow syncs, a sample apart.
const steps = []
for (let i = 1; i < samples.length; i++) {
const a = samples[i - 1], b = samples[i]
bench/soak/README.md+2−2
bench/soak/RESULTS.md+77−77
bench/soak/soak.mjs+3−3
bench/store/README.md+1−1
bench/impls.json+5−5
bench/README.md+17−17
bench/results.json+11−11
bench/RESULTS.md+32−32
compat/README.md+31−31
compat/results.json+65−65
compat/RESULTS.md+29−29
crates/pds-server/src/email.rs+89−12
crates/pds-server/src/ops.rs+1−1
crates/pds-server/build.rs+18−1
docs/guide/calling.md+3−3
docs/guide/comparing.md+4−4
docs/guide/contributing.md+99−4
docs/guide/deploying.md+9−8
docs/guide/getting-started.md+101−60
docs/README.md+10−7
docs-site/public/fonts/jetbrains-mono-latin.woff2new+0−0
A binary file, not shown.
docs-site/public/fonts/OFL-JetBrainsMono.txtnew+93−0
docs-site/public/fonts/OFL-SpaceGrotesk.txtnew+93−0
docs-site/public/fonts/space-grotesk-latin.woff2new+0−0
A binary file, not shown.
docs-site/src/assets/hero.jpgnew+0−0
A binary file, not shown.
docs-site/src/pages/index.astronew+239−0
docs-site/src/monolith.cssnew+38−0
docs-site/src/theme.css+153−57
docs-site/astro.config.mjs+18−11
docs-site/content.mjs+82−26
docs-site/package-lock.json+2−2
docs-site/package.json+1−1
docs-site/plugins.mjs+116−8
harness/checks/accounts.mjs+2−2
harness/checks/blobs.mjs+1−1
harness/checks/commands.mjs+2−2
harness/checks/identity.mjs+1−1
harness/checks/logging.mjs+1−1
harness/checks/oauth.mjs+1−1
harness/checks/operations.mjs+1−1
harness/checks/session.mjs+1−1
harness/lib/adapters/index.mjs+7−7
harness/lib/adapters/spec-pds.mjs → harness/lib/adapters/monolith.mjsrenamed+3−3
harness/lib/areas.mjs+1−1
harness/lib/args.mjs+5−5
harness/lib/env.mjs+4−1
harness/lib/mail.mjs+52−9
harness/lib/report.mjs+1−1
harness/lib/server.mjs+6−6
harness/lib/smtp.mjs+18−0
harness/lib/via.mjs+1−1
harness/spaces/package-lock.json+2−2
harness/spaces/package.json+1−1
harness/bench.mjs+12−12
harness/compare.mjs+1−1
harness/compat.mjs+13−13
harness/dev.mjs+1−1
harness/look.mjs+93−7
harness/package-lock.json+2−2
harness/package.json+1−1
spec/COMPAT.md+13−13
spec/EMAIL.md+44−10
spec/OAUTH-PAGES.md+6−5
spec/OPERATIONS.md+1−1
spec/PDS.md+1−1
web/src/assets/fonts/jetbrains-mono-latin.woff2new+0−0
A binary file, not shown.
web/src/assets/fonts/OFL-JetBrainsMono.txtnew+93−0
web/src/assets/fonts/OFL-SpaceGrotesk.txtnew+93−0
web/src/assets/fonts/space-grotesk-latin.woff2new+0−0
A binary file, not shown.
web/src/assets/icon.svg+1−1
web/src/email/email.htmlnew+76−0
web/src/lib/atoms/Button.svelte+6−1
web/src/lib/templates/Card.svelte+7−6
web/src/app.css+19−0
web/src/tokens.css+50−39
web/AGENTS.md+7−0
web/package-lock.json+20−2
web/package.json+2−1
web/vite.config.ts+50−3
AGENTS.md+4−4
Dockerfile+2−2
Justfile+9−2
README.md+4−4