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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@rippy/connector-extension

v0.0.0

Published

[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE) [![Coverage](https://img.shields.io/sonar/coverage/radixdlt_babylon-browser-extension?server=https%3A%2F%2Fsonarcloud.io)](https://sonarcloud.io/project/overview?id=radixdlt_b

Downloads

4

Readme

License Coverage

Connector Extension

Chrome Web Store Links

Prerequisites

  • Node.js >=18
  • npm

Installation

# Install dependencies
npm install

Development

# Start development server with hot module reload
npm start
  1. Starting the dev server will output a dist folder.
  2. Go to chrome://extensions
  3. Enable developer mode in top right corner
  4. Import the unpacked extension
    1. drag and drop the dist folder
    2. or click load unpacked and import using the file system

Building

# Build with development tools 
npm run build:dev

# Build production version (without dev tools)
npm run build

Internal modules

The connector extension is composed of the following:

Debug

To access the background worker and offscreen page go to chrome://extensions and click on Details

Find Inspect views section

Exporting logs

  1. Right click on the Connector Extension icon in chrome extension toolbar
  2. Export Logs

dApp Toolkit <> Connector Extension API

sequenceDiagram
participant DApp
participant RDT
participant Connector Extension
participant Wallet

    %% Initial Extension Status Check
    RDT->>Connector Extension: Dispatch CustomEvent (extensionStatus)
    Connector Extension-->>RDT: Extension Status Response (isExtensionAvailable, isWalletLinked, canHandleSessions)

    %% Main Interaction Flow
    DApp->>RDT: sendWalletInteraction(interaction)

    alt Extension Available
        RDT->>Connector Extension: Dispatch CustomEvent (outgoingMessage)
        Connector Extension->>Wallet: Forward Request

        par Event Updates
            Wallet-->>Connector Extension: Status Updates
            Connector Extension-->>RDT: Life Cycle Events
            RDT-->>DApp: Event Callbacks
        end

        alt Successful Response
            Wallet-->>Connector Extension: Wallet Response
            Connector Extension-->>RDT: IncomingMessage Event
            RDT-->>DApp: WalletInteractionResponse
        else User Cancels
            DApp->>RDT: cancelRequest()
            RDT->>Connector Extension: Cancel Event
            Connector Extension-->>RDT: requestCancelSuccess/Fail
            RDT-->>DApp: Canceled Response
        else Connector Extension Missing
            RDT-->>DApp: missingExtension Error
        end
    end

Communication Channel

Uses browser events for bidirectional communication

dApp → Extension (outgoingMessage)

  • event name: radix#chromeExtension#send

Send example

window.dispatchEvent(
  new CustomEvent('radix#chromeExtension#send', {
    detail: { DAPP_TOOLKIT_MESSAGE },
  }),
)

Listen example

window.addEventListener('radix#chromeExtension#send', (event) => {
  const message = event.detail
})

Extension → dApp (incomingMessage)

  • event name: radix#chromeExtension#receive

Send example

window.dispatchEvent(
  new CustomEvent('radix#chromeExtension#receive', {
    detail: {...}
  })
)

Listen example

window.addEventListener('radix#chromeExtension#receive', (event) => {
  const message = event.detail
})

dApp → Extension messages

  • Status – Check if extension is available
  • OpenPopup – Open extension popup, used for displaying QR-code containing linking data
  • WalletInteraction – Contains a wallet interaction message
  • CancelWalletInteraction – Cancels wallet interaction that is in-flight

Status

   sequenceDiagram
       participant DApp
       participant RDT
       participant Connector Extension

       DApp->>RDT: Initialize
       activate RDT
       RDT->>Connector Extension: extensionStatus request

       alt Extension Responds
           Connector Extension-->>RDT: extensionStatus response
       else No Response (timeout)
           Note over RDT: Wait 200ms
           RDT-->>RDT: timeout

       end
       deactivate RDT

Request

  • interactionId: UUID v4
  • discriminator: extensionStatus

Response

Note: a response must be received within 200ms, otherwise it’s considered unavailable

  • eventType: extensionStatus

  • isWalletLinked: A boolean flag that indicates whether the Connector Extension has an link to a Radix Wallet.

  • isExtensionAvailable: A boolean flag that indicates that if the connector extension is available

  • canHandleSessions: Optional boolean flag indicating session support

Example

{
  eventType: 'extensionStatus',
  interactionId: '3869e88d-3a4d-42a6-8a71-df9647d22380',
  isWalletLinked: true,
  isExtensionAvailable: true,
  canHandleSessions: true
}

OpenPopup

Request

  • interactionId: UUID v4
  • discriminator: openPopup

Response

no response is sent back

WalletInteraction

Request

  • interactionId: UUID v4
  • discriminator: walletInteraction
  • interaction: WalletInteraction
  • Optional sessionId: UUID v4

Response

WalletInteractionResponse

CancelWalletInteraction

Request

  • interactionId: UUID v4
  • discriminator: cancelWalletInteraction

Response

One of:

  1. RequestCancelSuccess
    • interactionId: UUID v4
    • eventType: requestCancelSuccess
  2. RequestCancelFail
    • interactionId: UUID v4
    • eventType: requestCancelFail

Extension → dApp messages

Request life-cycle events

Messages sent by extension to report back status on in-flight wallet interactions.

receivedByExtension

  • interactionId: UUID v4
  • eventType: receivedByExtension

receivedByWallet

  • interactionId: UUID v4
  • eventType: receivedByWallet

More resources

License

The Radix Connector Extension binaries are licensed under the Radix Software EULA.

The Radix Connector Extension code is released under the Apache 2.0 license.

  Copyright 2023 Radix Publishing Ltd

  Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.

  You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

  See the License for the specific language governing permissions and limitations under the License.