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

tapd-react-sdk

v1.0.16

Published

A lightweight React SDK to help restaurants collect user info at the right moment.

Readme

tapd-react-sdk

A lightweight React SDK to help restaurants collect user info at the right moment.


🔧 Installation

You can install the SDK directly from GitHub:

npm install Just-Cr8if/tapd-react-sdk --legacy-peer-deps

The --legacy-peer-deps flag may be necessary if you're using React 19 with packages that don't yet support it.

Customer Prompt (Used you customer arrival to menu)

import { CustomerPrompt } from 'tapd-react-sdk';

<CustomerPrompt
  onSubmit={(data) => {
    // Send to backend
    fetch('/api/customer-entry/submit', {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({ venue_id: VENUE_ID, ...data }),
    });
  }}
  onSkip={() => {
    // Notify backend they skipped
    fetch('/api/customer-entry/submit', {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({ venue_id: VENUE_ID, skipped: true }),
    });
  }}
  theme="dark"
/>

Props

  • venueId (string) Required — The venue UUID to associate the customer with.

  • apiKey (string) Required — Your Tapd API key.

  • onSubmit ((data: CustomerData) => void) Optional — Called after the user submits their information. You’ll receive their name, email, and phone number.

  • onSkip (() => void) Optional — Called when the user clicks "No thanks".

  • theme ('light' or 'dark') Optional — Adjusts the background and text styling. Default is 'light'.

  • buttonColor ('green', 'blue', 'red', 'gold', 'brown', 'mobylmenu', 'white', or 'black')

ToastPrompt

An animated toast to upsell items with a call-to-action.

import { ToastPrompt } from 'tapd-react-sdk';

<ToastPrompt
  message="Want fries with that?"
  ctaText="Add Fries"
  price="$3.49"
  onPress={() => console.log('Pressed')}
  theme="light"
  position="left"
  verticalPosition="top"
  sideColor="green"
/>

Props

ToastPrompt Props

  • message (string) Required — The message displayed in the toast.

  • ctaText (string) Required — The text shown on the call-to-action button.

  • price (string) Required — The price displayed next to the CTA text.

  • onPress (() => void) Required — Function called when the toast is clicked.

  • theme ('light' or 'dark') Optional — Adjusts the background and text color. Default is 'light'.

  • position ('left' or 'right') Optional — Determines which side the toast slides in from. Default is 'right'.

  • verticalPosition ('top' or 'bottom') Optional — Controls whether the toast appears at the top or bottom of the screen. Default is 'bottom'.

  • sideColor ('green', 'blue', 'red', 'gold', or 'brown') Optional — Sets the color of the vertical accent strip. Default is 'blue'.

One-Time Prompt Logic (Recommended)

To only show the prompt once per venue, use the helper in customerProfileConfig.js:

import {
  hasSeenPrompt,
  markPromptSeen,
  resetPromptAfter,
} from 'tapd-react-sdk';

if (!hasSeenPrompt(venueId)) {
  // show <CustomerPrompt />
}

Theme Options

The theme prop can be:

'light' (default) 'dark'