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

@ashkash/kaynix-widget

v3.0.0

Published

Kaynix AI - E-commerce Shopping Assistant Widget Loaders

Downloads

26

Readme

Kaynix Widget Loaders

Minimal public loaders for the Kaynix AI E-commerce Shopping Assistant Widget.

Overview

This package contains lightweight bookmarklet loaders that allow you to inject the Kaynix AI widget on any e-commerce website. The actual widget code is loaded from your configured server, keeping proprietary code private.

Installation

npm install @ashkash/kaynix-widget

Usage

Basic Bookmarklet (Production)

Create a bookmark with this URL to use the default production servers:

javascript:(function(){
  if(window.KaynixInjected)return;
  window.KaynixInjected=true;
  var s=document.createElement('script');
  s.src='https://cdn.jsdelivr.net/npm/@ashkash/kaynix-widget@latest/bookmarklet-loader-minimal.js';
  document.head.appendChild(s)
})()

Configurable Bookmarklet

To use custom servers (staging, development, etc.), set the configuration before loading:

javascript:(function(){
  window.KAYNIX_CONFIG={
    baseUrl:'https://staging.kaynix.ai',
    apiUrl:'https://staging-api.kaynix.ai',
    debug:true
  };
  if(window.KaynixInjected)return;
  window.KaynixInjected=true;
  var s=document.createElement('script');
  s.src='https://cdn.jsdelivr.net/npm/@ashkash/kaynix-widget@latest/bookmarklet-loader-minimal.js';
  document.head.appendChild(s)
})()

Configuration Options

The KAYNIX_CONFIG object supports:

  • baseUrl: URL where widget files are hosted (default: https://demo.kaynix.ai)
  • apiUrl: Backend API URL (default: https://api.kaynix.ai)
  • apiKey: API key for authentication (default: uses localStorage or 'dev-api-key')
  • debug: Enable debug mode (default: false)
  • environment: Environment name for logging (default: 'production')

For Developers

The minimal loader will:

  1. Check the configuration in window.KAYNIX_CONFIG
  2. Load the main widget loader from the configured baseUrl
  3. Pass configuration to the main loader via window.KAYNIX_LOADER_CONFIG
  4. The main loader then loads all widget dependencies from your server

This approach allows you to:

  • Keep your widget code private on your own servers
  • Support multiple deployment environments
  • Bypass CSP restrictions by using CDN for the minimal loader
  • Maintain full control over widget updates

Files Included

  • bookmarklet-loader-minimal.js: Minimal loader that reads config and loads from your server
  • bookmarklet-loader-configurable.js: Extended version with more configuration options
  • README.md: This documentation

License

MIT