From f5382c69b9fa8a60b1d26bef04e7b5d5269c3e1e Mon Sep 17 00:00:00 2001 From: Ziv Date: Tue, 21 Oct 2025 08:23:48 +0300 Subject: [PATCH 1/3] Document community client for JavaScript Added information about an open source community client for JavaScript. --- docs/api/stream_api/index.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/api/stream_api/index.mdx b/docs/api/stream_api/index.mdx index 0168a99b5..18356c796 100644 --- a/docs/api/stream_api/index.mdx +++ b/docs/api/stream_api/index.mdx @@ -137,6 +137,8 @@ curl --header "Accept:text/event-stream" --get --url "https://sourcegraph.com/.a If you don't want to write your own client, you can also use Sourcegraph's [src-cli](https://sourcegraph.com/github.com/sourcegraph/src-cli). +An open source community client for JavaScript (for Node.JS, browser, Deno etc.) is available at [source-graph-stream-client](https://github.com/ziv/source-graph-stream-client/tree/main). + ```bash src search -stream "secret count:all" ``` From 73b23ebddfca79a471e81f6ca7df037ec343a545 Mon Sep 17 00:00:00 2001 From: Justin Dorfman Date: Wed, 12 Nov 2025 13:16:06 -0800 Subject: [PATCH 2/3] Update documentation for community client to specify TypeScript/JavaScript support --- docs/api/stream_api/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/stream_api/index.mdx b/docs/api/stream_api/index.mdx index 18356c796..e37b09f1b 100644 --- a/docs/api/stream_api/index.mdx +++ b/docs/api/stream_api/index.mdx @@ -137,7 +137,7 @@ curl --header "Accept:text/event-stream" --get --url "https://sourcegraph.com/.a If you don't want to write your own client, you can also use Sourcegraph's [src-cli](https://sourcegraph.com/github.com/sourcegraph/src-cli). -An open source community client for JavaScript (for Node.JS, browser, Deno etc.) is available at [source-graph-stream-client](https://github.com/ziv/source-graph-stream-client/tree/main). +A community-maintained open source TypeScript/JavaScript client supporting Node.js, browsers, and Deno is available at [ziv/source-graph-stream-client](https://sourcegraph.com/github.com/ziv/source-graph-stream-client). ```bash src search -stream "secret count:all" From 77d355757cc61831c8dfaab6ec6babddfe8b735b Mon Sep 17 00:00:00 2001 From: Justin Dorfman Date: Wed, 12 Nov 2025 13:58:07 -0800 Subject: [PATCH 3/3] Moved community below src code block --- docs/api/stream_api/index.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/stream_api/index.mdx b/docs/api/stream_api/index.mdx index e37b09f1b..53dea6142 100644 --- a/docs/api/stream_api/index.mdx +++ b/docs/api/stream_api/index.mdx @@ -137,12 +137,12 @@ curl --header "Accept:text/event-stream" --get --url "https://sourcegraph.com/.a If you don't want to write your own client, you can also use Sourcegraph's [src-cli](https://sourcegraph.com/github.com/sourcegraph/src-cli). -A community-maintained open source TypeScript/JavaScript client supporting Node.js, browsers, and Deno is available at [ziv/source-graph-stream-client](https://sourcegraph.com/github.com/ziv/source-graph-stream-client). - ```bash src search -stream "secret count:all" ``` +A community-maintained open source TypeScript/JavaScript client supporting Node.js, browsers, and Deno is available at [ziv/source-graph-stream-client](https://sourcegraph.com/github.com/ziv/source-graph-stream-client). + ### Q: Are there plans for supporting a streaming client or interface with more functionality (e.g., parallelizing multiple streaming requests or aggregating results from multiple streams)? There are currently no plans to support additional client-side functionality to interact with a streaming endpoint. We recommend users write their own scripts or client wrappers that handle, e.g., firing multiple requests, accepting and aggregating the return values, and additional result formatting or processing.