npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@openlogs/sdk

v0.2.1

Published

Mobile H5 SDK for openLog — real-time console, network, storage, DOM, performance collection

Readme

@openlogs/sdk

Mobile H5 SDK for openLog — real-time collection of console logs, network requests, storage, DOM, performance, errors, and screenshots.

Installation

npm install @openlogs/sdk

Quick Start

CDN (IIFE)

<script src="https://unpkg.com/@openlogs/sdk@latest/dist/openlog.iife.js"></script>
<script>
  OpenLog.init({
    projectId: 'my-app',
    server: 'ws://192.168.x.x:38291',
    lang: 'en'
  });
</script>

ES Module

import OpenLog from '@openlogs/sdk';

new OpenLog({
  projectId: 'my-app',
  server: 'ws://192.168.x.x:38291',
  lang: 'en'
});

Local-only Mode (No Server)

OpenLog.init({ projectId: 'my-app', lang: 'en' });
// Opens built-in Eruda debug panel on device

Configuration

| Option | Type | Default | Description | |--------|------|---------|-------------| | projectId | string | (required) | Project identifier | | server | string | — | WebSocket server URL (omit for local-only mode) | | lang | 'en' \| 'zh' | 'zh' | UI language | | enableConsole | boolean | true | Collect console logs | | enableNetwork | boolean | true | Intercept network requests | | enableStorage | boolean | true | Monitor storage changes | | enablePerformance | boolean | true | Collect performance data | | enableError | boolean | true | Capture JS errors |

Collectors

| Collector | Description | |-----------|-------------| | Console | log / warn / error / info, preserves rich-text arguments | | Network | XHR + Fetch interception with request/response bodies + timing | | Storage | localStorage / sessionStorage / Cookie monitoring | | DOM | Page structure serialization | | Performance | FPS + Web Vitals (LCP/CLS/FCP/TTFB/INP) + Long Tasks | | Error | Global JS errors + unhandled Promise rejections | | Screenshot | html2canvas page capture |

API

Constructor

new OpenLog(options: OpenLogOptions)
// or
OpenLog.init(options: OpenLogOptions)

Methods

| Method | Description | |--------|-------------| | enableRemote() | Enable remote monitoring | | disableRemote() | Disable remote monitoring (persisted to localStorage) | | isRemoteEnabled() | Check if remote monitoring is active | | destroy() | Destroy instance, restore original console, disconnect |

Architecture

OpenLog SDK
├── DataBus (unified event bus)
│   ├── ErudaPlugin → On-device debug panel
│   └── WebSocket Reporter → Server
├── Interceptors (console, network, storage, DOM, perf, error, screenshot)
└── Transport (WebSocket with auto-reconnect + message queue)

Development

# From monorepo root
pnpm --filter @openlogs/sdk dev    # Watch mode
pnpm --filter @openlogs/sdk build  # Production build
pnpm --filter @openlogs/sdk test   # Run tests

License

MIT © openLog