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

@warpway/sdk

v0.1.58

Published

AI-powered actions and widgets for your website. Enable users to accomplish tasks through natural language.

Readme

Warpway SDK

AI-powered actions and widgets for your website. Enable users to accomplish tasks through natural language.

The Warpway SDK enables you to add intelligent, AI-powered widgets to your website that help users accomplish tasks through natural language. It also provides developer tools for recording and testing user workflows.

Installation

Option 1: NPM (Recommended for bundled apps)

Install via npm:

npm install @warpway/sdk

Then import in your application:

// ES Module
import WarpwaySDK from '@warpway/sdk';

// CommonJS
const WarpwaySDK = require('@warpway/sdk');

Option 2: Script Tag (Recommended for static sites)

Add this script tag to your HTML:

<script
  async
  src="https://unpkg.com/@warpway/sdk@latest/dist/sdk.js"
  data-warp-site="YOUR_SITE_ID"
  data-warp-widget="on">
</script>

Or pin to a specific version:

<script
  async
  src="https://unpkg.com/@warpway/[email protected]/dist/sdk.js"
  data-warp-site="YOUR_SITE_ID"
  data-warp-widget="on">
</script>

Get your site ID from the Warpway dashboard.

Usage

Basic Setup

The SDK automatically initializes when loaded via script tag. For npm installations in modern frameworks:

import WarpwaySDK from '@warpway/sdk';

// SDK auto-initializes on import
// Access the instance via window.__warpway__ if needed

Configuration Options

Configure the SDK using data attributes (script tag) or programmatically:

Script Tag Configuration:

<script
  async
  src="https://unpkg.com/@warpway/sdk@latest/dist/sdk.js"
  data-warp-site="YOUR_SITE_ID"
  data-warp-dev="query:param:warpway=dev"
  data-warp-widget="on">
</script>

Data Attributes:

  • data-warp-site - Your site ID from the Warpway dashboard
  • data-warp-dev - Query param to enable dev mode (default: query:param:warpway=dev)
  • data-warp-widget - Enable end-user widget: on or off (default: off)

Developer Mode

Add ?warpway=dev to your URL to activate the developer sidebar for recording user actions.

Press Alt+W (or ⌥+W on Mac) to toggle the sidebar open/close.

Programmatic API

Access the SDK instance for programmatic control:

// Access the global instance
const warpway = window.__warpway__;

// Open the widget
warpway.openWidget();

// Close the widget
warpway.closeWidget();

// Toggle the widget
warpway.toggleWidget();

// Get current configuration
const config = warpway.getConfig();

Features

  • AI-powered widget for end users to accomplish tasks
  • Developer mode for recording and testing workflows
  • Customizable appearance and behavior
  • Hotkey support for quick access
  • TypeScript support with full type definitions

Examples

React/Next.js

import { useEffect } from 'react';

function App() {
  useEffect(() => {
    // SDK is loaded via script tag in _document.js or layout
    // Access it when needed
    if (window.__warpway__) {
      console.log('Warpway SDK loaded');
    }
  }, []);

  return (
    <div>
      <button onClick={() => window.__warpway__?.openWidget()}>
        Get Help
      </button>
    </div>
  );
}

Vue

<template>
  <button @click="openHelp">Get Help</button>
</template>

<script>
export default {
  methods: {
    openHelp() {
      window.__warpway__?.openWidget();
    }
  }
}
</script>

Support

License

MIT © Warpway