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

@opensylo/embed-sdk

v0.1.0

Published

Embed the OpenSylo funding application journey into your dashboard.

Readme

@opensylo/embed-sdk

Embed the OpenSylo funding application journey into your dashboard. The SDK creates a sandboxed iframe pointing at the hosted journey, passes a short-lived embed token via the URL fragment, and bridges lifecycle events over postMessage with strict origin checks. No redirect, no OpenSylo login.

Install

npm i @opensylo/embed-sdk

Or load the CDN bundle (exposes window.OpenSyloEmbed):

<script src="https://sdk.opensylo.com/v1/opensylo-embed.global.js"></script>

Usage

  1. Backend — mint a short-lived embed token for the merchant: POST /api/v1/marketplace-api/merchants/{thirdPartyCustomerId}/embed-tokens (authenticated with your sk_live_/sk_test_ key). Pass the returned token to your frontend.

  2. Frontend — render the journey:

import { loadOpenSyloEmbed } from "@opensylo/embed-sdk";

const embed = await loadOpenSyloEmbed();

const journey = embed.ApplicationJourney({
  token,                       // from your backend
  container: "#funding",       // selector or HTMLElement
  environment: "test",         // "test" | "live"
  theme: { primary: "#ff5500", logo: "https://…/logo.svg" },
  onReady: () => console.log("journey ready"),
  onStepChange: ({ step }) => console.log("step:", step),
  onCompleted: ({ merchantId }) => console.log("submitted", merchantId),
  onError: ({ code, message }) => console.error(code, message),
});

// later: journey.destroy();

Events (postMessage bridge)

The SDK only accepts messages from the embed host origin; the journey iframe only posts to the parent origin the SDK passed it.

| Event | Payload | When | |-------|---------|------| | ready | – | journey mounted with a valid token | | step-change | { step } | the merchant advances a step | | completed | { merchantId? } | the application is submitted | | error | { code?, message } | a fatal error (e.g. missing/expired token) | | resize | (internal) | iframe height auto-adjusts to content |

Options

ApplicationJourney({ token, container, environment?, host?, theme?, on* }). host defaults to https://embed.opensylo.com; override it for local dev (http://localhost:3024).

Build (maintainers)

pnpm build (tsup) produces dist/index.js (ESM), dist/index.cjs (CJS), dist/index.global.js (IIFE/CDN), and dist/index.d.ts.