Upgrade puppeteer for HTTPResponse.stream() and measure it on non-HTML navigations
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- javascript, node.js
Research direction
The issue names the Puppeteer dependencies in packages/browserless, agent, and ai, and asks for a test against a local server. First check the current package manifests and test setup, then verify which Puppeteer release provides HTTPResponse.stream(). Measure received versus served bytes and whether streaming rejects for each listed navigation type; release browserless after recording the results.
Written by the indexing model from the issue text.
Description
claude --dangerously-skip-permissions --resume f585c3fe-624a-4f4c-9b28-edf7962e7046
—
Blocked on upstream: https://github.com/puppeteer/puppeteer/issues/7863
Puppeteer is adding HTTPResponse.stream(): Promise<ReadableStream<Uint8Array>>, built on the experimental CDP method Network.streamResourceContent (approved by OrKoN in the issue thread). It returns the data buffered so far and then streams the rest until loading finishes. It must be called from the response event, before loading finishes; after that it rejects. It is CDP only (BiDi throws UnsupportedOperation).
Tasks
-
Bump
puppeteer(currently"25"inpackages/browserless,agent,ai) to the first release that shipsresponse.stream(). -
Measure, in a test against a local server, whether
stream()returns the body when the main-frame navigation is:application/pdfserved from a URL without.pdf(PDF viewer case)content-disposition: attachment(download case,gotoends innet::ERR_ABORTED)- an image or media type
- a normal
text/htmldocument (baseline)
Record per case: body bytes received vs. bytes served, and whether
stream()rejected. This result decides whether microlinkhq/html-get can use it (see the linked html-get issue). -
Release browserless so html-get and the API can pick it up.
Out of scope
page.pdf() / page.screenshot() output streaming. response.stream() covers network response bodies only. PDF output streaming is already available through page.createPDFStream(), and Page.captureScreenshot has no stream mode.
- Dominant language
- JavaScript
- Stars
- 1.8k
- Forks
- 90
- Avg merge
- 5h 42m
- Merged PRs (30d)
- 40
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microlinkhq/browserless
-
goto: consent banner text stays in the HTML after autoconsent and becomes the page descriptionPossibly taken @Kikobeats claimed this today. Open
Difficulty 4/5 3-5 days Newbie friendliness 30/100
microlinkhq/browserless#1069 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
microlinkhq/browserless#284 · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
microlinkhq/browserless#59 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
microlinkhq/browserless#58 ·
Maintainers usually reply within 1 day
-
Enable data saverOpen
Difficulty 5/5 Over a week Newbie friendliness 20/100
microlinkhq/browserless#25 ·
Maintainers usually reply within 1 day
All issues in microlinkhq/browserless
Similar issues
-
security-advisory
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MinBZK/regelrecht#2173 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day
-
bug repro-ready
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
mksglu/context-mode#1454 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
microlinkhq/metascraper#905 ·
Maintainers usually reply within 1 day