{"id":17740481,"url":"https://github.com/muneerahmed03/mindr-bot","last_synced_at":"2026-02-04T15:07:02.508Z","repository":{"id":254069895,"uuid":"841069465","full_name":"MuneerAhmed03/mindr-bot","owner":"MuneerAhmed03","description":"Save and retrieve any thought, idea or memory just by texting.","archived":false,"fork":false,"pushed_at":"2024-12-10T07:46:55.000Z","size":246,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T00:17:11.399Z","etag":null,"topics":["cloudflare-workers","honojs","postgresql","supabase","telegram","telegram-bot","vectors","workers-ai"],"latest_commit_sha":null,"homepage":"https://mindr.live","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/MuneerAhmed03.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-11T14:52:25.000Z","updated_at":"2024-12-10T07:46:58.000Z","dependencies_parsed_at":"2024-09-17T09:54:42.395Z","dependency_job_id":"82125e58-ba68-4d44-9d9c-aeb10d6ab3fa","html_url":"https://github.com/MuneerAhmed03/mindr-bot","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"db2fb86263901ccf5e58d01d75e83d59b435e93f"},"previous_names":["muneerahmed03/mindr"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuneerAhmed03%2Fmindr-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuneerAhmed03%2Fmindr-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuneerAhmed03%2Fmindr-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuneerAhmed03%2Fmindr-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MuneerAhmed03","download_url":"https://codeload.github.com/MuneerAhmed03/mindr-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253655201,"owners_count":21943060,"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":["cloudflare-workers","honojs","postgresql","supabase","telegram","telegram-bot","vectors","workers-ai"],"created_at":"2024-10-26T03:06:07.222Z","updated_at":"2026-02-04T15:07:02.456Z","avatar_url":"https://github.com/MuneerAhmed03.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [MindR Telegram Bot](https://mindr.live/)\r\n\r\n![open-graph](https://github.com/user-attachments/assets/58aca34f-9cfd-48c0-a0d0-acfd6973f13d)\r\n\r\nMindR is a RAG-based (Retrieval-Augmented Generation) Telegram bot that allows users to store and retrieve text messages easily. Users can send any text message to the chat and later retrieve it using the `/ask` command followed by a query.\r\n\r\n## Snapshots\r\n\r\n![mindr](https://github.com/user-attachments/assets/1fdfa7bc-4309-43d2-b4b4-b7afddfa990b)\r\n\r\n## Features\r\n\r\n- Store text messages in a chat\r\n- Retrieve messages using natural language queries\r\n- Built with modern, efficient technologies\r\n\r\n## Tech Stack\r\n\r\n- **Runtime**: Bun\r\n- **Framework**: Hono.js\r\n- **Deployment**: Cloudflare Workers\r\n- **Database**: Supabase PostgreSQL\r\n- **AI**: Workers AI for embeddings and response generation\r\n\r\n## Setup Instructions\r\n\r\n### Prerequisites\r\n\r\n- [Bun](https://bun.sh/) installed on your system\r\n- A [Cloudflare](https://www.cloudflare.com/) account\r\n- A [Supabase](https://supabase.com/) account\r\n- A [Telegram Bot Token](https://core.telegram.org/bots#how-do-i-create-a-bot)\r\n\r\n### Steps\r\n\r\n1. Clone the repository:\r\n\r\n   ```\r\n   git clone https://github.com/yourusername/mindr-telegram-bot.git\r\n   cd mindr-telegram-bot\r\n   ```\r\n\r\n2. Install dependencies:\r\n\r\n   ```\r\n   bun install\r\n   ```\r\n\r\n3. Set up the Supabase database locally:\r\n   ```\r\n   bunx supabase init\r\n   ```\r\n\r\n- Make sure Docker is running.\r\n\r\n  ```\r\n  bunx supabase start\r\n\r\n  bunx supabase migrations up\r\n\r\n  ```\r\n\r\n- Go to your supabase project dashboard and run this query in sql editor:\r\n\r\n  ```\r\n  select vault.create_secret(\r\n      'YOUR_WORKERS_URL',\r\n      'workers_url'\r\n  );\r\n\r\n  ```\r\n\r\n4.  Set up environment variables:\r\n    Create a `.dev.vars` file in the root directory and add the following:\r\n\r\n    ````\r\n\r\n        TELEGRAM_BOT_TOKEN=your_telegram_bot_token\r\n        SUPABASE_URL=your_supabase_project_url\r\n        SUPABASE_KEY=your_supabase_api_key\r\n\r\n        ```\r\n\r\n    ````\r\n\r\n5.  Deploy to Cloudflare Workers:\r\n\r\n    ```\r\n\r\n    bun run deploy\r\n\r\n    ```\r\n\r\n6.  Set up the Telegram bot webhook:\r\n    Replace `YOUR_WORKER_URL` with your Cloudflare Worker URL\r\n\r\n    ````\r\n\r\n        curl -F \"url=YOUR_WORKER_URL\" https://api.telegram.org/bot\u003cYOUR_BOT_TOKEN\u003e/setWebhook\r\n\r\n        ```\r\n    ````\r\n\r\n## Usage\r\n\r\n1. Start a chat with your bot on Telegram\r\n2. Send any text message to store it\r\n3. Use the `/ask` command followed by your query to retrieve relevant messages\r\n   Example: `/ask What did I say about project deadlines?`\r\n\r\n## Contributing\r\n\r\nContributions are welcome! Please feel free to submit a Pull Request.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuneerahmed03%2Fmindr-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuneerahmed03%2Fmindr-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuneerahmed03%2Fmindr-bot/lists"}