{"id":50737658,"url":"https://github.com/jeancarlobarrios/pi-context-hub","last_synced_at":"2026-06-10T15:02:01.003Z","repository":{"id":360342091,"uuid":"1249716545","full_name":"JeancarloBarrios/pi-context-hub","owner":"JeancarloBarrios","description":"Pi extension wrapping Context Hub (@aisuite/chub) for current API and SDK docs","archived":false,"fork":false,"pushed_at":"2026-05-26T01:43:25.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-26T03:27:59.766Z","etag":null,"topics":["api-docs","chub","coding-agent","context-hub","llm","pi-coding-agent","pi-extension","pi-package","sdk-docs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/pi-context-hub","language":"TypeScript","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/JeancarloBarrios.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":"2026-05-26T01:27:36.000Z","updated_at":"2026-05-26T01:43:29.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/JeancarloBarrios/pi-context-hub","commit_stats":null,"previous_names":["jeancarlobarrios/pi-context-hub"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/JeancarloBarrios/pi-context-hub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeancarloBarrios%2Fpi-context-hub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeancarloBarrios%2Fpi-context-hub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeancarloBarrios%2Fpi-context-hub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeancarloBarrios%2Fpi-context-hub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JeancarloBarrios","download_url":"https://codeload.github.com/JeancarloBarrios/pi-context-hub/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeancarloBarrios%2Fpi-context-hub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34157453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":["api-docs","chub","coding-agent","context-hub","llm","pi-coding-agent","pi-extension","pi-package","sdk-docs"],"created_at":"2026-06-10T15:01:59.290Z","updated_at":"2026-06-10T15:02:00.982Z","avatar_url":"https://github.com/JeancarloBarrios.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pi-context-hub\n\n[![npm version](https://img.shields.io/npm/v/pi-context-hub.svg)](https://www.npmjs.com/package/pi-context-hub)\n[![pi package](https://img.shields.io/badge/pi-package-purple)](https://pi.dev/packages/pi-context-hub)\n[![GitHub](https://img.shields.io/badge/GitHub-JeancarloBarrios%2Fpi--context--hub-black?logo=github)](https://github.com/JeancarloBarrios/pi-context-hub)\n\nPi extension wrapping [Context Hub](https://github.com/andrewyng/context-hub) (`@aisuite/chub`) so Pi can search and fetch current API/SDK docs without going through generic bash or MCP.\n\n## Install\n\nFrom npm:\n\n```bash\npi install npm:pi-context-hub\n```\n\nFrom GitHub:\n\n```bash\npi install git:github.com/JeancarloBarrios/pi-context-hub\n```\n\nTry without installing permanently:\n\n```bash\npi -e npm:pi-context-hub\n```\n\n## What it adds to Pi\n\nTools available to the agent:\n\n- `chub_search` — search Context Hub docs and skills.\n- `chub_get` — fetch a doc/skill by ID, language, version, specific file, or full entry.\n- `chub_annotate` — manage local persistent annotations.\n- `chub_feedback` — optionally send non-sensitive up/down doc feedback.\n\nManual command:\n\n```text\n/chub search openai\n/chub get openai/chat --lang py\n```\n\nIt also bundles a `get-api-docs` skill so Pi is more likely to fetch current docs before writing code against third-party APIs, SDKs, frameworks, or libraries.\n\n## Example prompts\n\n```text\nUse Context Hub docs and implement Stripe Checkout in TypeScript.\n```\n\n```text\nSearch current OpenAI Python SDK docs before writing the integration.\n```\n\n```text\nUse current LangGraph docs before changing this workflow.\n```\n\n## Local development\n\n```bash\ngit clone https://github.com/JeancarloBarrios/pi-context-hub.git\ncd pi-context-hub\nnpm install\npi -e .\n```\n\nPackage validation:\n\n```bash\nnpx -p typescript tsc --noEmit --module NodeNext --moduleResolution NodeNext --target ES2022 --skipLibCheck extensions/context-hub.ts\nnpm pack --dry-run\n```\n\n## Chub binary resolution\n\nBy default the extension runs the package-local `@aisuite/chub` binary with Node, so it does not depend on a global `chub` on `PATH`.\n\nOverrides:\n\n- `PI_CONTEXT_HUB_CHUB_BIN=/absolute/path/to/chub` — run a specific executable.\n- `PI_CONTEXT_HUB_ALLOW_GLOBAL_CHUB=1` — explicitly allow fallback to `chub` from `PATH` if package-local resolution fails.\n\n## Security notes\n\n`chub_annotate` stores local notes under Context Hub's normal local config/cache area. Do not put secrets, private code, credentials, or sensitive architecture details in annotations or feedback.\n\n`chub_feedback` sends feedback to Context Hub maintainers. Ask the user before sending feedback unless they explicitly requested it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeancarlobarrios%2Fpi-context-hub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeancarlobarrios%2Fpi-context-hub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeancarlobarrios%2Fpi-context-hub/lists"}