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

get-response-lite

v1.1.3

Published

Ask any questions to AI, and get your response right at your terminal

Downloads

51

Readme

Get Response-Lite : Terminal-based AI assistant

Get Response Lite is a node.js based command-line interface (CLI) created by Swapnoneel Saha tool that interacts with the Google's Gemini API to generate content based on the user input. This tool allows you to ask questions directly or provide context from files, images or directories, and get the response in a simple and easy to understand interface. Also, you can automate some terminal commands by prompting for the task

It's the lighter version of my NPM package Get-Response, which includes more features, but is a bit bulky to download and install; and has more performance load!

Installation

To install this package, you need to have node.js and npm installed in your machine. If you don't have them installed, you can refer to this article. Once that's done, you can install the package globally by using this command in your terminal:

npm i get-response-lite -g

Usage

Simple Usage

To ask a question directly from the command line (context is not stored for further questions):

npx ai "<Ask your question>"

Using a File as the Context

To provide additional context about your question, you can use the -f or --file flag followed by the file path:

npx ai "<Ask your question>" -f ./path/to/your/file.js

Using a Directory as the Context

To provide additional context about your question, you can use the -d or --directory flag followed by the name of the directory:

npx ai "<Ask your question>" -d ./path/to/your/directory

Chat Mode

In the context-based chat mode, you can ask multiple questions in a session:

npx ai -c

In the chat mode, the prompt Type your message: will appear, indicating that the tool is ready for you to type your question or command.

To exit the chat mode, type exit and press Enter.

Also, you can use the chat mode in association with the file and directory as the context, using the -f and -d flags respectively.

Terminal Mode

In the terminal mode, you can ask the AI to perform some specific actions and it will automatically execute the commands in your terminal based on your permission:

npx ai "<Mention your task>" -t

Example

Asking a Simple Question

npx ai "What is the currency of South Africa?"

Asking a Question with File Context

npx ai "Tell me, what is the function of the variable named toggleMode" -f ./index.js

Alternatively, you can also use:

npx ai "Tell me, what is the function of the variable named toggleMode" --file ./index.js

Asking a Question with Directory Context

npx ai "Write unit test cases for each of the functions" -d ./sample-app

Entering the Chat Mode with a File or Directory as Context

npx ai -c -f ./index.js

Or,

npx ai -c -d ./sample-app

Asking to Create a React Application

npx ai "Create a React application named get-response" -t

Contributing

If you want to contribute to this project, please go ahead!! Open an issue or submit a pull request for any improvements, bug fixes or feature implementations in the main repository of Get Response.

Bug Reporting

For any questions, suggestions or issues, please open an issue in the GitHub repository.