{"id":31758806,"url":"https://github.com/booleanhunter/redish","last_synced_at":"2025-10-09T20:50:47.591Z","repository":{"id":314610344,"uuid":"1056063051","full_name":"booleanhunter/Redish","owner":"booleanhunter","description":"Shopping AI assistant with recipe tools, product search, and semantic caching for grocery e-commerce.","archived":false,"fork":false,"pushed_at":"2025-10-05T10:44:20.000Z","size":8377,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-05T11:37:40.960Z","etag":null,"topics":["langchain","langgraph","langgraph-js","openai","redis"],"latest_commit_sha":null,"homepage":"https://tryredish.vercel.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/booleanhunter.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-13T10:06:42.000Z","updated_at":"2025-10-05T10:28:23.000Z","dependencies_parsed_at":"2025-10-05T11:29:04.871Z","dependency_job_id":"53583d6d-3a64-4012-8be2-7cefded3c98b","html_url":"https://github.com/booleanhunter/Redish","commit_stats":null,"previous_names":["booleanhunter/redish"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/booleanhunter/Redish","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/booleanhunter%2FRedish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/booleanhunter%2FRedish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/booleanhunter%2FRedish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/booleanhunter%2FRedish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/booleanhunter","download_url":"https://codeload.github.com/booleanhunter/Redish/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/booleanhunter%2FRedish/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001962,"owners_count":26083259,"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-10-09T02:00:07.460Z","response_time":59,"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","langgraph","langgraph-js","openai","redis"],"created_at":"2025-10-09T20:50:46.417Z","updated_at":"2025-10-09T20:50:47.585Z","avatar_url":"https://github.com/booleanhunter.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🛒 Redish\n\n**Redis-powered grocery e-commerce with intelligent shopping assistance.**\n\nRedish is an AI-powered grocery shopping platform that combines Redis's speed with LangGraph's intelligent workflow orchestration. Get personalized recipe recommendations, smart product suggestions, and lightning-fast responses through semantic caching.\n\n## App screenshots\n\n![App home page](./screenshots/home-screen.png)\n\n---\n\n## Product Features\n\n- **Smart Grocery Shopping**: AI-powered assistant helps you find ingredients, discover recipes, and manage your cart\n- **Product Search**: Both text and vector-based search across grocery products with embeddings\n- **Recipe Intelligence**: Get ingredient lists with suggested products for any recipe\n- **Cart Management**: Add, view, and manage shopping cart items\n\n---\n\n## Tech Stack\n\n- **Node.js** + **Express** (Backend API)\n- **Redis** (Product store, conversational history, and semantic caching with LangCache)\n- **LangGraph** (AI workflow orchestration)\n- **OpenAI API** (GPT-4 for intelligent responses)\n- **HTML + CSS + Vanilla JS** (Frontend)\n\n---\n\n## Getting Started\n\n### Prerequisites\n\n- **OpenAI API Key**: [Create an API key](https://platform.openai.com/account/api-keys)\n- **Redis LangCache API**: [Get LangCache credentials](https://redis.io/langcache/)\n\n### Clone this repository\n\n```bash\ngit clone https://github.com/redis-developer/Redish.git\ncd Redish\n```\n\n### Configure environment variables\n\nCreate a `.env` file at the root:\n\n```bash\nAPP_NAME=\"Redish\"\nSERVER_PORT=3000\n\nOPENAI_API_KEY=your_openai_api_key\n\nREDIS_URL=your_redis_connection_string\n\nLANGCACHE_API_KEY=\"your_langcache_api_key\"\nLANGCACHE_API_BASE_URL=\"your_langcache_api_base_url\"\nLANGCACHE_CACHE_ID=\"your_langcache_cache_id\"\n\nMODEL_NAME=\"gpt-4o-mini\"\n\n# For tracing with Langsmith\nLANGSMITH_TRACING=\"true\"\nLANGSMITH_ENDPOINT=\"your_langsmith_endpoint\"\nLANGSMITH_API_KEY=\"your_langsmith_api_key\"\nLANGSMITH_PROJECT=\"your_langsmith_project\"\n\n```\n\n📝 Make sure to replace these placeholders with your real values before running the app.\n\n### Option 1: Manual installation\n\n#### ✅ Prerequisites\n\n- **Node.js (v18 or higher)**: [Download \u0026 Install Node.js](https://nodejs.org/)\n- **Redis**: You can either:\n  - Install Redis locally: [Redis installation guide](https://redis.io/docs/getting-started/installation/)\n  - Use Docker: `docker run --name redish-redis -p 6379:6379 redis:8.0`\n  - Use [Redis Cloud](https://redis.io) (no installation required)\n\n#### ✅ Setup\n\n1. Install dependencies:\n   ```bash\n   npm install\n   ```\n\n2. Load sample grocery data:\n   ```bash\n   npm run load-products\n   ```\n\n3. Start the server:\n   ```bash\n   npm start\n   ```\n\n### Option 2: 🐳 Run with Docker Compose\n\nSkip manual setup and run everything using Docker:\n\n```bash\ndocker compose up\n```\n\nTo stop the containers:\n\n```bash\ndocker compose down -v\n```\n\n### Access the app\n\nVisit http://localhost:3000 in your browser (or use the port specified in `.env`).\n\n---\n\n## AI Features\n\n- **Recipe Ingredients**: Ask for ingredients for any recipe and get suggested products\n- **Product Search**: Find products by name, category, or description\n- **Smart Recommendations**: AI suggests alternatives and complementary items\n- **Cart Management**: Add, remove, and view cart items through natural conversation\n\n## Technical features\n\n- **Semantic Cache**: Similar queries return instantly using Redis LangCache\n- **Vector Search**: Find products using AI-powered similarity search\n- **Redis as memory layer**: for fast data retrieval\n- **LangGraph Workflows**:  AI agent routing, tool selection\n- **Multi-tool Agent**: Recipe tools, search tools, cart tools, and knowledge tools\n\n---\n\n## Architecture\n\nThe grocery agent uses a LangGraph-powered AI agent that routes requests through specialized tools.\n\n1. **Cache Check**: First checks Redis semantic cache for similar queries\n2. **AI Agent**: Routes to appropriate tools based on request type\n3. **Specialized Tools**: Recipe ingredients, product search, cart operations, direct answers\n4. **Services Layer**: Product, cart, and chat services\n5. **Redis Storage**: Vector embeddings, semantic cache, and session data\n\n![Technical architecture](./technical-diagrams/architecture-overview.png)\n\n![Technical architecture - expanded](./technical-diagrams/mermaid-flowchart.svg)\n\n### Project architecture\n\n```\nservices/\n  ├── products/                # Product Business Component\n  │   ├── api/                    # REST API endpoints\n  │   ├── domain/                 # Business logic\n  │   └── data/                   # Data access layer\n  ├── cart/                    # Cart Business Component\n  │   ├── api/\n  │   ├── domain/\n  │   └── data/\n  ├──chat/                     # Chat/Cache Business Component\n  │   ├── api/\n  │   ├── domain/\n  │   └── data/\n  ├── ai/grocery-ai-agent/     # AI Agent\n  │   ├── tools.js                # API/Interface Layer\n  │   ├── nodes.js                # Agent Logic\n  │   ├── index.js                # Orchestration\n  │   └── state/                  # Data Access\n```\n---\n\n## API Endpoints\n\n- `POST /api/chat` - Main chat interface for AI shopping assistant\n- `GET /api/products/search` - Search products with text/vector similarity\n- `POST /api/cart/add` - Add items to shopping cart\n- `GET /api/cart` - View cart contents\n- `DELETE /api/cart` - Clear cart\n\n---\n\n## 🤝 Contributing\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n---\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n\n## 🐞 Reporting Issues\n\nIf you find a bug or have a feature request, [open an issue](https://github.com/redis-developer/Redish/issues).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbooleanhunter%2Fredish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbooleanhunter%2Fredish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbooleanhunter%2Fredish/lists"}