{"id":48433849,"url":"https://github.com/jarcelao/pi-exa-api","last_synced_at":"2026-04-28T20:00:59.153Z","repository":{"id":345474145,"uuid":"1186015303","full_name":"jarcelao/pi-exa-api","owner":"jarcelao","description":"Web search and content fetching for pi via the Exa API","archived":false,"fork":false,"pushed_at":"2026-04-23T17:01:13.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-23T18:36:33.643Z","etag":null,"topics":["exa","pi-package"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@jarcelao/pi-exa-api","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/jarcelao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-19T07:12:27.000Z","updated_at":"2026-04-23T17:01:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jarcelao/pi-exa-api","commit_stats":null,"previous_names":["jarcelao/pi-exa-search","jarcelao/pi-exa-api"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/jarcelao/pi-exa-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarcelao%2Fpi-exa-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarcelao%2Fpi-exa-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarcelao%2Fpi-exa-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarcelao%2Fpi-exa-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jarcelao","download_url":"https://codeload.github.com/jarcelao/pi-exa-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarcelao%2Fpi-exa-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32392581,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"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":["exa","pi-package"],"created_at":"2026-04-06T12:01:45.729Z","updated_at":"2026-04-28T20:00:59.148Z","avatar_url":"https://github.com/jarcelao.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pi-exa-api\n\nWeb search, content fetching, and code context for [pi](https://pi.dev) via the [Exa API](https://exa.ai/).\n\n## Installation\n\nInstall as a pi package:\n\n```bash\npi install npm:@jarcelao/pi-exa-api\n```\n\n\u003e [!NOTE]\n\u003e This extension is tested up to `pi-coding-agent` v0.70.6\n\n## Configuration\n\nSet your Exa API key as an environment variable before starting pi:\n\n```bash\nexport EXA_API_KEY=\"your-api-key-here\"\npi\n```\n\nOr add to your shell profile (`~/.bashrc`, `~/.zshrc`, etc.) for persistence.\n\n### Check Configuration\n\nRun the `/exa-status` command in pi to verify your API key is configured:\n\n```\n/exa-status\n```\n\n## Usage\n\n### Web Search\n\nThe agent can use `exa_search` to find information on the web:\n\n```\nSearch for recent developments in quantum computing\n```\n\n**Parameters:**\n\n- `query` (required) - Natural language search query\n- `contentType` (optional) - Type of content to retrieve:\n  - `highlights` (default) - Key excerpts from each result\n  - `text` - Full text content (may be truncated)\n  - `summary` - AI-generated summary\n  - `none` - Metadata only (title, URL, date, author)\n- `numResults` (optional) - Number of results (1-100, default: 10)\n\n### Fetch URL Content\n\nThe agent can use `exa_fetch` to extract content from a specific URL:\n\n```\nFetch the content from https://example.com/article\n```\n\n**Parameters:**\n\n- `url` (required) - URL to fetch\n- `contentType` (optional) - Type of content:\n  - `text` (default) - Full page text\n  - `highlights` - Key excerpts\n  - `summary` - AI-generated summary\n- `maxCharacters` (optional) - Maximum characters to return (1000-100000)\n\n### Code Context\n\nThe agent can use `exa_code_context` to find code snippets and examples from open source libraries and repositories:\n\n```\nFind examples of React hooks for state management\n```\n\nIt's ideal for understanding how libraries, frameworks, or programming concepts are implemented in practice.\n\n**Parameters:**\n\n- `query` (required) - Search query for code snippets and examples (1-2000 characters)\n- `tokensNum` (optional) - Token limit for the response:\n  - `\"dynamic\"` (default) - Automatically determine optimal response length\n  - `50-100000` - Specific number of tokens (5000 is a good default, use 10000 when more context is needed)\n\n## Development\n\n```bash\n# Install dependencies\nnpm install\n\n# Run tests\nnpm test\n\n# Run linting\nnpm run lint\n\n# Format code\nnpm run format\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjarcelao%2Fpi-exa-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjarcelao%2Fpi-exa-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjarcelao%2Fpi-exa-api/lists"}