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

burp-rpc

v1.0.6

Published

Control Burp Suite programmatically from Node.js over gRPC — proxy history, repeater, site map, and more.

Downloads

166

Readme

burp-rpc

Control Burp Suite programmatically from Node.js over gRPC.

Read proxy history, send requests through Burp, push requests to Repeater, and query the site map — all from your scripts.

Install

# npm
npm install burp-rpc

# pnpm
pnpm add burp-rpc

Prerequisites

You need the burp-rpc Burp extension loaded in Burp Suite. See the extension setup guide for build & install instructions.

Quick Start

const { BurpClient, decodeBase64Body } = require("burp-rpc");

const burp = new BurpClient({ host: "localhost", port: 50051 });

// Get the last 5 proxy history entries
const recent = await burp.proxy.getLastN(5);
for (const entry of recent) {
  console.log(decodeBase64Body(entry.request.rawBytesBase64));
}

// Send a request to Repeater
await burp.repeater.sendFromHistory(recent[0], "My Tab");

// Fire a request through Burp
const res = await burp.http.sendRawRequest(
  "example.com", 443, true,
  "GET / HTTP/1.1\r\nHost: example.com\r\n\r\n"
);
console.log("Status:", res.hasResponse);

// Query the site map
const sites = await burp.siteMap.getEntries();

burp.close();

API

new BurpClient(options?)

| Option | Type | Default | Description | |--------|----------|---------------|------------------------------------| | host | string | "localhost" | Host running the Burp extension | | port | number | 50051 | gRPC port |

burp.proxy

| Method | Returns | Description | |-----------------|--------------------------|--------------------------------------| | getHistory() | ProxyHistoryEntry[] | All proxy history entries | | getLastN(n) | ProxyHistoryEntry[] | Last n entries from proxy history |

burp.http

| Method | Returns | Description | |-----------------------------------------------------|----------------------------|--------------------------------------------| | sendRequest(host, port, secure, base64Body) | SendHttpRequestResponse | Send a base64-encoded request through Burp | | sendRawRequest(host, port, secure, rawString) | SendHttpRequestResponse | Same, but auto base64-encodes the input |

burp.repeater

| Method | Returns | Description | |-------------------------------------|---------|------------------------------------------------| | sendToRepeater(request, tabName?) | void | Open an HttpRequestMessage in Repeater | | sendFromHistory(entry, tabName?) | void | Send a ProxyHistoryEntry to Repeater |

burp.siteMap

| Method | Returns | Description | |----------------|------------------|-------------------------| | getEntries() | SiteMapEntry[] | All site map entries |

Helpers

| Function | Description | |-----------------------------|------------------------------------------| | decodeBase64Body(base64) | Decode a base64 HTTP body to UTF-8 | | encodeBase64Body(raw) | Encode a raw string to base64 |

burp.close()

Close the gRPC channel. Call this when done so the Node.js process can exit.

TypeScript

Full type declarations are included. All interfaces are exported:

import {
  BurpClient,
  BurpProxy,
  BurpHttp,
  BurpRepeater,
  BurpSiteMap,
  ProxyHistoryEntry,
  HttpRequestMessage,
  SendHttpRequestResponse,
} from "burp-rpc";

Environment Variables

| Variable | Default | Description | |------------------|---------------|-------------------------------------| | BURP_RPC_HOST | localhost | Override the default host | | BURP_RPC_PORT | 50051 | Override the default port |

These are used by the included test.js example, not by the SDK itself.

License

MIT