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

@ewjdev/anyclick-extension

v3.0.0

Published

Browser extension for Anyclick - right-click context menu with t3.chat and UploadThing integration

Downloads

27

Readme

@ewjdev/anyclick-extension

Browser extension for Anyclick - adds right-click context menu integration with t3.chat and UploadThing to any webpage.

Features

  • Text Selection → t3.chat: Select text on any page, right-click, and send it to t3.chat for AI-powered answers
  • Image Upload → UploadThing: Right-click on images to upload them directly to UploadThing
  • Cross-browser Support: Works on Chrome, Edge, and Firefox (Manifest V3)
  • Configurable: Store your preferences and API keys securely in extension storage

Installation

From Source

  1. Clone the repository:
git clone https://github.com/ewjdev/anyclick.git
cd anyclick/packages/anyclick-extension
  1. Install dependencies:
npm install
  1. Build the extension:
npm run build:extension
  1. Load in Chrome:
    • Go to chrome://extensions
    • Enable "Developer mode"
    • Click "Load unpacked"
    • Select the packages/anyclick-extension folder

From Store (Coming Soon)

The extension will be available on:

  • Chrome Web Store
  • Firefox Add-ons
  • Edge Add-ons

Usage

t3.chat Integration

  1. Select text on any webpage
  2. Right-click to open the context menu
  3. Click "Ask t3.chat"
  4. The selected text opens in t3.chat with your query pre-filled

UploadThing Integration

  1. Configure your UploadThing endpoint in the extension options
  2. Right-click on any image
  3. Click "Upload to UploadThing"
  4. The image URL is copied to your clipboard

Configuration

Click the extension icon to open settings:

interface ExtensionConfig {
  enabled: boolean; // Enable/disable the extension
  t3chat: {
    enabled: boolean; // Enable t3.chat menu item
    baseUrl: string; // Custom t3.chat URL
  };
  uploadthing: {
    enabled: boolean; // Enable UploadThing menu item
    endpoint?: string; // Your upload API endpoint
    apiKey?: string; // UploadThing API key (for direct uploads)
  };
}

Development

Project Structure

packages/anyclick-extension/
├── src/
│   ├── background/          # Service worker
│   │   └── background.ts
│   ├── content/             # Content scripts
│   │   ├── inject.ts
│   │   └── adapters/
│   │       ├── t3chat.ts
│   │       └── uploadthing.ts
│   ├── types.ts             # Type definitions
│   └── index.ts             # Package exports
├── manifest.json            # Extension manifest
├── package.json
└── README.md

Scripts

# Build library exports
npm run build

# Build extension bundle
npm run build:extension

# Development watch mode
npm run dev

# Clean build files
npm run clean

Using Extension Adapters in Your Code

The extension exports reusable adapters that work in content script context:

import {
  sendToT3Chat,
  sendSelectionToT3Chat,
  hasSelection,
} from "@ewjdev/anyclick-extension";

// Send text to t3.chat
sendToT3Chat("How do I fix this error?", { baseUrl: "https://t3.chat" });

// Send selected text
if (hasSelection()) {
  sendSelectionToT3Chat();
}
import {
  uploadFile,
  uploadImageFromUrl,
  isImageElement,
  getImageSource,
} from "@ewjdev/anyclick-extension";

// Check if element is an image
if (isImageElement(element)) {
  const src = getImageSource(element);
  if (src) {
    const result = await uploadImageFromUrl(src, {
      endpoint: "/api/uploadthing",
    });
    console.log("Uploaded:", result.url);
  }
}

Permissions

The extension requires these permissions:

  • contextMenus - Add items to right-click menu
  • storage - Save configuration
  • activeTab - Access current tab for uploads
  • <all_urls> - Work on any website

Privacy

  • Your API keys are stored locally in your browser
  • No data is sent to third parties except:
    • Your selected text to t3.chat (when you choose)
    • Images to UploadThing (when you choose)
  • No analytics or tracking

TypeScript

import type {
  ExtensionConfig,
  ExtensionMessage,
  ExtensionResponse,
  MessageType,
} from "@ewjdev/anyclick-extension";

import {
  DEFAULT_EXTENSION_CONFIG,
  CONTEXT_MENU_IDS,
} from "@ewjdev/anyclick-extension";

Browser Compatibility

| Browser | Minimum Version | Status | |---------|----------------|--------| | Chrome | 102+ | ✅ Supported | | Edge | 102+ | ✅ Supported | | Firefox | 109+ | ✅ Supported | | Safari | - | 🚧 Coming Soon |

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Make your changes
  4. Test the extension locally
  5. Submit a pull request

License

MIT