
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
A TypeScript library designed to streamline queries and integrate with APIs like OpenAI GPT and others. The project is modular, making it simple to maintain and extend functionality.
A TypeScript library designed to streamline queries and integrate with APIs like OpenAI GPT and others. The project is modular, making it simple to maintain and extend functionality.
Use npm or yarn to install the package and its dependencies:
npm install gpt-query
Depending on your environment:
For ES Modules:
import GPTQuery from 'gpt-query'
For CommonJS:
const GPTQuery = require('gpt-query')
This project provides several npm scripts for development and production tasks:
Build Scripts:
npm run build:cjs: Build CommonJS modules.npm run build:esm: Build ES Modules.npm run build:types: Generate type definitions.npm run build: Run all build tasks.Development Scripts:
npm run dev: Run the development server using tsx.npm run watch: Watch for file changes and recompile.Linting:
npm run lint: Check for linting errors using Biome.npm run lint:fix: Fix linting issues automatically.npm run lint:fix:unsafe: Fix linting issues, including unsafe fixes.Testing:
npm run test: Run all tests with Jest.Cleaning:
npm run clean: Remove all generated files.To contribute or develop this project locally:
npm install
npm run dev
npm run build
Ensure your changes don't break functionality by running tests:
npm run test
This project is licensed under the ISC License. See the LICENSE file for more details.
FAQs
A TypeScript library designed to streamline queries and integrate with APIs like OpenAI GPT and others. The project is modular, making it simple to maintain and extend functionality.
The npm package gpt-query receives a total of 6 weekly downloads. As such, gpt-query popularity was classified as not popular.
We found that gpt-query demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.