
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
@huolala-tech/page-spy-browser
Advanced tools
English | 中文
@huolala-tech/page-spy-browserThe SDK used in Web environment.
<!-- 1. Load a <script> in your html -->
<script
crossorigin="anonymous"
src="https://<your-host>/page-spy/index.min.js"
></script>
<!-- 2. Init -->
<script>
window.$pageSpy = new PageSpy(config?: InitConfig)
</script>
After the integration, open your project in browser, there should be a widget (round container with white background and include logo) on the bottom left. If not, check your config.
InitConfig definitionFor browser, all parameters are optional.
interface InitConfig {
// The SDK automatically analyses and determines the address of
// the Server (api) and the address of the debug side (clientOrigin)
// from the "src" value, assuming you introduced it from https://example.com/page-spy/index.min.js,
// so the SDK will set it up internally:
// - api: "example.com"
// - clientOrigin: "https://example.com"
// If your service is deployed elsewhere, you can manually specify here to override.
api?: string;
clientOrigin?: string;
// "project" is an aggregation of information that can be searched in the room list on the debug side.
// default: 'default'
project?: string;
// "title" is a user-defined parameter that can be used to distinguish the current debugging client,
// and the corresponding information is displayed under the "device id" in each debugging connection panel.
// default: '--'
title?: string;
// Indicates whether the SDK will automatically render the "Circle with Logo on White Background"
// control in the bottom left corner of the client when initiation is complete. If set to false,
// you can call window.$pageSpy.render() to render it manually.
// default: true
autoRender?: boolean;
// Manually specify the scheme of the PageSpy service.
// This works if the SDK can't correctly analyse the scheme, e.g. if PageSpy's browser plugin
// is introduced into the SDK via chrome-extension://xxx/sdk/index.min.js, which will be
// be parsed by the SDK as an invalid "chrome-extension://" and fallback to ["http://", "ws://"].
// - (Default) Pass the value undefined or null: the SDK will parse it automatically;
// - Pass boolean value:
// - true: the SDK will access the PageSpy service via ["https://", "wss://"].
// - false: the SDK will access the PageSpy service via ["http://", "wss://"]
enableSSL?: boolean | null;
// All internal plugins are carried with PageSpy by default out of the box.
// You can disable some plugins as needed.
disabledPlugins?: (InternalPlugins | string)[];
// After adding support for offline replay in PageSpy@1.7.4, the client-integrated SDK can work without
// establishing a connection with the debugger.
// Default value is false, when users set it to other values will enters "offline mode", where PageSpy
// will not create rooms or establish WebSocket connections.
offline?: boolean;
// Customize logo source url.
logo?: string;
// Customize logo style.
logoStyle?: Object;
}
type InternalPlugins =
| 'ConsolePlugin'
| 'ErrorPlugin'
| 'NetworkPlugin'
| 'StoragePlugin'
| 'DatabasePlugin'
| 'PagePlugin'
| 'SystemPlugin';
FAQs
A developer tool for debugging remote web page.
We found that @huolala-tech/page-spy-browser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.