Skip to content

Feature apps that use ATProto Spaces on the home page and in /apps - #69

Merged
hipstersmoothie merged 1 commit into
mainfrom
sesh/add-homepage-section-for-space-apps
Dec 5, 2026
Merged

hipstersmoothie merged 1 commit into
mainfrom
sesh/add-homepage-section-for-space-apps

Conversation

@hipstersmoothie

Copy link
Copy Markdown
Collaborator

Spaces (permissioned data, proposal 0016) just shipped. This detects which listings use it and surfaces them.

Detection

A listing supports Spaces when its own OAuth client asks for it:

  • a space:<spaceType>[?authority=…&action=…&manage=…] token in the published client scope line, or
  • an include: permission set with a resource: "space" entry.

It deliberately ignores oauth_scopes_distinct. That column also merges the authorization server's scopes_supported, so a Spaces-capable PDS would flag every app. Bundles probed before this change show up as resource: space. under "Technical permission", and those match too.

The check is a SQL predicate (sqlProbeRequestsSpaces) over existing probe columns, so no migration is needed and current probe data works right away.

Changes

  • Home: a "Built for Spaces" section after "Popular right now", with the top 4 by trending and a link to /apps?has=spaces. It's hidden when empty.
  • /apps: a "Supports Spaces" extra (?has=spaces). Added to searchListings knownValues too; the lexicon needs republishing.
  • Scopes popover: a "Permissioned spaces" group with plain-language text for space: tokens and bundle entries. Space collections get their own list label, so private space data doesn't feed the public repo lexicon keys.

Testing

  • Unit tests for the scope parser and the browse filter.
  • Ran the predicate against a local Postgres: it matches direct tokens, new and legacy bundles, and a token at the start of the line. It doesn't match lookalikes like repo:com.example.space.

🤖 Generated with Claude Code

Detect Spaces (permissioned data) support from a listing's own OAuth
client scopes: a `space:` token, or an `include:` permission set with a
`resource: "space"` entry. Ignores the authorization server's
scopes_supported so a Spaces-capable PDS doesn't flag every app.

- Home: "Built for Spaces" section (hidden when empty)
- /apps: "Supports Spaces" extra (`?has=spaces`), also in searchListings
- Scopes popover: group and describe space scopes and bundle entries

Derived in SQL from existing probe data, so no migration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hipstersmoothie
hipstersmoothie merged commit c63e4dc into main Dec 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant