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

aicp

v0.0.4

Published

A tool for AI copy and paste functionality

Downloads

3

Readme

aicp (AI Copy Paste)

aicp is a command-line tool that makes it easy to copy files from your codebase to your clipboard in a format suitable for pasting into chats with Large Language Models (LLMs). It allows you to quickly gather context from your code without tediously copying and pasting individual files.

Why aicp?

When interacting with LLMs, we often need to provide code snippets or entire files for context. Manually copying and pasting each relevant file can be time-consuming and cumbersome. aicp streamlines this process by allowing you to select the desired files from a directory and automatically copying their contents to the clipboard in a structured format ready for pasting into LLM chats.

Features

  • Terminal User Interface (TUI): aicp provides an intuitive command-line interface for navigating and selecting files.
  • Git Integration: For security purposes, aicp does not rely on calling the git command externally. Instead, it manually parses .gitignore files to respect the same ignore rules as git.
  • Search: find any files in the CLI results.
  • Recursive File Discovery: aicp is recursive by nature, meaning it will find all relevant files within a given directory and its subdirectories. Currently, it only operates on directories.
  • Repository Detection: You can open any path inside a git repository, and aicp will automatically detect the repository based on the parent .git/config file.
  • File Selection: Use the spacebar or press s to select the files you want to include in the prompt.
  • Prompt Viewing: Press p to view the prompt that has been copied to your clipboard.
  • Relative Path Support: The input path can be specified relative to the current working directory.

Demo

Check out this video demonstration of aicp in action:

Installation

Using Homebrew (macOS and Linux)

  1. Tap the aicp repository:
brew tap michaelangelo.io/aicp <https://gitlab.com/michaelangelo.io/aicp>
  1. Install aicp:
brew install aicp
  1. To uninstall:
brew uninstall aicp && brew untap michaelangelo.io/aicp

Using npm (Node.js)

Install aicp globally using npm:

npm install -g aicp

Usage

Run aicp followed by the path to the directory you want to copy files from. The path can be relative to the current working directory.

Examples:

aicp .
aicp ../some-folder
aicp /path/to/folder

Once aicp is running:

  • Use the arrow keys or j and k to navigate through the file list.
  • Press the spacebar or s to select files to include in the prompt.
  • Press p to view the prompt that has been copied to the clipboard.
  • Press q or Esc to exit aicp.

Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a merge request on the aicp GitLab repository.

License

aicp is open-source software licensed under the MIT License.