Skip to content

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.

License

Notifications You must be signed in to change notification settings

peterdanwan/gimme_readme

Repository files navigation

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.

About

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.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published