{"id":20298338,"url":"https://github.com/gurudarshan57/prompt-hub","last_synced_at":"2026-04-16T10:31:10.986Z","repository":{"id":254876148,"uuid":"847395170","full_name":"GuruDarshan57/Prompt-Hub","owner":"GuruDarshan57","description":"Prompt-Hub is an open-source AI prompting tool for modern world to discover, create and share creative prompts.","archived":false,"fork":false,"pushed_at":"2025-02-10T11:52:09.000Z","size":244,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T06:58:36.881Z","etag":null,"topics":["fullstack","javascript","nextjs14","reactjs","serverless","tailwindcss"],"latest_commit_sha":null,"homepage":"https://prompt-hub-zeta.vercel.app/","language":"JavaScript","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/GuruDarshan57.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,"publiccode":null,"codemeta":null}},"created_at":"2024-08-25T17:46:11.000Z","updated_at":"2025-02-10T11:52:12.000Z","dependencies_parsed_at":"2024-08-26T19:03:06.553Z","dependency_job_id":"9b65ba08-8143-4ffa-998d-ba68a6b7ac90","html_url":"https://github.com/GuruDarshan57/Prompt-Hub","commit_stats":null,"previous_names":["gurudarshan57/prompt-hub"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GuruDarshan57/Prompt-Hub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuruDarshan57%2FPrompt-Hub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuruDarshan57%2FPrompt-Hub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuruDarshan57%2FPrompt-Hub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuruDarshan57%2FPrompt-Hub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GuruDarshan57","download_url":"https://codeload.github.com/GuruDarshan57/Prompt-Hub/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuruDarshan57%2FPrompt-Hub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31881956,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T09:23:21.276Z","status":"ssl_error","status_checked_at":"2026-04-16T09:23:15.028Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["fullstack","javascript","nextjs14","reactjs","serverless","tailwindcss"],"created_at":"2024-11-14T16:09:14.229Z","updated_at":"2026-04-16T10:31:10.964Z","avatar_url":"https://github.com/GuruDarshan57.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PromptHub\n\nPromptHub is an open-source AI prompting full-stack tool for the modern world. It allows users to discover, create, discuss, and share creative prompts to inspire their writing, brainstorming sessions, and creative projects. This README file will guide you through the features, setup, and deployment process for the PromptHub app.\n\n## ScreenShots\n![1](https://github.com/user-attachments/assets/9cca903a-cc5f-4b7c-8f98-595a5a8c4445)\n\n![2](https://github.com/user-attachments/assets/cff9fd0f-4628-41c3-b77e-e1d9e881b400)\n\n![3](https://github.com/user-attachments/assets/a6758140-c4cf-4b59-aa46-61f4d1b7e8a6)\n\n![4](https://github.com/user-attachments/assets/09a459e0-a27f-4f7b-a2b9-2b59e2561241)\n\n![5](https://github.com/user-attachments/assets/5f567a2a-a8ed-4d32-9797-ab42b2ed6911)\n\n![Prompt Hub](https://github.com/user-attachments/assets/fccd4868-995d-470a-a738-df7122297d8d)\n\n## Features\n\n- **Authentication with Google:** Users can sign in to PromptHub using their Google accounts, ensuring a secure and hassle-free login process.\n- **Create, Edit, and Delete Posts:** Once logged in, users can create new prompts, edit existing ones, or delete prompts they no longer wish to keep. This gives them complete control over their prompt collection.\n- **User Profiles:** Each user has their own profile page where they can showcase their created prompts. Other users can visit these profile pages to view and gain inspiration from the prompts shared by that user.\n- **Search Functionality:** The main page of PromptHub allows users to search for prompts using keywords, tags, or usernames. This feature makes it easier for users to discover prompts related to specific themes or topics.\n- **Like, Save, and Comment:** Users can like and save prompts they like, as well as comment on them.\n- **Copy Prompt Text:** A handy button allows users to copy the text of a prompt with a single click. This makes it convenient to paste the prompt into an AI tool or any other writing platform.\n\n## Prerequisites\n\nBefore running the application, you need to have the following installed on your system:\n\n- Next.js (version 14)\n- React\n- Node.js (version 14 or later)\n- MongoDB (version 4.0 or later)\n\nPromptHub is deployed on Vercel, a cloud platform for static sites and serverless functions.\n\n## Installation\n\n1. Clone the repository to your local machine using the following command:\n    ```bash\n    git clone https://github.com/GuruDarshan57/Prompt-Hub/\n    ```\n\n2. Install the necessary dependencies by navigating to the project directory and running:\n    ```bash\n    npm install\n    ```\n\n3. Create a `.env` file in the root directory of the project and add the following environment variables:\n    ```\n    GOOGLE_ID=\n    GOOGLE_CLIENT_SECRET=\n    MONGODB_URI=\n    NEXTAUTH_URL=\n    NEXTAUTH_URL_INTERNAL=\n    NEXTAUTH_SECRET=\n    ```\n\n4. Run the app:\n    ```bash\n    npm run dev\n    ```\n\n## API Endpoints\n\nThe following API endpoints are available:\n\n- **POST /api/prompt/create:** Create a new prompt.\n- **GET /api/prompt:** Get all prompts.\n- **GET /api/prompt/{promptId}:** Get prompt.\n- **PATCH /api/prompt/{promptId}:** Update prompt.\n- **DELETE /api/prompt/{promptId}:** Delete prompt.\n- **GET /api/user/{userId}/posts:** Get prompts by a user.\n- **POST /api/comment/{promptId}:** Add comment on prompt.\n- **POST /api/like/{promptId}:** Add like to prompt.\n- **POST /api/save/{promptId}:** Save prompt.\n\n## Error Handling\n\nThe API endpoints return error responses with code and message.\n\n## Tribute\n\nA special thanks to [JavaScript Mastery](https://www.youtube.com/@JavaScriptMastery) for their exceptional Next.js tutorial. Their guidance and resources were invaluable in bringing this project to life.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgurudarshan57%2Fprompt-hub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgurudarshan57%2Fprompt-hub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgurudarshan57%2Fprompt-hub/lists"}