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

@paranexum/main

v1.1.4

Published

Paranexum SDK for AI-powered business matching and recommendations

Readme

Paranexum SDK

AI-powered business matching and recommendation SDK for JavaScript and React.

Installation

npm install paranexum-sdk

Quick Start

Vanilla JavaScript

import ParanexumSDK from 'paranexum';

const sdk = new ParanexumSDK('YOUR_API_KEY');

// Get recommendations (impressions are auto-tracked)
const recommendations = await sdk.getRecommendations({
  name: 'Product Name',
  description: 'Product description'
});

// Handle clicks (auto-tracked by React components)
// For vanilla JS, you can manually track clicks:
await sdk.trackClick(referenceProduct, recommendations.recommendation);

React with Banner Ad

import React, { useState } from 'react';
import { BannerAd } from 'paranexum/react';

function App() {
  const referenceProduct = { name: 'Laptop', description: 'Gaming laptop' };

  return (
    <BannerAd 
      apiKey="YOUR_API_KEY"
      referenceProduct={referenceProduct}
      width="100%"
      height="300px"
      onRecommendationClick={(rec) => console.log('Clicked:', rec)}
      // Impressions and clicks are auto-tracked!
    />
  );
}

export default App;

React with Checkout Ad

import React, { useState } from 'react';
import { CheckoutAd } from 'paranexum/react';

function Checkout() {
  const [showAd, setShowAd] = useState(true);
  const referenceProduct = { name: 'Laptop', description: 'Gaming laptop' };

  return (
    <>
      <h1>Checkout</h1>
      <CheckoutAd
        apiKey="YOUR_API_KEY"
        referenceProduct={referenceProduct}
        isOpen={showAd}
        onClose={() => setShowAd(false)}
        onBuyClick={(rec) => console.log('Add to cart:', rec)}
        // Impressions and clicks are auto-tracked!
      />
    </>
  );
}

export default Checkout;

Next.js with Hooks

'use client'; // Next.js 13+ App Router

import { useRecommendations, useAnalytics } from 'paranexum/nextjs';

export default function ProductPage() {
  const referenceProduct = { name: 'Laptop', description: 'Gaming laptop' };
  
  const { recommendation, isLoading, error } = useRecommendations(
    'YOUR_API_KEY',
    referenceProduct
  );
  
  const { trackClick } = useAnalytics('YOUR_API_KEY');

  const handleClick = async () => {
    if (recommendation) {
      await trackClick(referenceProduct, recommendation);
    }
  };

  if (isLoading) return <div>Loading recommendations...</div>;
  if (error) return <div>Error: {error}</div>;
  if (!recommendation) return <div>No recommendations available</div>;

  return (
    <div onClick={handleClick} style={{ cursor: 'pointer', padding: '20px', border: '1px solid #ddd' }}>
      <h2>{recommendation.name}</h2>
      <p>{recommendation.description}</p>
      <p>Match Score: {(recommendation.matchScore * 100).toFixed(0)}%</p>
    </div>
  );
}

API Reference

ParanexumSDK

constructor(apiKey, options)

  • apiKey (string): Your Paranexum API key (format: pk_BUSINESSID_RANDOM)
  • options.baseUrl (string): Custom API endpoint (default: 'https://cdd1c127-1cfb-4fc0-901b-2ca43e10daf6-00-1ixvmejt0mwfv.janeway.replit.dev')

Note: Business ID is automatically extracted from your API key, so you don't need to provide it separately.

getRecommendations(product)

Get AI-powered product recommendations.

  • product (object): Product with name and description
  • Returns: Promise with recommendation and allRecommendations

trackImpression(referenceProduct, recommendedProduct)

Track when a recommendation is shown.

trackClick(referenceProduct, recommendedProduct)

Track when a recommendation is clicked.

getUserAnalytics()

Get your analytics data.

Next.js Hooks

useRecommendations

Fetch AI-powered recommendations with auto-impression tracking.

const { recommendation, allRecommendations, isLoading, error } = useRecommendations(
  apiKey,
  referenceProduct,
  { baseUrl: 'https://cdd1c127-1cfb-4fc0-901b-2ca43e10daf6-00-1ixvmejt0mwfv.janeway.replit.dev' } // optional
);

useAnalytics

Track clicks and impressions.

const { trackClick, trackImpression } = useAnalytics(
  apiKey,
  { baseUrl: 'https://cdd1c127-1cfb-4fc0-901b-2ca43e10daf6-00-1ixvmejt0mwfv.janeway.replit.dev' } // optional
);

React Components

BannerAd

Display recommendations as a promotional banner.

Props:

  • apiKey (string): Your Paranexum API key
  • referenceProduct (object): Product with name/description
  • width (string): CSS width (default: '100%')
  • height (string): CSS height (default: '300px')
  • onRecommendationClick (function): Click handler
  • loading (boolean): Show loading state

CheckoutAd

Display recommendations in a modal/popup style.

Props:

  • apiKey (string): Your Paranexum API key
  • referenceProduct (object): Product with name/description
  • isOpen (boolean): Show/hide modal
  • onClose (function): Close handler
  • onBuyClick (function): Buy click handler

How Analytics Works

Automatic Tracking:

  • Impressions are automatically tracked when getRecommendations() is called
  • Clicks are automatically tracked when users click on recommendations in React components

Manual Tracking (if needed):

// Only needed for vanilla JS or custom implementations
await sdk.trackClick(referenceProduct, recommendedProduct);

View Your Analytics:

// Get aggregated analytics data
const analytics = await sdk.getUserAnalytics();
console.log(analytics);

License

MIT