# performaisearch

> Utility package including AI search for based on your json data

Latest version **1.0.0** (published 2024-03-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install performaisearch
pnpm add performaisearch
yarn add performaisearch
bun add performaisearch
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2024-03-25 |
| First published | 2024-03-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | super nived |
| Maintainers | supernived |
| Keywords | AI, search, read file |

## Links

- npm: https://www.npmjs.com/package/performaisearch
- Repository: https://github.com/username/performaisearch
- Homepage: https://github.com/username/performaisearch#readme
- Issues: https://github.com/username/performaisearch/issues
- npm.io page: https://npm.io/package/performaisearch

## Dependencies (1)

- [node-fetch](https://npm.io/package/node-fetch.md) ^3.3.2

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2024-03-25

## README

# performaisearch

A utility package to perform AI-powered searches using OpenAI's API, based on your JSON data.

## Description

The `performaisearch` function connects to the OpenAI API to perform searches or generate responses based on a user's input and predefined JSON data. This can be used to integrate AI-driven search capabilities into your applications.

## Installation

To use `performaisearch` in your project, install it via npm:

```
npm install performaisearch

```

## Usage 

```

import { performaisearch } from 'performaisearch';
const userInput = 'Search Query';
const jsonData = {
    "products": [
        {"name": "Laptop", "category": "Electronics"},
        {"name": "Shirt", "category": "Apparel"}
    ]
};
const apiKey = 'your-openai-api-key';  // Replace with your actual OpenAI API key
const type = 'gpt-3.5-turbo';

performaisearch(userInput, jsonData, apiKey, type)
    .then(response => {
        console.log('AI response:', response);
    })
    .catch(error => {
        console.error('Search error:', error);
    });
```

---
_Source: https://npm.io/package/performaisearch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
