Skip to content
ReviewOS
Features
Review
Durable review threads
Comments that follow the line through a rebase instead of vanishing.
Stacked pull requests
Dependent changes that merge in order and retarget themselves.
Agentic review
Coding agents as first-class authors and reviewers, with the audit trail to match.
Diffs that stay fast
Rendered on the server, against the merge base, readable at a hundred files.
Merge strategies and rules
Merge, squash, or rebase, gated by approvals, threads, and checks.
Repositories
Plain git hosting
Ordinary bare repositories on your disk, driven by the git binary.
Issues that link up
One number sequence, closing keywords, and references that resolve.
Search that reads like a query
Qualifiers, quoting, and negation, parsed properly rather than by regex.
Automation
Checks from your own CI
A status API your existing pipeline reports into, enforced at merge.
Webhooks you can trust
Signed, retried with backoff, and blocked from reaching your own network.
Notifications worth reading
Every message says why it reached you, and a burst arrives as one.
Operations
Self-hosting without a cluster
One database and one process. Scale the parts that need it, later.
Pages for every repository
A docs folder is a documentation site. Push, and the site is the branch.
Every feature, in one place.
All features
Repositories
Activity
Docs
Sign in
Sign up
Reload
also looking at this
stacks
/
postline
Sync Bluesky engagement metrics into analytics
#12
Merged
glennmichael123 wants to merge
feat/metrics-sync
into
main
10 files
+200
-4
Conversation
Commits
Checks
Files changed
Review screen
File 9 of 10
previous
next
all files
storage/framework/core/socials/src/drivers/bluesky.ts
modified
+27
-0
Changes to storage/framework/core/socials/src/drivers/bluesky.ts
⋯
217 lines
Show the 217 lines above this hunk
@@ -218,6 +218,33 @@
export class BlueskyPublishingDriver implements SocialPublishingDriver {
218
218
}
219
219
}
220
220
221
+
/**
222
+
* Engagement counts for up to 25 of the account's posts per call
223
+
* (app.bsky.feed.getPosts). Deleted posts are simply absent from the
224
+
* response.
225
+
*/
226
+
async
postMetrics
(
227
+
identity
:
SocialIdentityCredentials
,
228
+
uris
:
string
[
]
,
229
+
)
:
Promise
<
Array
<
{
uri
:
string
,
likeCount
:
number
,
repostCount
:
number
,
replyCount
:
number
}
>>
{
230
+
if
(
!
identity
.
accessToken
)
throw
new
Error
(
'Bluesky access token is missing for this identity.'
)
231
+
if
(
uris
.
length
===
0
)
return
[
]
232
+
233
+
const
url
=
new
URL
(
`${this.service}/xrpc/app.bsky.feed.getPosts`
)
234
+
for
(
const
uri
of
uris
.
slice
(
0
,
25
)
)
url
.
searchParams
.
append
(
'uris'
,
uri
)
235
+
236
+
const
payload
=
await
this
.
request
<
{
posts
?
:
Array
<
{
uri
:
string
,
likeCount
?
:
number
,
repostCount
?
:
number
,
replyCount
?
:
number
}
>
}
>
(
url
,
{
237
+
headers
:
{
authorization
:
`Bearer ${identity.accessToken}`
}
,
238
+
}
)
239
+
240
+
return
(
payload
.
posts
||
[
]
)
.
map
(
post
=>
(
{
241
+
uri
:
post
.
uri
,
242
+
likeCount
:
post
.
likeCount
||
0
,
243
+
repostCount
:
post
.
repostCount
||
0
,
244
+
replyCount
:
post
.
replyCount
||
0
,
245
+
}
)
)
246
+
}
247
+
221
248
async
timeline
(
identity
:
SocialIdentityCredentials
,
query
:
TimelineQuery
=
{
}
)
:
Promise
<
TimelineResult
>
{
222
249
if
(
!
identity
.
accessToken
)
throw
new
Error
(
'Bluesky access token is missing for this identity.'
)
223
250