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

@akinon/pz-tabby-extension

v1.125.1

Published

## Installation

Readme

Tabby Payment Gateway Extension

Installation

You can use the following command to install the extension with the latest plugins:

npx @akinon/projectzero@latest --plugins

Usage

Once the extension is installed, you can easily integrate the Tabby payment gateway into your application. Here's an example of how to use it.

  1. Navigate to the src/app/[commerce]/[locale]/[currency]/payment-gateway/tabby/ directory.

  2. Create a file named page.tsx and include the following code:

import { TabbyPaymentGateway } from '@akinon/pz-tabby-extension';

const TabbyGateway = async ({
  searchParams: { sessionId },
  params: { currency, locale }
}: {
  searchParams: Record<string, string>;
  params: { currency: string; locale: string };
}) => {
  return (
    <TabbyPaymentGateway
      sessionId={sessionId}
      currency={currency}
      locale={locale}
      extensionUrl={process.env.TABBY_EXTENSION_URL}
      hashKey={process.env.TABBY_HASH_KEY}
    />
  );
};

export default TabbyGateway;

API Routes

Check Availability API

To enable Tabby payment availability checks, you need to create an API route. Create a file at src/app/api/tabby-check-availability/route.ts with the following content:

import { POST } from '@akinon/pz-tabby-extension/src/pages/api/check-availability';

export { POST };

This API endpoint handles checking the availability of Tabby payment for a given:

  • Order amount
  • Email
  • Phone number
  • Currency

The endpoint automatically validates the request and response using hash-based security measures.

Using checkTabbyAvailability Mutation

The extension provides a Redux mutation hook that you can use to check Tabby payment availability. Here's an example of how to implement it:

import { useCheckTabbyAvailabilityMutation } from '@akinon/pz-tabby-extension/src/redux/api';

const YourComponent = () => {
  const [checkTabbyAvailability] = useCheckTabbyAvailabilityMutation();
  const [isTabbyAvailable, setIsTabbyAvailable] = useState(false);

  useEffect(() => {
    const checkAvailability = async () => {
      try {
        const response = await checkTabbyAvailability({
          amount: 1000, // Order total amount
          phone: '+971123456789', // Customer's phone number
          email: '[email protected]', // Customer's email ,
          name: 'Akinon Akinon', // Customer's Full Name
        }).unwrap();

        setIsTabbyAvailable(response.is_available);
      } catch (error) {
        console.error('Error checking Tabby availability:', error);
        setIsTabbyAvailable(false);
      }
    };

    checkAvailability();
  }, [checkTabbyAvailability]);

  // Use isTabbyAvailable to conditionally render Tabby payment option
  return (
    // Your component JSX
  );
};

The mutation returns an object with the following properties:

  • is_available: boolean indicating if Tabby payment is available
  • salt: string used for hash verification
  • hash: string for response validation

Configuration

Add these variables to your .env file

TABBY_EXTENSION_URL=<your_extension_url>
TABBY_HASH_KEY=<your_hash_key>