{"id":48337036,"url":"https://github.com/mathsgod/hktv-cli","last_synced_at":"2026-04-06T04:01:36.831Z","repository":{"id":348169203,"uuid":"1196746121","full_name":"mathsgod/hktv-cli","owner":"mathsgod","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-01T09:47:12.000Z","size":95,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-04T02:49:40.177Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/mathsgod.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-31T02:09:18.000Z","updated_at":"2026-04-01T09:47:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mathsgod/hktv-cli","commit_stats":null,"previous_names":["mathsgod/hktv-cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mathsgod/hktv-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fhktv-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fhktv-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fhktv-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fhktv-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathsgod","download_url":"https://codeload.github.com/mathsgod/hktv-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fhktv-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31422898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T02:22:46.605Z","status":"ssl_error","status_checked_at":"2026-04-05T02:22:33.263Z","response_time":75,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-04-05T03:00:21.206Z","updated_at":"2026-04-05T03:00:39.071Z","avatar_url":"https://github.com/mathsgod.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hktv-cli\n\n**CLI for [HKTVmall](https://www.hktvmall.com) — built for humans and AI agents.**\n\nA command-line tool for searching products and checking prices on HKTVmall, Hong Kong's leading e-commerce platform.\n\n## Installation\n\n```bash\nnpm install -g hktv-cli\n```\n\n## AI Agent Skills\n\nThis repo ships Agent Skills (`SKILL.md` files) for every command — ready to use with GitHub Copilot, Cursor, and any MCP-compatible AI agent.\n\n```bash\n# Install all hktv skills at once\nnpx skills add https://github.com/mathsgod/hktv-cli\n\n# Or pick only what you need\nnpx skills add https://github.com/mathsgod/hktv-cli/tree/main/skills/hktv-search\n```\n\n## Usage\n\n```\nhktv [options] [command]\n```\n\n### Options\n\n| Option | Description |\n|--------|-------------|\n| `-V, --version` | Display version number |\n| `-h, --help` | Display help information |\n\n### Commands\n\n| Command | Description |\n|---------|-------------|\n| `search \u003cquery\u003e` | Search products on HKTVmall |\n| `price get \u003ccode\u003e` | Get product price history |\n\n## Search\n\nSearch for products on HKTVmall using Algolia search API.\n\n```bash\nhktv search \u003cquery\u003e\n```\n\n### Options\n\n| Option | Description |\n|--------|-------------|\n| `-p, --page \u003cpage\u003e` | Page number (default: `1`) |\n| `-n, --hits \u003cnumber\u003e` | Results per page (default: `60`) |\n| `-j, --json` | Output as JSON |\n| `-h, --help` | Display help information |\n\n### Examples\n\n```bash\n# Basic search\nhktv search 牛奶\n\n# Search page 2 with 20 results per page\nhktv search 牛奶 -p 2 -n 20\n\n# Output as JSON for scripting\nhktv search 牛奶 -j\n```\n\n## Price\n\nQuery historical price data for a product.\n\nThe `\u003ccode\u003e` is the product code (商品編號). You can find it in the `search` results — each product displays a `Code` field. For example:\n\n```\n$ hktv search 牛奶\n\nFound 60 results:\n\n1. Meiji 牛乳\n   Code: A1234567        \u003c-- Use this code\n   Price: HK$29.9\n   Link: https://www.hktvmall.com/...\n```\n\nThen use the code to check price history:\n\n```bash\nhktv price get \u003ccode\u003e\n```\n\n### Options\n\n| Option | Description |\n|--------|-------------|\n| `-j, --json` | Output as JSON |\n| `-h, --help` | Display help information |\n\n### Examples\n\n```bash\n# Get price history\nhktv price get A1234567\n\n# Output as JSON\nhktv price get A1234567 -j\n```\n\n### Output Fields\n\n- **Current price**: Latest recorded price in HKD\n- **Lowest price**: Historical minimum with date\n- **Highest price**: Historical maximum\n- **Average price**: Mean price over time\n- **Recent changes**: Last 10 price fluctuations\n\n## Options\n\n| Option | Description |\n|--------|-------------|\n| `--json` | Output results as JSON |\n\n## License\n\nISC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathsgod%2Fhktv-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathsgod%2Fhktv-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathsgod%2Fhktv-cli/lists"}