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

opentabs-plugin-facebook-marketplace

v0.1.2

Published

OpenTabs plugin for Facebook Marketplace

Readme

Facebook Marketplace

OpenTabs plugin for Facebook Marketplace — gives AI agents access to Facebook Marketplace through your authenticated browser session.

Install

opentabs plugin install facebook-marketplace
opentabs start  # restart if it's already running

From source (for development):

git clone https://github.com/nikhilweee/opentabs-plugin-facebook-marketplace.git
cd opentabs-plugin-facebook-marketplace
npm install && npm run build   # auto-registers in ~/.opentabs/config.json

Setup

  1. Open facebook.com in Chrome and log in.
  2. Open the OpenTabs side panel — the Facebook Marketplace plugin should appear and you can flip it from Off to Ask.

Tools

Marketplace (6)

| Tool | Description | Type | | ---------------- | --------------------------------------------------------------------------------------------------------------- | ----- | | my_listings | Returns the current user's Marketplace listings (id, title, price, location, image, sold status, listing date). | Read | | get_listing | Given a listing id, returns full details: title, price, description, photos, location, seller, condition. | Read | | edit_listing | Updates text fields (title, price, description, condition) on one of the user's own listings. Returns updated. | Write | | create_listing | Publishes a new "Item for sale" listing. Uploads photos (base64 input), then fires the create mutation. | Write | | delete_listing | Permanently deletes one of the user's listings. Irreversible. Returns the deleted id + remaining count. | Write | | relist_listing | Deletes a listing and recreates it with the same content (re-uploaded photos). Optional field overrides. | Write |

How It Works

This plugin runs inside your Facebook Marketplace tab through the OpenTabs Chrome extension. It uses your existing browser session — no API tokens or OAuth apps required.

Under the hood it talks to Facebook's internal GraphQL endpoint (/api/graphql/) using auth tokens extracted from the page session. Persisted-query doc_ids are resolved at runtime so they survive FB's frequent client deploys. my_listings cursor-paginates through the seller's listing connection; get_listing merges every SSR-prefetched Relay fragment that references the target id.

License

MIT