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

@yodelpassdev/wallet-embed

v0.0.2

Published

A embeddable wallet component for Yodel

Readme

yodel-embeded-wallet

An embeddable Yodel wallet component. Renders the Yodel wallet inside an iframe and notifies your app when it has finished loading.


Installation

npm install yodel-embeded-wallet

Props

| Prop | Type | Required | Description | |------|------|----------|-------------| | url | string | Yes | The iframe URL to embed (e.g. your Yodel wallet URL) | | onComponentLoaded | (loaded: boolean) => void | Yes | Called with true once the wallet iframe has loaded, false before it loads |


Usage

React

Install peer dependencies if you haven't already:

npm install react react-dom
npm install yodel-embeded-wallet
import React, { useState } from "react";
import { YodelEmbedWallet } from "yodel-embeded-wallet";

function App() {
  const [walletLoaded, setWalletLoaded] = useState(false);

  return (
    <div style={{ width: "400px", height: "600px" }}>
      {!walletLoaded && <p>Loading wallet...</p>}
      <YodelEmbedWallet
        url="https://your-wallet-url.com"
        onComponentLoaded={setWalletLoaded}
      />
    </div>
  );
}

export default App;

Plain HTML (via CDN / UMD)

No bundler required. Load React and the package via <script> tags.

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>Yodel Wallet</title>
</head>
<body>
  <div id="wallet-root" style="width: 400px; height: 600px;"></div>
  <p id="status">Loading wallet...</p>

  <!-- React (UMD) -->
  <script src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
  <script src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>

  <!-- Yodel Wallet (UMD) -->
  <script src="https://unpkg.com/yodel-embeded-wallet/dist/index.umd.js"></script>

  <script>
    const { YodelEmbedWallet } = YodelEmbededWallet;
    const statusEl = document.getElementById("status");

    function handleLoaded(loaded) {
      statusEl.textContent = loaded ? "Wallet ready." : "Loading wallet...";
    }

    const walletElement = React.createElement(YodelEmbedWallet, {
      url: "https://your-wallet-url.com",
      onComponentLoaded: handleLoaded,
    });

    const root = ReactDOM.createRoot(document.getElementById("wallet-root"));
    root.render(walletElement);
  </script>
</body>
</html>

Angular

Angular can render React components using the react2angular bridge, or you can host the component in a standalone React root inside an Angular component.

Step 1 — Install dependencies

npm install react react-dom yodel-embeded-wallet
npm install --save-dev @types/react @types/react-dom

Step 2 — Create a wrapper Angular component

// yodel-wallet.component.ts
import {
  Component,
  ElementRef,
  OnDestroy,
  OnInit,
  ViewChild,
} from "@angular/core";
import React from "react";
import ReactDOM from "react-dom/client";
import { YodelEmbedWallet } from "yodel-embeded-wallet";

@Component({
  selector: "app-yodel-wallet",
  template: `<div #walletContainer style="width: 400px; height: 600px;"></div>`,
})
export class YodelWalletComponent implements OnInit, OnDestroy {
  @ViewChild("walletContainer", { static: true }) containerRef!: ElementRef;

  private root: ReturnType<typeof ReactDOM.createRoot> | null = null;

  ngOnInit() {
    this.root = ReactDOM.createRoot(this.containerRef.nativeElement);
    this.root.render(
      React.createElement(YodelEmbedWallet, {
        url: "https://your-wallet-url.com",
        onComponentLoaded: (loaded: boolean) => {
          console.log("Wallet loaded:", loaded);
        },
      })
    );
  }

  ngOnDestroy() {
    this.root?.unmount();
  }
}

Step 3 — Declare it in your module

// app.module.ts
import { NgModule } from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { AppComponent } from "./app.component";
import { YodelWalletComponent } from "./yodel-wallet.component";

@NgModule({
  declarations: [AppComponent, YodelWalletComponent],
  imports: [BrowserModule],
  bootstrap: [AppComponent],
})
export class AppModule {}

Step 4 — Use it in a template

<!-- app.component.html -->
<app-yodel-wallet></app-yodel-wallet>

Note: Ensure allowSyntheticDefaultImports and esModuleInterop are set to true in your tsconfig.json so React imports resolve correctly in Angular.


TypeScript Support

Type definitions are included. The onComponentLoaded prop is typed as (loaded: boolean) => void.


License

MIT