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 🙏

© 2024 – Pkg Stats / Ryan Hefner

tripleg

v0.1.17

Published

Triple G is an experimental AI completion tool designed to enhance productivity by listening to keypresses and clipboard changes. It integrates AI-powered completions into any text environment, whether you're coding, writing documentation, or composing em

Downloads

9

Readme

Triple G

Triple G is an experimental AI completion tool designed to enhance productivity by listening to keypresses and clipboard changes. It integrates AI-powered completions into any text environment, whether you're coding, writing documentation, or composing emails. Use Triple G to streamline your workflow and enhance your text interaction capabilities with AI.

Type ggg to trigger an AI completion at your cursor location, and GGG to clear the internal context stack.

Key Features

  • Auto Context: Listens to keypresses and clipboard changes to automatically set context.
  • AI Completions: Activate AI completions with a simple keystroke.
  • Multiple Providers: Choose from several AI providers to suit your needs.

Installation

Prerequisites

  • Node.js (v16 or later recommended)
  • Compatible with macOS (possibly compatible with Linux and Windows, but not tested)
  • Enable accessibility for the terminal or wherever you want to run from
npm install -g tripleg

Note: if you experience node-gyp installation issues, you may need to install python setup tools python3 -m pip install setuptools

Usage

tripleg --provider openai -m gpt-3.5-turbo

Options

  • -p, --provider <provider>: Specify the provider for the model.
  • -m, --model <model>: Specify the model to use.
  • -sp, --system-prompt <prompt>: Set a system guidance prompt.
  • -t, --trigger-key <key>: Set the trigger key for completion.
  • -d, --delay <ms>: Set the delay between typing chunks.
  • -l, --list: List all available model options.
  • -o, --ocr <directory: Perform OCR on images in the specified directory (experimental & only available on macOS).
  • -u, --use-tools: Use experimental system tools (e.g., read and write files, execute bash commands).
  • -v, --verbose: Display debug logs.
  • -V, --version: Output the version information.
  • -h, --help: Display the help information.

Key commands

Interact with Triple G using these key sequences:

  • ggg: Trigger an AI completion at your cursor location.
  • GGG: Clear the internal context stack.
  • ggx: [Experimental, MacOS only feature] Take a screenshot and perform OCR.
  • gGg: Exit Triple G.

Providers

Triple G integrates with the following providers, each requiring specific API keys:

  • OpenAI: OPENAI_API_KEY
  • Together: TOGETHER_API_KEY
  • Perplexity: PERPLEXITY_API_KEY
  • Mistral: MISTRAL_API_KEY
  • Groq: GROQ_API_KEY
  • Gemini: GEMINI_API_KEY
  • Anthropic: ANTHROPIC_API_KEY
  • Ollama: No API key required.

Ensure the corresponding environment variables are set for seamless integration.