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

@upstep/js

v0.5.12

Published

Upstep feedback widget for web apps

Downloads

176

Readme

@upstep/js

A feedback widget for web apps: a floating button, a voting board, and a submit form, backed by your Upstep project. Drops into React, Next.js, Vue, Nuxt, SvelteKit, vanilla JS, or a plain HTML page with no build step, in two lines of code.

Install

npm install @upstep/js

Get an API key by creating a free project at upstep.dev — no credit card required.

Quick start

React

import { UpstepProvider, FeedbackWidget } from "@upstep/js/react";

export default function App({ children }) {
  return (
    <UpstepProvider apiKey="upstep_xxx">
      {children}
      <FeedbackWidget />
    </UpstepProvider>
  );
}

Vanilla JavaScript

import Upstep from "@upstep/js";

// Mounts the feedback button automatically
Upstep.init({ apiKey: "upstep_xxx" });

Vue / Nuxt / SvelteKit

import Upstep from "@upstep/js";

Upstep.init({ apiKey: "upstep_xxx" });

Mount that once from the client-side root for your framework:

  • Vue: onMounted() in App.vue
  • Nuxt: plugins/upstep.client.ts
  • SvelteKit: onMount() in src/routes/+layout.svelte

No build step (WordPress, Webflow, Shopify, static HTML)

<script
  type="module"
  src="https://unpkg.com/@upstep/js/dist/index.js"
  data-api-key="upstep_xxx"
></script>

All of these report to the same project, so feedback from your React app, your Nuxt marketing site, a script tag on a static page, and (if you add @upstep/react-native or upstep_flutter) your mobile app all land on one board, sorted by votes.

Configuration

Every entry point (Upstep.init, <UpstepProvider>, and the script tag's data-* attributes) takes the same options:

| Option | Type | Default | Description | | --- | --- | --- | --- | | apiKey | string | — | Required. Your project's API key. | | userId | string | — | End-user id from your app, used to deduplicate votes per user. Call identify(userId) if it's only known after login. | | baseUrl | string | https://upstep.dev | Only needed for self-hosted or staging setups. | | accentColor | string | #D97757 | Any CSS color, used for the launcher button and highlights. | | theme | "light" \| "dark" \| "auto" | "auto" | "auto" follows the host page's prefers-color-scheme. | | position | "left" \| "right" | "right" | Which corner the launcher button docks to. | | launcher | boolean | true | Set false to hide the floating button and trigger the widget yourself via Upstep.open(). |

API

Vanilla / script-tag (Upstep default export)

  • Upstep.init(config) — mounts the widget, returns the underlying API client.
  • Upstep.open() / Upstep.close() — open or close the widget from your own UI (e.g. a nav link).
  • Upstep.identify(userId) — set or update the end-user id after the widget has mounted.
  • Upstep.client — the raw UpstepApiClient instance, if you want to call the API directly.

React (@upstep/js/react)

  • <UpstepProvider apiKey="..." /> — wraps your app, all UpstepConfig options are valid props.
  • <FeedbackWidget position? accentColor? theme? hideLauncher? /> — the launcher button and panel. Renders nothing until it's shown; safe to mount once near the root.
  • useUpstep() — the same state and actions the widget uses (feedItems, submit, vote, open, close, identify, ...), if you want to build your own UI on top instead of the default widget.

Links