Skip to content
This repository was archived by the owner on Oct 16, 2025. It is now read-only.

Person-0/RepoInfoAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RepoInfoAI

ChatGPT can access your repositories if prompted without the need of using this program so I have archived this project.

Auto-send prompts to ChatGPT on the website that contains info about an arbitrary GitHub repository.
The information includes:

  • Name
  • Description
  • Files (including those in subfolders)
  • Content inside .md files
  • Created & Last updated at
  • Open Issues count
  • License
  • Stars
  • Watchers
  • Forks
  • Main language
  • Is archived / disabled

ChatGPT can further be asked about any information related to the given information. For example, you may ask it to point out files in which a specific logic of the project may be. Or, you may ask it to generate an essay regarding the project. Anything infact.
demo.mp4

Prompts can be edited in main.js
Improvements and PRs are welcome!

Usage (only pc / desktop mode)

  • Start the local server and install the userscript (steps mentioned in Installation Instructions below)
  • Go to https://chatgpt.com
  • Click on RepoInfo button at bottom right.
  • Enter Repo name along with owner (eg. Person-0/RepoInfoAI)
  • Enter the first prompt you want to ask ChatGPT about.
  • Important!!! Allow the script to fetch cross-origin requests if prompted for. This is required to interact with the local server due to csp headers on the website.
  • wait for the results! It may take some time for large repositories.
  • you may also continue the chats.

Installation Instructions

Both of the following are required.

1. Userscript setup

(it requests the prompt data from the local server and sends it as chat prompt to ChatGPT)

2. Local server setup

(it is responsible for the git api requests and parsing the prompts.)

  • Ensure that you have Node.js installed on your system (project tested on Node.js v20.12.2).
  • Clone this repository OR download the source code as a zip file.

For cloning:

git clone https://github.com/Person-0/RepoInfoAI

For downloading as a zip: click here

  • Extract the zip contents into a folder.
  • cd into the repo contents.
cd RepoInfoAI
  • Install all npm dependencies
npm i
  • Get your github access token (optional, recommended due to rate limits) and add it to the .env file.
GHACCESSTOKEN=<YOUR TOKEN HERE>

You may also add a PORT=<custom port number> to modify the default PORT (4070) at which the server runs on, but please also edit it in the userscript else it will break.

  • Start the local server
npm start

Credits

About

Auto-send prompts to ChatGPT on the website that contains info about an arbitrary GitHub repository.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors