{"id":13588423,"url":"https://github.com/chunrapeepat/codeprompt","last_synced_at":"2025-04-12T14:21:46.418Z","repository":{"id":160861383,"uuid":"616884826","full_name":"chunrapeepat/codeprompt","owner":"chunrapeepat","description":"CodePrompt is the code repository loader interface that consumes your relevant code and turns it into a GPT prompt","archived":false,"fork":false,"pushed_at":"2023-03-31T03:26:56.000Z","size":1201,"stargazers_count":65,"open_issues_count":6,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-26T08:51:36.139Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://codeprompt.xyz","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chunrapeepat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-03-21T09:31:46.000Z","updated_at":"2025-02-02T12:39:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"b6e6fb91-1631-4633-a14d-3a4d2753dc1b","html_url":"https://github.com/chunrapeepat/codeprompt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chunrapeepat%2Fcodeprompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chunrapeepat%2Fcodeprompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chunrapeepat%2Fcodeprompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chunrapeepat%2Fcodeprompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chunrapeepat","download_url":"https://codeload.github.com/chunrapeepat/codeprompt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247875114,"owners_count":21010837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T15:06:42.336Z","updated_at":"2025-04-12T14:21:46.391Z","avatar_url":"https://github.com/chunrapeepat.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# CodePrompt\n\n\u003e CodePrompt is the code repository loader interface that consumes your relevant code and turns it into a GPT prompt — allowing the GPT to write more complex code for you.\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://codeprompt.xyz/ogimage.jpeg\" width=\"100%\" /\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\nCodePrompt is an experiment and an attempt to let GPT write more complex code while taking into consideration of the project's context. This includes tasks such as implementing a function that evolves edits on multiple files, creating new components while reusing existing functions, etc.\n\nThe inspiration and ideas for this project were primarily drawn from [mpoon/gpt-repository-loader](https://github.com/mpoon/gpt-repository-loader). However, due to its limitations in loading all files into the prompt and encountering token context limit issues, using gpt-repository-loader is currently impractical.\n\nSo in CodePrompt, we add functionalities such as file selection and code editing, which enable developers to selectively choose relevant files and specific portions of code to build a GPT prompt based on their requirements.\n\n[Try it yourself](https://codeprompt.xyz), [Report a Bug / Request a Feature](https://github.com/chunrapeepat/codeprompt/issues)\n\n## 📖 How to use:\n\n1. Choose a GPT model from the available options, such as GPT-3.5, GPT-4, or GPT-4-32K.\n2. Select a public repository that you want to work with.\n3. Choose the relevant files from the repository that you want to include into the prompt.\n4. Remove any irrelevant code and add specific instructions as needed.\n5. Copy the prompt to your chosen GPT model to generate the desired output.\n\n## 🛠️ Installation\n\n### Local Development Environment\n\n1. Clone the repository:\n\n   ```bash\n   git clone git@github.com:chunrapeepat/codeprompt.git\n   ```\n\n2. Install the required packages:\n\n   ```bash\n   cd codeprompt \u0026\u0026 yarn\n   ```\n\n3. Build the application:\n\n   ```bash\n   yarn build\n   ```\n\n4. Start the development server:\n\n   ```bash\n   yarn start\n   ```\n\n## 👥 Contributing\n\nContributions to CodePrompt are welcome and encouraged! To contribute, please follow these steps:\n\n1. Fork the repository\n2. Create a new branch\n3. Make your changes\n4. Push your changes to your fork\n5. Submit a pull request\n\nOr, if you have any fun ideas, go to [the issues page](https://github.com/chunrapeepat/codeprompt/issues) and post them there 🔥\n\n---\n\nCrafted with 💖 by [@chunrapeepat](https://twitter.com/chunrapeepat)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchunrapeepat%2Fcodeprompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchunrapeepat%2Fcodeprompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchunrapeepat%2Fcodeprompt/lists"}