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

create-tanqory-app

v0.3.3

Published

Scaffold a Tanqory marketplace app: an embedded page, a verified webhook handler, and a manifest, ready to submit.

Readme

create-tanqory-app

npx create-tanqory-app order-notifier

Scaffolds a Tanqory marketplace app. You host it; Tanqory frames it, routes its API calls, and tells it which store it is looking at.

What you get

order-notifier/
├── tanqory.app.json                 handle, appUrl, devUrl, scopes, webhooks
├── next.config.mjs                  frame-ancestors, and no X-Frame-Options
└── src/app/
    ├── embed/page.tsx               the page the dashboard frames
    └── hooks/orders/route.ts        a webhook handler that verifies its signature

The last two lines are the reason this exists. They are what Tanqory's preflight checks hardest, and both fail silently when wrong: an unverified webhook accepts anything that guesses the URL, and X-Frame-Options produces a blank frame with no error anywhere. Getting them right by hand is four chances to be subtly wrong in a way nothing reports.

Run it

cd order-notifier
npm install
cp env.example .env.local   # fill in from dev.tanqory.com/apps
npm run dev

Get it in front of a merchant

  1. dev.tanqory.com/apps → Create App — gives you a client ID and secret. Copy the secret now; it is shown once.
  2. Submit Version — paste your appUrl and the scopes from tanqory.app.json. Every scope needs a reason: a reviewer approves permissions, not apps.
  3. Test Install on one of your development stores. This works before any review, and it is what makes the dashboard frame your devUrl rather than your appUrl — which is how you point at localhost without any localhost origin ever being trusted for a real merchant.

Three things that will cost you an afternoon

Never send X-Frame-Options. It has no allow-list form, so SAMEORIGIN overrides your Content-Security-Policy: frame-ancestors in browsers that still read it, and the dashboard shows a blank frame with no error. next.config.mjs here sets frame-ancestors and nothing else — keep it that way, and check whether your host adds the header for you.

Never redirect to a login page. You are inside an iframe. A login screen renders in a box, and if it escaped it would throw the merchant out of their dashboard. The SDK reports a dead session to the dashboard and lets it decide.

A 403 is not retryable. It means the merchant did not grant that scope. Retrying will never fix it; ask for the scope in your next manifest version.

Deploy it anywhere

Vercel, your own server, anything that serves HTTPS. Tanqory stores your URL, not your code — so a routine redeploy needs nothing from us. Only a change to the contract (a new scope, a new origin, a new webhook topic) needs a new version.

Full docs: https://docs.tanqory.com/apps/quickstart