Graphene
Sign in
Get started
⌘
⏎
Review pull requests
at the
speed
of thought.
A keyboard-first PR review tool for GitHub. Fast, focused, and free.
Get started
⌘
⏎
Sign in
g
h
home
j
k
navigate files
n
p
next/prev hunk
⌘
K
command palette
c
l
copy link
?
all shortcuts
Graphene
feat: add streaming response support
#142
Open
+127
-34
3 files
src/api/response.ts
14
export function
createResponse
(data) {
15
return JSON.stringify(data);
16
}
17
18
export function
parseBody
(req) {
src/api/response.ts
14
export async function*
createResponse
(data) {
15
for (const chunk of data) {
16
yield JSON.stringify(chunk);
17
}
18
}