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

frida-web

v1.0.3

Published

Browser-compatible Frida web client using WebSocket D-Bus communication

Readme

Frida Web

Browser-compatible Frida client using WebSocket D-Bus communication.

Features

  • Browser Compatible - Works in modern browsers without Node.js dependencies
  • WebSocket D-Bus - Communicates with Frida server over WebSocket using D-Bus protocol
  • Lightweight - Minimal dependencies, optimized bundle size

Installation

NPM

npm install frida-web

CDN

<script type="module">
  import { Client } from 'https://unpkg.com/frida-web/dist/frida-web.js';
</script>

Git

git clone https://github.com/yourusername/frida-web.git
cd frida-web
npm install
npm run build

Usage

Basic Example

import { Client } from 'frida-web';

const client = new Client('localhost:27042');

// Get system information
const systemInfo = await client.querySystemParameters();
console.log(systemInfo);

// List processes
const processes = await client.enumerateProcesses();
console.log(processes);

// Attach to process
const session = await client.attach(1234);

Browser Usage

<!DOCTYPE html>
<html>
<head>
    <title>Frida Web Client</title>
</head>
<body>
    <script type="module">        
        import { Client } from 'https://unpkg.com/frida-web/dist/frida-web.js';
        
        async function init() {
            try {
                const info = await client.querySystemParameters();
                console.log('System Info:', info);
                
                const processes = await client.enumerateProcesses();
                console.log('Processes:', processes);
            } catch (error) {
                console.error('Error:', error);
            }
        }
        
        init();
    </script>
</body>
</html>

Node.js Usage

// ES Modules
import { Client } from 'frida-web';

// CommonJS
const { Client } = require('frida-web');

const client = new Client('localhost:27042');

API Reference

Client

Constructor

new Client(host: string, options?: ClientOptions)
  • host - Frida server host and port (e.g., 'localhost:27042')
  • options - Optional configuration object

Methods

querySystemParameters()
querySystemParameters(): Promise<any>

Returns system information from the Frida server.

enumerateProcesses(options?)
enumerateProcesses(options?: ProcessQueryOptions): Promise<Process[]>

Lists all processes visible to Frida.

attach(pid, options?)
attach(pid: number, options?: SessionOptions): Promise<Session>

Attaches to a process and returns a session for script injection.

Types

interface Process {
  pid: number;
  name: string;
  parameters: VariantDict;
}

interface ClientOptions {
  tls?: 'auto' | 'enabled' | 'disabled';
  token?: string;
}

interface ProcessQueryOptions {
  pids?: number[];
  scope?: 'minimal' | 'metadata' | 'full';
}

Building

# Install dependencies
npm install

# Build all formats
npm run build

# Build specific formats
npm run build:esm      # ES modules
npm run build:cjs      # CommonJS
npm run build:browser  # Browser bundle
npm run build:types    # TypeScript declarations

# Development
npm run dev            # Watch mode

Requirements

  • Modern browser with ES2020 support
  • Frida server with WebSocket D-Bus endpoint
  • Node.js 16+ (for development)

Acknowledgments

Special thanks to @clebert for the excellent d-bus-message-protocol library that makes this browser-compatible D-Bus communication possible.

License

MIT License - see LICENSE file for details.

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request