{"id":26533762,"url":"https://github.com/shivamrai15/aether","last_synced_at":"2025-09-06T09:44:57.643Z","repository":{"id":277889200,"uuid":"933796589","full_name":"Shivamrai15/aether","owner":"Shivamrai15","description":"Run locally hosted llms","archived":false,"fork":false,"pushed_at":"2025-05-11T15:18:17.000Z","size":240,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-11T16:28:22.691Z","etag":null,"topics":["langchain","langchain-js","nextjs","nextjs15","postgresql","prisma","prisma-orm","tailwindcss"],"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/Shivamrai15.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-16T17:56:06.000Z","updated_at":"2025-05-11T15:18:21.000Z","dependencies_parsed_at":"2025-02-16T20:36:57.681Z","dependency_job_id":null,"html_url":"https://github.com/Shivamrai15/aether","commit_stats":null,"previous_names":["shivamrai15/aether"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Shivamrai15/aether","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shivamrai15%2Faether","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shivamrai15%2Faether/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shivamrai15%2Faether/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shivamrai15%2Faether/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shivamrai15","download_url":"https://codeload.github.com/Shivamrai15/aether/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shivamrai15%2Faether/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273886639,"owners_count":25185509,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["langchain","langchain-js","nextjs","nextjs15","postgresql","prisma","prisma-orm","tailwindcss"],"created_at":"2025-03-21T19:20:08.623Z","updated_at":"2025-09-06T09:44:57.627Z","avatar_url":"https://github.com/Shivamrai15.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js AI Chatbot with LangChain, Prisma, and PostgreSQL\n\n## Overview\n\nThis project is a locally hosted AI chatbot built using Next.js, Prisma ORM, PostgreSQL, and LangChain. It leverages Ollama to run locally downloaded Large Language Models (LLMs) and provides an intuitive user interface. The chatbot also stores previous messages for a persistent conversation history.\n\n## Features\n\n- **Locally Hosted LLMs**: Uses Ollama to run LLMs without external API calls.\n- **Chat Interface**: A clean and interactive UI built with Next.js.\n- **Message Persistence**: Stores past chat messages in a PostgreSQL database using Prisma ORM.\n- **LangChain Integration**: Efficiently manages prompts and responses for seamless conversation flow.\n- **Fast and Secure**: Runs entirely on your local machine, ensuring privacy and security.\n\n## Tech Stack\n\n- **Frontend**: Next.js (React-based framework)\n- **Backend**: Next.js API routes\n- **Database**: PostgreSQL\n- **ORM**: Prisma\n- **AI Processing**: LangChain \u0026 Ollama\n\n## Getting Started\n\n### Prerequisites\n\nEnsure you have the following installed:\n\n- Node.js (\u003e= 18)\n- PostgreSQL\n- Ollama (for running local LLMs)\n\n### Installation\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/Shivamrai15/aether.git\n   cd aether\n   ```\n2. **Install dependencies:**\n   ```bash\n   npm install\n   ```\n3. **Set up the database:**\n    - Create a PostgreSQL database.\n    - Copy the `.env.example` file to `.env.local` and update the database URL:\n        ```env\n        DATABASE_URL=\"postgresql://user:password@localhost:5432/your_database\"\n        ```\n    - Run Prisma migrations:\n        ```bash\n        npx prisma migrate dev --name init\n        ```\n    - Run Prisma push:\n     ```bash\n     npx prisma db push\n     ```\n4. **Start the Ollama server:**\n   ```bash\n   ollama run model_name\n   ```\n5. **Run the application:**\n   ```bash\n   npm run dev\n   ```\n\n## Usage\n\n- Open your browser and navigate to `http://localhost:3000`.\n- Interact with the chatbot and see your message history persist.\n\n## Contributing\n\nFeel free to submit issues or pull requests to improve the project.\n\n## License\n\nThis project is licensed under the MIT License.\n\n## Acknowledgments\n\n- [Next.js](https://nextjs.org/)\n- [TailwindCSS](https://tailwindcss.com/)\n- [Prisma](https://www.prisma.io/)\n- [PostgreSQL](https://www.postgresql.org/)\n- [LangChain](https://www.langchain.com/)\n- [Ollama](https://ollama.ai/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivamrai15%2Faether","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshivamrai15%2Faether","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivamrai15%2Faether/lists"}