# JS Client

The Stoobly JavaScript library (`stoobly`) provides convenient access to `stoobly-agent` from end-to-end testing frameworks such Playwright and Cypress. It enables recording, mocking, and testing HTTP requests directly from your test framework.

## Sub-Pages

* [Setup](/faq/scaffold/e2e-testing/js-client/setup.md) — Installation, requirements, and importing the library
* [Playwright Integration](/faq/scaffold/e2e-testing/js-client/playwright.md) — Using `playwrightInterceptor()`, `withPage()`, `withContext()`, and recording
* [Cypress Integration](/faq/scaffold/e2e-testing/js-client/cypress.md) — Using `cypressInterceptor()`, `enable()`, and recording
* [Configuration](/faq/scaffold/e2e-testing/js-client/configuration.md) — URL patterns, scenarios, sessions, recording options, and interception control
* [Troubleshooting & Examples](/faq/scaffold/e2e-testing/js-client/troubleshooting.md) — Debugging, complete examples, and quick reference

## Related Documentation

* For scaffold integration, see [../README.md](/faq/scaffold/e2e-testing.md)
* For Docker runtime, see [../docker.md](/faq/scaffold/e2e-testing/docker.md)
* For local runtime, see [../local.md](/faq/scaffold/e2e-testing/local.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stoobly.com/faq/scaffold/e2e-testing/js-client.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
