chadtmiller.com/monolith
An atproto PDS
0
0
Release 0.3.0
.changeset/import-compacts-at-once.mddeleted+0−7
| @@ -1,7 +0,0 @@ | ||
--- | ||
default: patch | ||
--- | ||
| ||
# A large import's log is compacted at once | ||
| ||
The log of an account that moved in a large repository with `com.atproto.repo.importRepo` is compacted in seconds, not in about an hour: the import is one commit of every record, whose index was larger than compaction's cache keeps, so it read the whole commit again for each record it wrote out, and the account's next write, such as `activateAccount`, waited for it all that time. Compaction now indexes each commit once, holding its index until it ends, counted in `PDS_CACHE_BYTES` as what it holds besides. | ||
.changeset/import-keeps-every-record.mddeleted+0−7
| @@ -1,7 +0,0 @@ | ||
--- | ||
default: patch | ||
--- | ||
| ||
# importRepo keeps every record as the CAR file has it | ||
| ||
A repository moved in with `com.atproto.repo.importRepo` whose records hold a map that JSON writes as another value, such as a blob ref whose `ref` is a map of the one key `$link` rather than a link, as some servers wrote them, no longer leaves the account's log unreadable: before, the server logged `store failure` ("record …, which the commit … does not sign") on the import and on every write after it, could not compact the account's log, and stopped when it next read such a record from the log. Each record is now kept byte for byte at the CID the CAR names, through compaction and restarts, and the blob such a `ref` names is the account's to hold, listed by `listMissingBlobs` until it is uploaded. The same holds for a space repo's records imported with `com.atproto.space.importRepo`. | ||
.changeset/licensed-mit-or-apache.mddeleted+0−7
| @@ -1,7 +0,0 @@ | ||
--- | ||
default: patch | ||
--- | ||
| ||
# Monolith is licensed MIT or Apache-2.0 | ||
| ||
Monolith may be used, changed and shared under the MIT license or the Apache License 2.0, at your option. Both are in the binary's archive and in the image, at `/usr/share/doc/monolith/`, whose `org.opencontainers.image.licenses` label names them. The specifications vendored under `spec/` keep their own licenses. | ||
.changeset/passkeys.mddeleted+0−7
| @@ -1,7 +0,0 @@ | ||
--- | ||
default: minor | ||
--- | ||
| ||
# Accounts sign in with passkeys | ||
| ||
An account can sign in on the OAuth sign-in page with a passkey instead of its password, and with no email code. `pds passkey add --name <name>` (or the `passkey_add` MCP tool), with the account's password session, answers a link, good for 15 minutes, to open in a browser on the device that is to keep the passkey; `pds passkey list` and `pds passkey remove --id <id>` list and remove them. The sign-in page offers the device's passkeys in the "Handle or email" field's autofill, and with a `Sign in with a passkey` button. Passkeys are bound to the host of `PDS_PUBLIC_URL`: a browser makes none for an IP address, and once the URL names another host those made before are no longer offered. A password reset removes the account's passkeys. | ||
Cargo.lock+7−7
| @@ -1324,7 +1324,7 @@ dependencies = [ | ||
| ||
[[package]] | ||
name = "pds" | ||
version = "0.2.0" | ||
version = "0.3.0" | ||
dependencies = [ | ||
"pds-cli", | ||
"pds-server", | ||
| @@ -1334,7 +1334,7 @@ dependencies = [ | ||
| ||
[[package]] | ||
name = "pds-cli" | ||
version = "0.2.0" | ||
version = "0.3.0" | ||
dependencies = [ | ||
"pds-lexicon", | ||
"reqwest", | ||
| @@ -1343,7 +1343,7 @@ dependencies = [ | ||
| ||
[[package]] | ||
name = "pds-lexicon" | ||
version = "0.2.0" | ||
version = "0.3.0" | ||
dependencies = [ | ||
"pds-repo", | ||
"pds-space", | ||
| @@ -1353,7 +1353,7 @@ dependencies = [ | ||
| ||
[[package]] | ||
name = "pds-repo" | ||
version = "0.2.0" | ||
version = "0.3.0" | ||
dependencies = [ | ||
"base64 0.22.1", | ||
"bs58", | ||
| @@ -1366,7 +1366,7 @@ dependencies = [ | ||
| ||
[[package]] | ||
name = "pds-server" | ||
version = "0.2.0" | ||
version = "0.3.0" | ||
dependencies = [ | ||
"axum", | ||
"base64 0.22.1", | ||
| @@ -1401,7 +1401,7 @@ dependencies = [ | ||
| ||
[[package]] | ||
name = "pds-space" | ||
version = "0.2.0" | ||
version = "0.3.0" | ||
dependencies = [ | ||
"base64 0.22.1", | ||
"blake3", | ||
| @@ -1416,7 +1416,7 @@ dependencies = [ | ||
| ||
[[package]] | ||
name = "pds-store" | ||
version = "0.2.0" | ||
version = "0.3.0" | ||
dependencies = [ | ||
"rustix", | ||
"serde_json", | ||
Cargo.toml+1−1
| @@ -3,7 +3,7 @@ resolver = "3" | ||
members = ["crates/*"] | ||
| ||
[workspace.package] | ||
version = "0.2.0" | ||
version = "0.3.0" | ||
edition = "2024" | ||
publish = false | ||
license = "MIT OR Apache-2.0" | ||
CHANGELOG.md+22−0
| @@ -2,6 +2,28 @@ | ||
| ||
What changed in each version of Monolith for those who run it or call it, | ||
from the change files in `.changeset/` (see `knope.toml`). | ||
## 0.3.0 (2026-11-14) | ||
| ||
### Features | ||
| ||
#### Accounts sign in with passkeys | ||
| ||
An account can sign in on the OAuth sign-in page with a passkey instead of its password, and with no email code. `pds passkey add --name <name>` (or the `passkey_add` MCP tool), with the account's password session, answers a link, good for 15 minutes, to open in a browser on the device that is to keep the passkey; `pds passkey list` and `pds passkey remove --id <id>` list and remove them. The sign-in page offers the device's passkeys in the "Handle or email" field's autofill, and with a `Sign in with a passkey` button. Passkeys are bound to the host of `PDS_PUBLIC_URL`: a browser makes none for an IP address, and once the URL names another host those made before are no longer offered. A password reset removes the account's passkeys. | ||
| ||
### Fixes | ||
| ||
#### A large import's log is compacted at once | ||
| ||
The log of an account that moved in a large repository with `com.atproto.repo.importRepo` is compacted in seconds, not in about an hour: the import is one commit of every record, whose index was larger than compaction's cache keeps, so it read the whole commit again for each record it wrote out, and the account's next write, such as `activateAccount`, waited for it all that time. Compaction now indexes each commit once, holding its index until it ends, counted in `PDS_CACHE_BYTES` as what it holds besides. | ||
| ||
#### importRepo keeps every record as the CAR file has it | ||
| ||
A repository moved in with `com.atproto.repo.importRepo` whose records hold a map that JSON writes as another value, such as a blob ref whose `ref` is a map of the one key `$link` rather than a link, as some servers wrote them, no longer leaves the account's log unreadable: before, the server logged `store failure` ("record …, which the commit … does not sign") on the import and on every write after it, could not compact the account's log, and stopped when it next read such a record from the log. Each record is now kept byte for byte at the CID the CAR names, through compaction and restarts, and the blob such a `ref` names is the account's to hold, listed by `listMissingBlobs` until it is uploaded. The same holds for a space repo's records imported with `com.atproto.space.importRepo`. | ||
| ||
#### Monolith is licensed MIT or Apache-2.0 | ||
| ||
Monolith may be used, changed and shared under the MIT license or the Apache License 2.0, at your option. Both are in the binary's archive and in the image, at `/usr/share/doc/monolith/`, whose `org.opencontainers.image.licenses` label names them. The specifications vendored under `spec/` keep their own licenses. | ||
| ||
## 0.2.0 (2026-11-14) | ||
| ||
### Features | ||