{"id":29107656,"url":"https://github.com/premai-io/premplexity","last_synced_at":"2025-06-29T05:06:44.728Z","repository":{"id":292375428,"uuid":"832195835","full_name":"premAI-io/Premplexity","owner":"premAI-io","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-09T15:20:33.000Z","size":275,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-06-24T01:14:59.127Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/premAI-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2024-07-22T14:08:40.000Z","updated_at":"2025-06-09T20:07:11.000Z","dependencies_parsed_at":"2025-05-09T16:36:28.214Z","dependency_job_id":"85e02001-5db2-4546-957a-5c81071c9c6f","html_url":"https://github.com/premAI-io/Premplexity","commit_stats":null,"previous_names":["premai-io/premplexity"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/premAI-io/Premplexity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/premAI-io%2FPremplexity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/premAI-io%2FPremplexity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/premAI-io%2FPremplexity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/premAI-io%2FPremplexity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/premAI-io","download_url":"https://codeload.github.com/premAI-io/Premplexity/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/premAI-io%2FPremplexity/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262539097,"owners_count":23325834,"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":"2025-06-29T05:06:41.542Z","updated_at":"2025-06-29T05:06:44.719Z","avatar_url":"https://github.com/premAI-io.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg\nsrc=\"https://static.premai.io/premplexity/White.png\"\nalt=\"Overview\"/\u003e\n\n## Open-source, Fast, Private\n\n##### Quench your thirst for discovery while boosting curiosity.\n\nPremplexity is a completely open-source AI-powered utility belt for gathering information fast and privately. Answering questions is a trivial task you can do with any traditional search engine. With Premplexity you can retain full control over your searches and have ownership over the information you gather.\n\n# What should I use Premplexity for?\n\n- Privately explore the web for new topics, and summarize anything without the creepy trackers 🧟‍♂️👣\n\n- Answering questions: Go from a question to an answer as fast as possible. It doesn't matter if its a simple or complex question. Find the best answers from the most up to date sources. Generate code, summarize anything in one open environment.\n\n- Exploring topics in depth: Learn new things on the fly and access the main sources of information.\n\n- Choose the right AI models for your use case: Choose from a variety of AI models and pick the one that best fits your use case.\n\n- Fork and run locally: Run Premplexity locally on your own machine. Make it your OWN!\n\n## Examples\n\n[💻 What are some upcoming tech trends for 2024?](https://premplexity.premai.io/thread/110)\n\n[🔍 What are the benefits of cloud computing for startups?](https://premplexity.premai.io/thread/111)\n\n[📱 How can businesses adapt to digital transformation?](https://premplexity.premai.io/thread/114)\n\n[🚀 How can AI revolutionize customer service?](https://premplexity.premai.io/thread/115)\n\n## Want to run Premplexity on your own machine?\n\n## Requirements\n\n- [nvm](https://nodejs.org/en/download/package-manager)\n- [docker](https://docs.docker.com/get-started/get-docker)\n\n## Contributing\n\n1. Use the correct node version\n\n```bash\nnvm use\n```\n\n2. Copy the `.env.example` file to `.env`\n\n```bash\ncp .env.example .env\n```\n\n3. Run the db with Docker\n\n```bash\ndocker-compose up -d postgres\n```\n\n4. Install dependencies\n\n```bash\nnpm install\n```\n\n4. Create Prem project\n\n- Go to your [Prem](https://app.premai.io/projects/) account and create a new project.\n- Copy the project ID and paste it in the `.env` file.\n- Create a new API key and paste it in the `.env` file.\n\n```bash\nPREM_PROJECT_ID=your_project_id\nPREM_API_KEY=your_api_key\n```\n\n5. Get SerpApi key\n\n- Go to your [SerpAPI](https://serpapi.com/dashboard) account and create a new project.\n- Get your API key and paste it in the `.env` file.\n\n```bash\nSERPAPI_KEY=your_api_key\n```\n\n## Run the migrations\n\nTo apply the migrations, run:\n\n```bash\nnpm run migrate\n```\n\n## Run the application\n\nMake sure you have docker running and no other services are running on the ports `5432` and `3000` (or in the ports that you have set on `.env` file). Start the local infrastructure:\n\n```bash\nnpm run dev\n```\n\nYou can now access the application at [http://localhost:3000](http://localhost:3000).\n\n### Drizzle Studio\n\nIf you want to use Drizzle Studio to manage the database, you can run the following command:\n\n```bash\nnpm run studio\n```\n\n## Database management\n\n### Migrations\n\nTo create a new migration, modify the Drizzle models and then run:\n\n```bash\nnpm run makemigrations\n```\n\n### Resetting the DB\n\nRun the following command to reset the database (drop all tables, apply all migrations and seed the database):\n\n```bash\nnpm run db:reset\n```\n\nIf you want to hard clean the database, you can stop the postgres container and remove the volume:\n\n```bash\ndocker-compose down -v\n```\n\n### Cleaning the DB\n\nRun the following command to clean the database (truncate all tables):\n\n```bash\nnpm run db:truncate\n```\n\n### Seeding the DB\n\nRun the following command to seed the database with initial data:\n\n```bash\nnpm run db:seed\n```\n\n## Self Host Premplexity\n\nSimply run: \n\n```bash\ndocker-compose up -d\n```\n\nAnd you will have the application running at [http://localhost:3000](http://localhost:3000).\n\n## Troubleshooting\n\n### Error: Missing required environment variable\n\nThis error occurs when the application is missing a required environment variable. To resolve this issue, ensure that the required environment variables are set in the `.env` file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpremai-io%2Fpremplexity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpremai-io%2Fpremplexity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpremai-io%2Fpremplexity/lists"}