List every public profile, newest change first, for a directory to pull - #194
Merged
Conversation
GET /api/openprofiles: each author's OpenProfile.md URL, page, accounts and site, ordered by the later of the author row's and the overlay's updated_at so a re-crawl and a correction both surface, with a keyset cursor over (updated_at, id), ?since= for what moved, ?limit= up to 500. Public profiles only, above the site's own confidence floor. This is what nichedb's profiles collection reads instead of walking author pages. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S7yeJUHGxA4P5N74xnsRPQ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The rollout contract's listing endpoint, so nichedb pulls rssamplifier authors directly.
GET /api/openprofiles?since=&limit=&cursor=→{ openprofiles: [{ id: slug, name, url, page, updatedAt, accounts: [urls], web }], next }. Keyless, CORS*, public profiles only (owner's switch off excluded), confidence at or above the site's 0.6 floor, newest change first whereupdatedAt = max(authors.updated_at, author_profiles.updated_at), keyset cursor over(updated_at, id)(base64url),?limit=up to 500, 400 on a bad cursor or since. Listed in llms.txt, skill.md and the README table (there is no OpenAPI document in this repo).Tests:
packages/db/test/profiles.test.js(ordering, keyset paging to the end, since, public off, confidence floor), cursor round trip inapps/web/test/openprofile.test.js;pnpm testgreen. Smoke against the local file database: the page, a bad cursor 400, an empty future window.🤖 Generated with Claude Code
https://claude.ai/code/session_01S7yeJUHGxA4P5N74xnsRPQ