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

@corpus-core/colibri-tor

v1.1.29

Published

Tor network transport for Colibri Stateless. Routes RPC requests through Tor for enhanced privacy -- via Arti WASM in browsers, via SOCKS5 proxy in Node.js.

Readme

@corpus-core/colibri-tor

Tor network transport for Colibri Stateless. Routes all RPC requests through Tor for enhanced network-level privacy.

  • Browser: Uses Arti compiled to WebAssembly via tor-js -- no browser extension or external software needed.
  • Node.js: Connects to a locally running Tor SOCKS5 proxy -- zero dependencies, pure node:net/node:tls implementation.

Installation

npm install @corpus-core/colibri-tor @corpus-core/colibri-stateless

Usage

Browser (Arti WASM)

import Colibri from '@corpus-core/colibri-stateless';
import { createBrowserFetch } from '@corpus-core/colibri-tor/browser';

// Bootstrap starts immediately in the background (no await needed).
// The first actual request will wait for bootstrap to complete.
const client = new Colibri({
  fetch: createBrowserFetch(),
  prover: ['https://mainnet.colibri-proof.tech']
});

// This request will await Tor bootstrap if still in progress
const balance = await client.request({
  method: 'eth_getBalance',
  params: ['0x...', 'latest']
});

Node.js (SOCKS5 Proxy)

Start a Tor daemon first (e.g. tor --SocksPort 9050 or via your system's package manager), then:

import Colibri from '@corpus-core/colibri-stateless';
import { createSocksFetch } from '@corpus-core/colibri-tor/node';

const torFetch = await createSocksFetch({ socksPort: 9050 });

const client = new Colibri({
  fetch: torFetch,
  prover: ['https://mainnet.colibri-proof.tech']
});

API

createBrowserFetch(options?): typeof fetch

Creates a fetch-compatible function that routes requests through Tor via Arti WASM. Browser only. Returns synchronously -- Tor bootstrap starts immediately in the background and the first actual request awaits completion if needed.

| Option | Type | Default | Description | |--------|------|---------|-------------| | gateway | string | 'https://tor-js-gateway.voltrevo.com' | WebSocket/WebRTC gateway URL for Tor relay connections | | onBootstrap | (ms: number) => void | undefined | Callback when Tor bootstrap completes | | logLevel | LogLevel | 'warn' | Arti log level ('trace' | 'debug' | 'info' | 'warn' | 'error') |

Note on the gateway: In the browser, Tor relay connections are proxied through a WebSocket/WebRTC gateway (browsers cannot open raw TCP sockets). The default https://tor-js-gateway.voltrevo.com is a community-operated gateway provided by the tor-js author. For production deployments you are strongly encouraged to run your own gateway (see privacy-ethereum/tor-js-gateway) and pass its URL via the gateway option.

createSocksFetch(options?): Promise<typeof fetch>

Creates a fetch-compatible function that routes requests through a local Tor SOCKS5 proxy. Node.js only.

| Option | Type | Default | Description | |--------|------|---------|-------------| | socksHost | string | '127.0.0.1' | SOCKS5 proxy hostname | | socksPort | number | 9050 | SOCKS5 proxy port |

tor-js dependency

The browser transport relies on the tor-js npm package, which ships Arti compiled to WebAssembly. It is a regular dependency of @corpus-core/colibri-tor and is installed automatically via npm install -- no build-from-source step is required.

This package imports the tor-js/wasm-base64 entry point, which embeds the WASM binary directly in the JavaScript bundle, so no WASM is fetched from a CDN at runtime.

License

MIT