Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use Playwright to open your running Remix site in a real browser, then call page.screenshot(). Remix serves the route; Playwright renders it and captures the pixels. For a visible-viewport image, save the screenshot without extra options; use fullPage: true for the whole scrollable document or a locator screenshot for one component.

How the screenshot workflow fits with Remix

A screenshot shows a page as a browser rendered it, not the source of a Remix route. In this workflow, Remix handles the application URL and its route response, while Playwright controls Chromium, navigates to the URL, and captures the rendered page. Remix routes and controllers work with standard Web Response objects; the Remix documentation does not describe screenshot capture as a built-in feature. See the Remix documentation and Playwright Page API.

Before following framework-specific setup advice, check which generation you use: the Remix documentation landing page directs developers to React Router v7 documentation for the latest framework features. The browser capture steps below are centered on Playwright’s page API; verify setup against your pinned Playwright version, package manager, and runtime because compatibility across every deployment and CI environment is not established here. See the Remix documentation landing page.

Capture a screenshot with Playwright

Start your Remix application using its usual development or production command, then point Playwright at the URL where it is reachable. The example assumes the app is available at http://localhost:3000; replace that address with your actual local, staging, or production URL.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Install and run

Install Playwright using the package manager and browser setup appropriate to your project, following the current Playwright installation guide. Playwright’s installation guide does not establish one universal install command for every package manager and environment, so avoid copying a command that may not match your project. Save this as screenshot.mjs and run it with Node in an environment where the app is running and Playwright’s Chromium browser is available:

import { chromium } from "playwright";

const browser = await chromium.launch();
try {
  const page = await browser.newPage();
  await page.goto("http://localhost:3000");
  await page.screenshot({ path: "screenshot.png" });
} finally {
  await browser.close();
}

The script writes screenshot.png to its current working directory. The finally block closes the browser even if navigation or capture fails. For a particular Remix route, put its path in the URL—for example, http://localhost:3000/products/item—and ensure that route loads in the browser before capturing it.

Wait for the page state you need

page.goto() navigates to the URL, but pages with client-side rendering, delayed content, or animations may need an explicit wait before the capture. If the page has a stable element that signals readiness, wait for it using Playwright’s locator API before taking the screenshot:

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
await page.goto("http://localhost:3000");
await page.locator("main").waitFor();
await page.screenshot({ path: "screenshot.png" });

Choose a selector that exists when the content you care about is ready; merely waiting for a generic container does not prove that every image, animation, or asynchronous request has finished.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose what to capture and how to save it

Playwright supports viewport screenshots, full-page captures, element screenshots, and image bytes returned to your code. Its screenshot API supports PNG, JPEG, and WebP, and offers a scale setting for CSS-pixel or device-pixel output. See the Playwright screenshot documentation.

Need Example Result
Visible viewport await page.screenshot({ path: "page.png" }); Captures the current browser viewport.
Entire scrollable page await page.screenshot({ path: "full-page.png", fullPage: true }); Captures beyond the visible fold.
One component await page.locator(".target").screenshot({ path: "component.png" }); Captures the selected element rather than the whole page.
Image bytes for processing const bytes = await page.screenshot(); Returns image data in memory when no path is supplied.

Viewport versus full page

Use the default screenshot when you need only what is currently visible in the browser window. Set fullPage: true when the output should include content beyond the fold. Full-page capture changes the scope of the image; it does not mean the result is a set of separately paginated screenshots.

Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Capture a component

Use a locator when the subject is one card, chart, header, or other element. Replace .target with a selector that identifies the element in your rendered page:

await page.goto("http://localhost:3000");
await page.locator(".target").screenshot({ path: "component.png" });

If the selector matches no visible element, capture cannot produce the intended component image. Check the selector against the actual rendered DOM and wait for the element if it appears asynchronously.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Return bytes, choose format, and set resolution behavior

Without a path, page.screenshot() returns bytes for further processing. You can also choose an output format and scale; use Playwright’s API documentation for the exact options supported by your installed version. CSS-pixel scale can keep output smaller on high-density screens, while device-pixel scale captures higher-resolution output. PNG, JPEG, and WebP are supported by the screenshot API. See the Page screenshot options.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

When to return a screenshot from a Remix route

If users or another service need to request an image from a Remix URL, that is a separate server-side capture-and-response design—not a screenshot feature supplied automatically by the route. The route layer can return a standard Web response, but browser automation still has to run somewhere suitable to load the target page and capture it. Consider where the browser process will execute, how its resources and lifecycle are managed, and how the resulting bytes are returned. No universal deployment recipe or compatibility matrix for this arrangement is published. See the Remix route documentation.

For visual regression testing, distinguish the image-generation step from the test assertion. A screenshot is an artifact; a test workflow must separately decide what to compare, how to handle expected changes, and where to run the browser. Do not assume that taking an image by itself verifies correctness.

Troubleshoot common capture problems

  • The browser cannot reach the page: Confirm the Remix app is running at the URL in page.goto(), the port is correct, and the browser process can access that host. A localhost URL inside a container refers to that container, not necessarily your host machine.
  • The screenshot is blank or incomplete: Check that navigation reaches the intended route and that the page’s important content has rendered before capture. Wait for a meaningful selector when the content loads asynchronously.
  • The full-page image omits expected content: Confirm you passed fullPage: true and that the content is actually part of the scrollable document. Content that appears only after interaction or delayed loading may need those actions or waits before capture.
  • The element screenshot fails or misses the target: Verify the CSS selector against the rendered page, wait for the element to appear, and ensure it is visible and in the state you want to capture.
  • The output is not saved where expected: A relative path is resolved from the process’s working directory. Use an absolute path or check that directory and its write permissions.
  • Browser launch fails in CI or deployment: Confirm the target environment has the browser binaries and runtime dependencies required by your Playwright setup. Installation and compatibility vary by environment; follow the current Playwright guidance for that runtime rather than assuming a local setup transfers unchanged.
  • Image resolution or file size is wrong for the use: Choose a supported output format and scale deliberately. CSS-pixel scale favors a smaller result on high-density displays; device-pixel scale produces higher-resolution output.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

If you want a hosted capture instead of installing and running a browser, ScreenshotNeo is a website screenshot API and MCP server. One GET request can return a PNG, JPEG, WebP, or PDF; its parameter names also work with those used by other screenshot APIs, which can make switching easier. The following cURL example saves a WebP screenshot of the Remix app URL; replace the URL and API key with your own values. See the ScreenshotNeo API documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=http://localhost:3000 -o shot.webp

ScreenshotNeo accepts cookie or consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each of those steps can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and each response identifies the page verdict and billing status in X-Page-Verdict and X-Billed headers. An MCP server exposes take_screenshot, get_page_info, and capture_pdf to AI agents using Claude, Cursor, or another MCP client.

The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 screenshots. Every feature is available on every plan, and yearly billing gives two months free. Other available options include full-page capture with lazy images loaded, CSS-selector element capture, dark mode, 12 device presets or a custom viewport, retina scale, PDF settings, HTML/CSS capture, custom CSS and JavaScript, clicking an element, hiding selectors, waiting for a selector, delay, or network idle, blocking ads or requests, custom headers, cookies, user agent and Authorization, timezone and geolocation, transparent backgrounds, image resizing, configurable-TTL caching, signed public image links, asynchronous jobs with signed webhooks, bulk capture of 100 URLs per call, a usage API, and an OpenAPI spec.

Sign up for ScreenshotNeo’s free plan to get 1,000 screenshots a month with no card.

Frequently Asked Questions

Does Remix have a built-in website screenshot API?

The Remix documentation does not show one; this workflow uses Playwright to control a browser.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Can I take a screenshot without writing a file?

Yes. Calling page.screenshot() without a path returns image bytes for your code to process.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.