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

@dimension-studios/shop-browser

v1.129.2

Published

Open TikTok shop pages in Chromium using TTK proxy cookies

Readme

@dimension-studios/shop-browser

Interactive CLI to pick a TikTok shop (authorized for your API token), load cookies from the Dimension TTK Fetch API, open Chromium with Playwright, and navigate to common TikTok Seller / Affiliate URLs.

Uses the same credentials as @dimension-studios/ttk-proxy. Publishable tarball includes only compiled dist/ and bin/ — no database or internal monorepo code.

Requirements

  • Node.js ≥ 24 (matching the monorepo; see repo engines).
  • Credentials for /ttk-proxy/* endpoints (API URL + key + secret).
  • Backend support for GET /ttk-proxy/shops/search?q= (installed with the Node API that exposes TTK proxy).

Installation (CLI users)

npm install -g @dimension-studios/shop-browser

Install Playwright browsers once:

npx playwright install chromium

If Chromium cannot launch, set EXECUTABLE_PATH to your Chrome/Chromium executable (documented below).

First-time setup

Either set environment variables (e.g. in your shell profile) or persist them via the bundled config (same UX as @dimension-studios/ttk-proxy):

Environment variables (recommended)

export TTK_FETCH_API_URL="https://your-node-api.example.com"
export TTK_FETCH_API_KEY="your-api-key"
export TTK_FETCH_API_SECRET="your-api-secret"

Then verify:

shop-browser config

Save credentials with config:set

shop-browser config:set apiUrl "https://your-node-api.example.com"
shop-browser config:set apiKey "your-api-key"
shop-browser config:set apiSecret "your-api-secret"

shop-browser config --show

Usage

Run with no arguments to start the flow:

shop-browser
  1. Search for a shop by name or slug (at least 2 characters). Results come from your token’s authorized shops only.
  2. Choose a destination page (Seller Center, Affiliate Center, Support messages).
  3. Close the browser window when done; the process exits.

Optional environment

| Variable | Purpose | |----------|--------| | HEADLESS | If true or 1, runs Playwright headless (default: visible window). | | EXECUTABLE_PATH | Path to Chrome/Chromium if the bundled Playwright browser is not used. |

Copy .env.example to .env only for local development; do not commit real secrets.

Help and version

shop-browser --help
shop-browser --version
shop-browser config --help

Development (in this monorepo)

npm install
npm run build -w @dimension-studios/shop-browser
npm run type-check -w @dimension-studios/shop-browser

Run from source (expects env via dotenv / linked root .env):

npm run start -w @dimension-studios/shop-browser
# or from repo root:
npm run tools:isb

Related packages

  • @dimension-studios/ttk-proxy — call TTK proxy APIs from the terminal, including ttk-proxy shops <query> for debugging shop search.

License

ISC

Author

Dimension Studios