{"id":25709171,"url":"https://github.com/manya7547/insightpdf","last_synced_at":"2026-04-12T09:12:25.862Z","repository":{"id":279281631,"uuid":"937912943","full_name":"Manya7547/InsightPDF","owner":"Manya7547","description":"web application that enables users to interact with PDF documents using AI-powered chat","archived":false,"fork":false,"pushed_at":"2025-02-24T18:33:16.000Z","size":99,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T19:34:06.600Z","etag":null,"topics":["clerk-auth","drizzle-orm","neondb","nextjs","nodejs","openapi","s3-bucket","stripe-payments","typescript"],"latest_commit_sha":null,"homepage":"","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/Manya7547.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":"2025-02-24T05:41:39.000Z","updated_at":"2025-02-24T18:33:20.000Z","dependencies_parsed_at":"2025-02-24T19:44:09.788Z","dependency_job_id":null,"html_url":"https://github.com/Manya7547/InsightPDF","commit_stats":null,"previous_names":["manya7547/insightpdf"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Manya7547%2FInsightPDF","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Manya7547%2FInsightPDF/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Manya7547%2FInsightPDF/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Manya7547%2FInsightPDF/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Manya7547","download_url":"https://codeload.github.com/Manya7547/InsightPDF/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240637776,"owners_count":19833194,"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":["clerk-auth","drizzle-orm","neondb","nextjs","nodejs","openapi","s3-bucket","stripe-payments","typescript"],"created_at":"2025-02-25T09:22:34.492Z","updated_at":"2026-04-12T09:12:25.858Z","avatar_url":"https://github.com/Manya7547.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# InsightPDF - AI-Powered PDF Chat Application\n\nInsightPDF is a Next.js application that allows users to chat with their PDF documents using AI. Upload any PDF and start asking questions about its content.\n\n## Features\n\n- 📄 PDF file upload and processing\n  ![PDF Upload Interface](/public/screenshots/authenticated-page.png)\n- 💬 Real-time chat interface\n  ![Chat Interface](/public/screenshots/real-time-chat.png)\n- 🔍 Semantic search within PDFs\n  ![PDF Chat](/public/screenshots/add-new-pdf.png)\n- 👤 User authentication\n  ![Authentication](/public/screenshots/clerk-auth.png)\n  ![Unauthenticated](/public/screenshots/main-page-unauth.png)\n- 📱 Responsive design\n  ![Chats Page](/public/screenshots/go-to-chats.png)\n- 💾 Persistent chat history\n\n## Prerequisites\n\nBefore you begin, ensure you have:\n\n- Node.js 18+ installed\n- PostgreSQL database\n- AWS S3 bucket\n- Pinecone account\n- OpenAI API key\n- Clerk account\n\n## Environment Variables\n\nCreate a `.env` file in the root directory with the following variables:\n\n```env\n# Database\nDATABASE_URL=\"your-postgresql-connection-string\"\n\n# AWS S3\nAWS_ACCESS_KEY_ID=\"your-aws-access-key\"\nAWS_SECRET_ACCESS_KEY=\"your-aws-secret-key\"\nAWS_REGION=\"your-aws-region\"\nNEXT_PUBLIC_S3_BUCKET_NAME=\"your-bucket-name\"\n\n# Pinecone\nPINECONE_API_KEY=\"your-pinecone-api-key\"\nPINECONE_INDEX_NAME=\"your-pinecone-index-name\"\n\n# OpenAI\nOPENAI_API_KEY=\"your-openai-api-key\"\n\n# Clerk\nNEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=\"your-clerk-publishable-key\"\nCLERK_SECRET_KEY=\"your-clerk-secret-key\"\n```\n\n## Installation\n\n1. Clone the repository:\n\n```bash\ngit clone \u003crepository-url\u003e\ncd insightpdf\n```\n\n2. Install dependencies:\n\n```bash\nnpm install\n```\n\n3. Set up the database:\n\n```bash\nnpm run db:push\n```\n\n4. Run the development server:\n\n```bash\nnpm run dev\n```\n\n5. Open [http://localhost:3000](http://localhost:3000) with your browser.\n\n## Project Structure\n\n```\nsrc/\n├── app/                    # Next.js app router\n│   ├── api/               # API routes\n│   ├── chat/             # Chat interface\n│   └── page.tsx          # Home page\n├── components/            # React components\n├── lib/                   # Utility functions\n│   ├── db/               # Database configuration\n│   ├── pinecone.ts       # Pinecone setup\n│   └── s3-server.ts      # AWS S3 configuration\n```\n\n## API Routes\n\n- `POST /api/create-chat` - Create new chat session\n- `POST /api/chat` - Handle chat messages\n- `GET /api/get-context` - Get PDF context\n- `POST /api/add-message` - Save chat messages\n\n## Technologies Used\n\n- [Next.js](https://nextjs.org/)\n- [React](https://reactjs.org/)\n- [TypeScript](https://www.typescriptlang.org/)\n- [Tailwind CSS](https://tailwindcss.com/)\n- [DrizzleORM](https://orm.drizzle.team/)\n- [Pinecone](https://www.pinecone.io/)\n- [OpenAI](https://openai.com/)\n- [AWS S3](https://aws.amazon.com/s3/)\n- [Clerk](https://clerk.dev/)\n\n## Development\n\nTo run tests:\n\n```bash\nnpm run test\n```\n\nTo run linting:\n\n```bash\nnpm run lint\n```\n\n## Production Deployment\n\n1. Build the application:\n\n```bash\nnpm run build\n```\n\n2. Start the production server:\n\n```bash\nnpm start\n```\n\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanya7547%2Finsightpdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanya7547%2Finsightpdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanya7547%2Finsightpdf/lists"}