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

@piyush_007/tweak-extension

v1.0.3

Published

Chrome Extension built with React, Vite, and TypeScript

Downloads

41

Readme

🧠 Tweak AI Prompts – Chrome Extension

Boost your productivity by injecting a ✨ Tweak button into AI input boxes (ChatGPT, Claude, Gemini, DeepSeek) that optimizes your prompts for better AI responses.


✨ Features

  • Injects a "Tweak Prompt" button directly into supported AI chat UIs.
  • Uses the OpenRouter API to optimize the written prompt.
  • Works with:
    • ChatGPT (chat.openai.com)
    • Claude (claude.ai)
    • Gemini (gemini.google.com)
    • DeepSeek (chat.deepseek.com)
  • Prompt output is returned as plain optimized text — no clutter.

🧩 How It Works

  1. On AI input boxes, a ✨ button appears once you start typing.
  2. When clicked, your prompt is sent to OpenRouter using the deepseek-chat model.
  3. You get back a smarter, more specific version of your prompt, which replaces the original input.

🚀 Installation (Dev)

  1. Clone this repo:
    git clone https://github.com/yourname/tweak-extension.git
    cd tweak-extension
  2. Create a .env file:
    VITE_OPENROUTER_API_KEY=your_openrouter_api_key_here
    VITE_BACKEND_URL=your_backend_url
  1. Run the dev build:
npm install
npm run build

Go to chrome://extensions/, enable Developer Mode, click Load unpacked, and select the /dist folder.

🔧 Configuration Make sure to include your OpenRouter key in the .env file as:

    VITE_OPENROUTER_API_KEY=your_key
    VITE_BACKEND_URL=your_backend_url

You can get one from https://openrouter.ai/

📁 Project Structure

@piyush_007/tweak-extension/
│── dist/
│   ├── assets
│   |     ├──popup-Cb2gFt_V.css
│   ├── icon
│   |     ├──icon128.png
│   ├── content.js
│   ├── icon.svg
│   ├── index.html
│   ├── manifest.json
│   ├── popup.js
│── eslint.config.js
│── package.json
│── README.md

🛡️ Permissions This extension requires the following permissions:

activeTab – To access the current tab’s DOM

storage – To optionally store prompt count locally

🧠 Example API Call

const response = await axios.post("https://openrouter.ai/api/v1/chat/completions", {
  model: "deepseek/deepseek-chat-v3-0324:free",
  messages: [
    {
      role: "system",
      content: "You are a prompt optimizer. ONLY return the improved prompt."
    },
    {
      role: "user",
      content: "Summarize this article with key insights."
    }
  ]
}, {
  headers: {
    Authorization: `Bearer ${VITE_OPENROUTER_API_KEY}`,
    "Content-Type": "application/json"
  }
});

❤️ Contributing Have ideas or want to add support for more models or AI tools? PRs and feedback are welcome!

📄 License MIT License. Use it, fork it, build your AI toolkit.