{"id":34836933,"url":"https://github.com/rodrigogs/gpt-query","last_synced_at":"2026-05-21T20:08:13.469Z","repository":{"id":264405261,"uuid":"893282357","full_name":"rodrigogs/gpt-query","owner":"rodrigogs","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-24T03:25:24.000Z","size":109,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-27T01:39:51.076Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rodrigogs.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-11-24T02:29:04.000Z","updated_at":"2024-11-27T12:18:58.000Z","dependencies_parsed_at":"2024-11-24T04:01:26.334Z","dependency_job_id":null,"html_url":"https://github.com/rodrigogs/gpt-query","commit_stats":null,"previous_names":["rodrigogs/gpt-query"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rodrigogs/gpt-query","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigogs%2Fgpt-query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigogs%2Fgpt-query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigogs%2Fgpt-query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigogs%2Fgpt-query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodrigogs","download_url":"https://codeload.github.com/rodrigogs/gpt-query/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigogs%2Fgpt-query/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33313409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T12:23:38.849Z","status":"ssl_error","status_checked_at":"2026-05-21T12:22:11.673Z","response_time":62,"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":"2025-12-25T16:06:23.762Z","updated_at":"2026-05-21T20:08:13.427Z","avatar_url":"https://github.com/rodrigogs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# GPT Query\n\nGPT Query is a tool designed to enhance OpenAI models with the capability to search for content on the internet using the Google API and web scraping.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Scripts](#scripts)\n- [Development](#development)\n- [Dependencies](#dependencies)\n- [License](#license)\n\n## Installation\n\nUse npm or yarn to install the package and its dependencies:\n\n```bash\nnpm install gpt-query\n```\n\n## Usage\n\n### Importing the Library\n\nDepending on your environment:\n\nFor ES Modules:\n```javascript\nimport GPTQuery from 'gpt-query'\n```\n\nFor CommonJS:\n```javascript\nconst GPTQuery = require('gpt-query')\n```\n\n## Scripts\n\nThis project provides several npm scripts for development and production tasks:\n\n- **Build Scripts:**\n  - `npm run build:cjs`: Build CommonJS modules.\n  - `npm run build:esm`: Build ES Modules.\n  - `npm run build:types`: Generate type definitions.\n  - `npm run build`: Run all build tasks.\n\n- **Development Scripts:**\n  - `npm run dev`: Run the development server using `tsx`.\n  - `npm run watch`: Watch for file changes and recompile.\n\n- **Linting:**\n  - `npm run lint`: Check for linting errors using Biome.\n  - `npm run lint:fix`: Fix linting issues automatically.\n  - `npm run lint:fix:unsafe`: Fix linting issues, including unsafe fixes.\n\n- **Testing:**\n  - `npm run test`: Run all tests with Jest.\n\n- **Cleaning:**\n  - `npm run clean`: Remove all generated files.\n\n## Development\n\nTo contribute or develop this project locally:\n\n1. Clone the repository.\n2. Install dependencies:\n   ```bash\n   npm install\n   ```\n3. Run the development server:\n   ```bash\n   npm run dev\n   ```\n4. Build the project:\n   ```bash\n   npm run build\n   ```\n\n### Running Tests\n\nEnsure your changes don't break functionality by running tests:\n\n```bash\nnpm run test\n```\n\n## Dependencies\n\n### Production\n\n- **axios**: HTTP client for making API requests.\n- **cheerio**: Scraping and parsing HTML.\n- **dotenv**: Environment variable management.\n- **openai**: Integration with OpenAI GPT.\n\n### Development\n\n- **@biomejs/biome**: Linting tool.\n- **@types/jest**: TypeScript definitions for Jest.\n- **jest**: Testing framework.\n- **tsx**: TypeScript execution.\n- **ts-mockito**: Mocking library for TypeScript.\n- **typescript**: TypeScript language support.\n\n## License\n\nThis project is licensed under the ISC License. See the `LICENSE` file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigogs%2Fgpt-query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodrigogs%2Fgpt-query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigogs%2Fgpt-query/lists"}