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

gimme_readme

v1.0.0

Published

gimme_readme is a command-line tool powered by AI that generates a comprehensive README.md file for your project. It analyzes multiple source code files at once, providing concise explanations of each file's purpose, functionality, and key components, all

Downloads

135

Readme

gimme_readme

gimme_readme is a command-line tool powered by AI that generates a comprehensive README.md file for your project. It analyzes multiple source code files at once, providing concise explanations of each file's purpose, functionality, and key components, all in a single, easy-to-read document.

gimme_readme-0.1-demo-revised

See our 0.1 Release Demo!

Table of Contents

  1. Getting Started
  2. Usage
  3. Example Usage
  4. Supported Models by Providers
  5. Contributing
  6. Code of Conduct
  7. License
  8. Author

1. Getting Started

To get started with gimme_readme, follow these steps:

  1. Install the latest long term support version of Node.js for your operating system.

  2. Run the following command to install gimme_readme globally:

    npm i -g gimme_readme

    NOTE: MAC/LINUX users may need to run sudo npm i -g gimme_readme

  3. Generate a configuration file by running in any folder you'd like:

    gr-ai -c

    This command creates a .gimme_readme_config file in your home directory. Do not move this file from this location.

  4. Open the .gimme_readme_config file and add your API keys and preferred default values as prompted. Ensure you leave the variable names unchanged.

    • Subsequent runs of gr-ai -c will display the path to your existing config file.
    • See here for an example of what a .gimme_readme_config file looks like!

2. Usage

gimme_readme uses AI to generate a README.md file that explains a given source code file or files. Below are the available options:

| Option | Description | | ------------------------------ | --------------------------------------------------------------------------------- | | -v, --version | Output the current version | | -f, --file [files...] | Specify one or more files to generate explanations for | | -o, --outputFile <string> | Specify the file to output the generated README to | | -m, --model <string> | Choose a free-tier AI model to use (e.g., gemini, openai, grok) | | -p, --prompt <string> | Provide a custom prompt to the AI | | -pf, --promptFile <string> | Specify a prompt file | | -c, --config | Show the location of the configuration file and provide links to examples | | -t, --temperature <number> | Set the level of determinism for the AI (value between 0 and 1) | | -tkn, --token | Get information on the tokens consumed (i.e., prompt, completion, & total tokens) | | -h, --help | Display help for the command |

3. Example Usage

Below are some simple examples to help you get started with gimme_readme. For more detailed examples, see here.

Display Help

To display the help menu with all available commands:

gr-ai -h

Display Version Number

To show the current version of gimme_readme:

gr-ai -v

Generate a README for a Source File

To generate a README.md file for one or more source files:

gr-ai -f example.js anotherFile.py -o README.md -m gemini-1.5-flash

Generate the number of tokens used during the API call

gr-ai -f example.js anotherFile.py -o README.md -m gemini-1.5-flash -tkn
gr-ai -f example.js anotherFile.py -o README.md -m llama3-8b-8192 --token

4. Supported Models by Providers

| Provider | Models | | -------- | ---------------- | | gemini | gemini-1.5-flash | | groq | llama3-8b-8192 |

5. Contributing

We welcome contributions to improve gimme_readme! To get started with contributing, we ask that you read our contributing guide

6. Code of Conduct

We are committed to providing a welcoming and inclusive experience for everyone. By participating in this project, you agree to abide by our Code of Conduct.

7. License

This project is licensed under the MIT license. You are free to use, modify, and distribute this code, subject to the terms in the LICENSE file.

8. Author

Developed by Peter Wan.

For any questions or feedback, feel free to reach out through the GitHub repository.