[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112501":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":14,"stars30d":15,"stars90d":14,"forks30d":14,"starsTrendScore":14,"compositeScore":16,"rankGlobal":9,"rankLanguage":9,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":9,"pushedAt":9,"updatedAt":22,"readmeContent":23,"aiSummary":24,"trendingCount":14,"starSnapshotCount":14,"syncStatus":25,"lastSyncTime":26,"discoverSource":27},112501,"mate","lawandrorder\u002Fmate","lawandrorder","Mate, your mate while you shop. A text-first shopping agent for cashback, personal discount codes, package tracking and price-drop alerts. Includes a starter agent, web chat, original icon set and docs. mate.fm ",null,"Python",140,4,12,0,3,42.4,"MIT License",false,"main",true,[],"2026-11-24 04:01:32","# Mate\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fbrand\u002Flogo.svg\" width=\"88\" height=\"88\" alt=\"Mate\" \u002F>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\u003Cstrong>Your mate while you shop.\u003C\u002Fstrong>\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  A shopping agent you text before you shop.\u003Cbr \u002F>\n  Live product: \u003Ca href=\"https:\u002F\u002Fmate.fm\u002F\">mate.fm\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fsocial-preview.png\" alt=\"Mate — Your mate while you shop. mate.fm\" width=\"640\" \u002F>\n\u003C\u002Fp>\n\nThis repository is the open-source **starter** for Mate: original icons in the mate.fm palette, a small runnable text agent, a web chat demo, docs for GitHub Pages, and clearly labeled demo providers. It is not the production service, and it is not connected to Mate’s live merchant network.\n\n---\n\n## What Mate is\n\nFrom [mate.fm](https:\u002F\u002Fmate.fm\u002F):\n\n> Your shopping agent with 200k merchant partnerships. Text Mate before you shop to save.\nCashback and codes are offered on request, wherever you shop online. The site lists, among others: Nature INT, NIKE, The New Yorker, Walmart, Dell, Cheerble, SEMrush, Verso, Casper, Slice, Charity: Water, MyFonts.\n\nmate.fm marks its illustrated conversations as fictional. Example codes, deliveries and cashback on the marketing site — and every demo reply in this starter — are **not** real offers.\n\nGet early access on [mate.fm](https:\u002F\u002Fmate.fm\u002F). Terms and privacy for the live product are published at [joincheckmate.com\u002Fterms-conditions](https:\u002F\u002Fjoincheckmate.com\u002Fterms-conditions) and [joincheckmate.com\u002Fprivacy-policy](https:\u002F\u002Fjoincheckmate.com\u002Fprivacy-policy).\n\n---\n\n## Features\n\nText Mate before you shop. Here’s what you get back — copied from the product site, with the original icons in this repo.\n\n\u003Ctable>\n  \u003Ctr>\n    \u003Ctd width=\"56\">\u003Cimg src=\"assets\u002Ficons\u002Fsvg\u002Fcashback.svg\" width=\"40\" alt=\"\" \u002F>\u003C\u002Ftd>\n    \u003Ctd>\n      \u003Cstrong>01 · Cashback when you text first\u003C\u002Fstrong>\u003Cbr \u002F>\n      Text Mate before you buy. It sends you the link that tracks your order, and the cashback lands in your balance.\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd>\u003Cimg src=\"assets\u002Ficons\u002Fsvg\u002Fcoupon.svg\" width=\"40\" alt=\"\" \u002F>\u003C\u002Ftd>\n    \u003Ctd>\n      \u003Cstrong>02 · Discount codes generated for you\u003C\u002Fstrong>\u003Cbr \u002F>\n      Tell Mate where you’re shopping. It gets you a discount code made just for you.\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd>\u003Cimg src=\"assets\u002Ficons\u002Fsvg\u002Fpackage.svg\" width=\"40\" alt=\"\" \u002F>\u003C\u002Ftd>\n    \u003Ctd>\n      \u003Cstrong>03 · Every package, tracked\u003C\u002Fstrong>\u003Cbr \u002F>\n      A text when it ships and when it’s at your door. Mate can tell your room-mate too.\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd>\u003Cimg src=\"assets\u002Ficons\u002Fsvg\u002Fprice-drop.svg\" width=\"40\" alt=\"\" \u002F>\u003C\u002Ftd>\n    \u003Ctd>\n      \u003Cstrong>04 · Price drop alerts\u003C\u002Fstrong>\u003Cbr \u002F>\n      Send Mate something you’re eyeing. It watches the price and texts you the moment it drops.\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n\u003C\u002Ftable>\n\nThe starter answers the same kinds of texts with **demo** data, always labeled `[demo]`.\n\n---\n\n## How it works\n\n```mermaid\nflowchart LR\n  A[Shopper text\u003Cbr\u002F>web chat, CLI, or SMS] --> B[Intent parser]\n  B --> C{Intent}\n  C -->|cashback at store| D[Cashback provider]\n  C -->|code for store| E[Codes provider]\n  C -->|track number| F[Tracking stub]\n  C -->|watch url| G[Price watcher]\n  C -->|unknown| H[Optional OpenRouter]\n  D --> I[Reply]\n  E --> I\n  F --> I\n  G --> I\n  H --> I\n  I --> A\n```\n\nIn production, those providers talk to Mate’s merchant network. In this repo they are **demo implementations**: placeholder links, `DEMO-…` codes, scripted shipment statuses, and a local price-watch job that does not scrape live product pages.\n\nAn optional OpenRouter LLM fallback (via `OPENROUTER_API_KEY`) only runs when the parser does not recognize an intent. No API keys are hardcoded.\n\n---\n\n## Quickstart\n\nPython 3.10 or newer. No third-party packages are required at runtime.\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FYOUR-USERNAME\u002Fmate.git\ncd mate\npython -m mate chat \"cashback at Demo Shop\"\npython -m mate serve\n```\n\nThen open [http:\u002F\u002F127.0.0.1:8080](http:\u002F\u002F127.0.0.1:8080).\n\nUseful commands:\n\n```bash\npython -m mate help\npython -m mate \"code for Demo Shop\"\npython -m mate \"track DEMO-123456\"\npython -m mate \"watch https:\u002F\u002Fshop.example\u002Fnimbus-lamp\"\npython -m mate watch --simulate-drop\npython -m unittest discover -s tests -v\n```\n\nDocker:\n\n```bash\ndocker build -t mate-starter .\ndocker run --rm -p 8080:8080 mate-starter\n```\n\n---\n\n## Setup and configuration\n\nCopy [`.env.example`](.env.example) and export whatever you need. All settings are optional for the local demo.\n\n| Variable | Default | Purpose |\n| --- | --- | --- |\n| `MATE_HOST` | `127.0.0.1` | Bind address for `python -m mate serve` |\n| `MATE_PORT` | `8080` | Port |\n| `MATE_DATA_DIR` | `data\u002F` | JSON store for demo wallets, packages, watches |\n| `OPENROUTER_API_KEY` | unset | Enables LLM fallback for unrecognized messages |\n| `MATE_MODEL` | `openrouter\u002Fauto` | OpenRouter model id |\n| `MATE_HTTP_REFERER` | `https:\u002F\u002Fmate.fm` | Sent as `HTTP-Referer` to OpenRouter |\n| `TWILIO_AUTH_TOKEN` | unset | Used only if signature checks are on |\n| `TWILIO_VALIDATE_SIGNATURE` | `0` | Set to `1` to require a valid `X-Twilio-Signature` |\n\nPoint a Twilio number’s messaging webhook at `POST \u002Fwebhooks\u002Ftwilio`. The adapter is a stub: it reads `Body` and `From`, replies with TwiML, and never sends a real SMS by itself.\n\n---\n\n## Repository layout\n\n```\nmate\u002F                 Python package (agent, server, providers, web chat)\ntests\u002F                unittest suite\ndocs\u002F                 GitHub Pages landing site, in the mate.fm style\nassets\u002Fbrand\u002F         Logo, app icon, favicon\nassets\u002Ficons\u002F         50 original SVG icons + PNG 64\u002F128\u002F512 + preview sheet\nassets\u002Fsocial-preview.png\ntools\u002Fgenerate_assets.py\n```\n\nThe icon catalog, with names, lives in [`assets\u002Ficons\u002FREADME.md`](assets\u002Ficons\u002FREADME.md). Preview:\n\n![Mate icon set](assets\u002Ficons\u002Fpreview.png)\n\n---\n\n## Roadmap\n\n- Swap demo providers for live Mate network adapters\n- Persist shopper sessions beyond the local JSON store\n- Richer tracking (carrier webhooks) behind the same intent interface\n- A real price fetcher behind `PriceProvider`, still clearly separated from the demo\n- iMessage \u002F WhatsApp-style delivery in production stays on mate.fm; this starter keeps SMS and web\n\n---\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) and the [Code of Conduct](CODE_OF_CONDUCT.md). Security reports go through [SECURITY.md](SECURITY.md).\n\n## License\n\n[MIT](LICENSE)\n\nProduct copy and the public store count above are taken from [mate.fm](https:\u002F\u002Fmate.fm\u002F). The logo mark matches the public mark at `https:\u002F\u002Fmate.fm\u002Ficon.svg`. Icons in `assets\u002Ficons\u002F` are original. This repo does not include third-party merchant logos.\n\n\n","Mate 是一个面向电商购物场景的轻量级文本交互式购物助手开源启动模板。它提供现金返还查询、个性化折扣码生成、包裹物流追踪和商品降价提醒四大核心功能，基于意图解析实现文本驱动的轻量服务响应，并附带可运行的命令行代理、Web 聊天界面、配套图标集与文档。项目采用 Python 实现，定位为开发者快速构建自有购物助手的参考基线，适用于电商工具原型开发、AI 购物插件集成及对话式零售服务教学演示等场景。",2,"2026-11-15 04:37:00","CREATED_QUERY"]