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

@tacksdk/react

v0.5.0

Published

Tack feedback SDK — React component

Readme

@tacksdk/react

React wrappers for Tack — embeddable in-app feedback. Wraps the vanilla @tacksdk/js core.

Install

npm install @tacksdk/react

Quick start

A floating launcher button — drop one anywhere in your tree:

import { TackLauncher } from '@tacksdk/react'

export function App() {
  return (
    <>
      <YourApp />
      <TackLauncher projectId="proj_your_project_id" />
    </>
  )
}

Components

<TackLauncher>

Floating launcher button. Mounts into document.body (fixed-positioned) or inline into the document flow with inline.

| Prop | Type | Default | Description | |---|---|---|---| | projectId | string | — | Required. Public project id (proj_...). | | position | 'bottom-right' \| 'bottom-left' \| 'top-right' \| 'top-left' | 'bottom-right' | Viewport corner. | | variant | 'circle' \| 'pill' | 'circle' | Icon-only or icon + label. | | label | string | 'Send feedback' | Pill label and aria-label. | | offset | number | 24 | Px from viewport edges. | | hideOnMobile | boolean | false | Hide below 640px. | | inline | boolean | false | Render in document flow instead of floating. | | theme | 'auto' \| 'light' \| 'dark' | 'dark' | Color scheme. | | hotkey | string | | Toggle shortcut (e.g. 'mod+alt+f'). | | appVersion | string | | Host app version. Use bundler-injected (process.env.NEXT_PUBLIC_APP_VERSION, import.meta.env.VITE_APP_VERSION, or a custom __APP_VERSION__). | | rating | false \| 'thumbs' \| 'stars' \| 'emoji' | false | Rating UI variant. Sends rating + metadata.ratingScale on submit. | | captureConsole | boolean \| CaptureConsoleConfig | false | Capture host console output. Privacy footgun — see @tacksdk/js README before enabling. | | onSubmit | (request: TackSubmitRequest) => void | | Called after successful submit; receives the request payload (rating, screenshot, console, etc.) so you can fire your own analytics without re-tracking state. | | onError | (err: TackError) => void | | Called on submit failure. |

Plus all <TackWidget> props (title, submitLabel, cancelLabel, placeholder, user, metadata, injectStyles, ...).

<TackWidget>

Renders a trigger button (in your light DOM) that opens a feedback dialog. Use this when you want the button styled by your design system; use <TackLauncher> for a turn-key floating launcher.

| Prop | Type | Default | Description | |---|---|---|---| | projectId | string | — | Required. Public project id. | | label | string | 'Feedback' | Trigger button text. | | className | string | | Trigger button class. | | theme, title, submitLabel, cancelLabel, placeholder, user, metadata, hotkey, injectStyles, onSubmit, onError | | | Same as the vanilla widget config. |

user, metadata, and callbacks update via handle.update() — no re-mount on identity change. Re-mount only happens for immutable-after-init props.

useTack(config)

Render-nothing hook that returns the live TackHandle (or null until first effect). Use when you have your own trigger UI:

import { useTack } from '@tacksdk/react'

function MyButton() {
  const tack = useTack({ projectId: 'proj_...' })
  return <button onClick={() => tack?.open()}>Send feedback</button>
}

Errors

onError receives a typed TackError:

import { TackError } from '@tacksdk/react'

See @tacksdk/js for the full error-type list and tacksdk.com/docs/errors for per-type guidance.

Stability

Pre-1.0 — pin your version. See STABILITY.md before upgrading.

License

MIT