open-index/open-npm huggingface dataset:
npm package: @shreyaans/superpowered-sdk
Description: TypeScript client for interacting with the [Superpowered AI](https://superpowered.ai/) API
Author: Shreyaan
Latest version: 0.0.2

# Superpowered API Client

This package provides a TypeScript client for interacting with the [Superpowered AI](https://superpowered.ai/) API. It allows you to manage knowledge bases, documents, and chat interactions programmatically.

## Installation

```
npm install @shreyaans/superpowered-sdk
```

## Usage

First, import and instantiate the client:

```typescript
import { SuperpoweredApiClient } from "@shreyaans/superpowered-sdk ";

const client = new SuperpoweredApiClient("your-username", "your-password");
```

The client provides access to several APIs:

- `knowledgeBase`: Manage knowledge bases
- `document`: Handle documents within knowledge bases
- `chat`: Interact with chat threads

### Knowledge Base Operations

```typescript
// List knowledge bases
const { knowledge_bases } = await client.knowledgeBase.listKnowledgeBases();

// Create a new knowledge base
const newKB = await client.knowledgeBase.createKnowledgeBase({
  title: "My Knowledge Base",
  description: "A sample knowledge base",
});

// Query knowledge bases
const results = await client.knowledgeBase.queryKnowledgeBases({
  query: "What is machine learning?",
  knowledge_base_ids: ["kb_id_1", "kb_id_2"],
});
```

### Document Operations

```typescript
// List documents in a knowledge base
const { documents } = await client.document.listDocuments("kb_id");

// Upload a document
const uploadResult = await client.document.uploadDocument(
  "kb_id",
  fileBuffer,
  "document.pdf"
);

// Create a document from raw text
const textDoc = await client.document.createDocumentWithRawText("kb_id", {
  content: "This is the document content.",
  title: "Sample Document",
});
```

### Chat Operations

```typescript
// Create a chat thread
const thread = await client.chat.createChatThread({
  title: "Support Chat",
  knowledge_base_ids: ["kb_id_1"],
});

// Get a chat response
const response = await client.chat.getChatThreadResponse(thread.id, {
  message: "Hello, how can you help me?",
});
```

## API Reference

For detailed information on all available methods and their parameters, refer to the TypeScript definitions in the source code.

## Error Handling

The client methods will throw errors for network issues or API errors. Always wrap API calls in try/catch blocks for proper error handling.

```typescript
try {
  const result = await client.knowledgeBase.listKnowledgeBases();
  // Handle successful response
} catch (error) {
  // Handle error
  console.error("An error occurred:", error);
}
```

## Contributing

Contributions are welcome! Please submit pull requests with any enhancements, bug fixes, or documentation improvements.

## License

MIT License
npm package: @shreyaans/tokenlist
Description: Get details about ERC20 tokens from different Chains
Author: Shreyaan Seth
Latest version: 0.2.1

# ERC20 TokenList 

Get details about ERC20 tokens from different Chains

## Installation
 
tokenlist is available on the npm registry. You can install it using the following command
 
### Install using npm 

```bash
  npm i @shreyaans/tokenlist
```
### Install using yarn

```bash 
  yarn add @shreyaans/tokenlist
``` 
## Demo
Made a small react app to quickly test out this package. Made this react app by npm installing this package only 

React app - [https://token-list-test.netlify.app/](https://token-list-test.netlify.app/)


## Usage

### Tokens object
You can use tokens object to get the name, symbol, and address of a token from available chains

```ts
import { tokens } from "@shreyaans/tokenlist";

tokens.chainName.tokenSymbol
````

#### Example

```ts
    import { tokens } from "@shreyaans/tokenlist";
    const usdc = tokens.homestead.USDC; // This is a JS object

    console.log(usdc); //  return the following
    // {
    //     name: "USD Coin",
    //     symbol: "USDC",
    //     address: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
    // }

    const wmatic = tokens[137].WMATIC; // Also chainId(s) are accepted 

    console.log(wmatic); // return the following
    // {
    //     name: "Wrapped Matic",
    //     symbol: "WMATIC",
    //     address: "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270"
    // }

    // The format is tokens.name.symbol
    // where the name is homestead, polygon, bsc, avalanche, cleo and ftm
    // Can also accept chainId of chain
```

### isTokenInChain function
You can use isTokenInChain function to quickly check whether tokens object has a token in a given chain or not

```ts
import { isTokenInChain } from "@shreyaans/tokenlist";

isTokenInChain(chainName, tokenSymbol)
````

#### Example

```ts
    import { isTokenInChain } from "@shreyaans/tokenlist";
   
    console.log(isTokenInChain('homestead', 'USDC')); //  returns true

    console.log(isTokenInChain('polygon', 'ABCDE')); // returns false

    // first argument is chain name second argument is token symbol
    
```

## Supported Chains

As of now homestead, polygon, bsc, avalanche and cleo chains are supported

#### Number of tokens in each chain

Polygon: 231 tokens

Ethereum: 150 tokens

Bsc (Binance Smart Chain): 208 tokens

Avalanche: 102 tokens

Cleo: 82 tokens

Ftm (Fantom) :100
npm package: @shreyanshsingh/react-native-audio-player
Description: audio player library for react native with rich feature controls and background audio support
Author: Shreyansh Singh
Latest version: 0.1.4

# `usePlayer` Hook

`usePlayer` is a custom React hook that provides comprehensive audio playback functionality for React Native applications. It allows you to control audio playback, including play, pause, stop, and seek (both forward and backward). The hook is designed to work with both Android and iOS using native modules for audio control and event handling.

---

## Features

- Play, pause, and stop audio.
- Seek forward and backward by a customizable interval.
- Tracks the progress of the audio playback.
- Supports both Android and iOS platforms.
- Auto-play feature on initialization (optional).
- Supports providing track metadata (title, artist, album, artwork).
- Efficient event handling for audio progress and state changes.
- Volume control.
- Looping and shuffling of tracks.
- Background playback support.
- Handling of audio interruptions (e.g., incoming calls).

---

## Components

### `AudioPlayer` Component

The `AudioPlayer` component is a prebuilt user interface that integrates seamlessly with the `react-native-audio-player` hook. It provides a ready-to-use audio player UI that can be easily customized and configured.

#### Features

- Prebuilt UI for audio playback control.
- Seamless integration with the `react-native-audio-player` hook.
- Customizable appearance and behavior.
- Displays track metadata (title, artist, album, artwork).
- Responsive design for both Android and iOS platforms.
- Volume control interface.
- Loop and shuffle controls.
- Background playback controls.

---

## Installation

Before using this hook, ensure that your project is set up to use native modules. You can install the `@shreyanshsingh/react-native-audio-player` package using npm or yarn:

```sh
npm install @shreyanshsingh/react-native-audio-player
```

---

## Usage

Here is a basic example of how to use the `react-native-audio-player` hook in your React Native application:

```jsx
import React from 'react';
import { View, Text } from 'react-native';
import { useAudioPlayer } from '@shreyanshsingh/react-native-audio-player';

const App = () => {
    const {
        play,
        pause,
        stop,
        seekForward,
        seekBackward,
        currentTrack,
        isPlaying,
        progress,
    } = useAudioPlayer();

    return (
        <View>
            <Text>Now Playing: {currentTrack.title}</Text>
            <Text>Artist: {currentTrack.artist}</Text>
            <Text>Progress: {progress}</Text>
            <Button title={isPlaying ? 'Pause' : 'Play'} onPress={isPlaying ? pause : play} />
            <Button title="Stop" onPress={stop} />
            <Button title="Seek Forward" onPress={seekForward} />
            <Button title="Seek Backward" onPress={seekBackward} />
        </View>
    );
};

export default App;
```

For more detailed usage and advanced configurations, refer to the official documentation.
npm package: @shreyas2124/demo-package
Description: demo
Author: Vihaa-Shreyas
Latest version: 1.0.2

# demo-package

demo

## Installation


```sh
npm install demo-package
```


## Usage


```js
import { multiply } from 'demo-package';

// ...

const result = await multiply(3, 7);
```


## Contributing

- [Development workflow](CONTRIBUTING.md#development-workflow)
- [Sending a pull request](CONTRIBUTING.md#sending-a-pull-request)
- [Code of conduct](CODE_OF_CONDUCT.md)

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
npm package: @shreyash1601/oopsify
Description: Play meme sounds automatically on terminal errors 🔊
Author: Shreyash Shrivastava
Latest version: 1.1.1

# 🔊 Oopsify CLI

<p align="center">
  <img src="https://github.com/Shreyash1601/oopsify/blob/master/oopsify.jpeg" alt="Oopsify Logo" width="320"/>
</p>

<p align="center">
  <b>Let your failures make the noise!!</b>
</p>

---

## 🚀 Features

* 🔊 Play meme sounds on terminal errors automatically
* 🎧 Choose your favorite meme sound
* 🎯 Interactive CLI with arrow-key selection
* 🎨 Styled error message with emoji
* ⚡ Lightweight and fun developer utility

---

## 📦 Installation

```bash
npm install -g @shreyash1601/oopsify-cli
```

---

## ⚙️ Setup (Required)

```bash
oopsify setup
```

👉 Restart your terminal after setup.

---

## 💥 Automatic Mode

After setup, any failed command will trigger:

* 🔊 Meme sound
* 😵 Styled error message

---

## 🎧 Usage

### List available sounds

```bash
oopsify list
```

### Set default sound

```bash
oopsify set
```

### Play sound manually

```bash
oopsify
```

---

## ⚠️ Compatibility

Currently supported environment:

* ✅ **Windows Terminal / VS Code Terminal**
* ✅ **PowerShell (required)**

---

### ❌ Not supported (yet)

* macOS Terminal
* Linux shells
* CMD (Command Prompt)
* Git Bash

👉 Support for macOS and Linux is planned in upcoming versions 🚀

---

## 🛠️ Troubleshooting

### 🔸 Sound not playing

* Ensure system audio is working
* Try opening `.wav` file manually
* Ensure `.wav` format:

  * PCM encoding
  * 16-bit
  * 44.1 kHz

---

### 🔸 `oopsify` command not working

```bash
npm install -g @shreyash1601/oopsify-cli
```

* Ensure npm global path is added to system PATH

---

### 🔸 Error detection not triggering

```bash
oopsify setup
```

* Restart terminal
* Ensure using **PowerShell** (not CMD)

---

### 🔸 PowerShell not detected

Install PowerShell:

👉 https://aka.ms/powershell-release?tag=stable

Verify:

```bash
pwsh
```

---

### 🔸 Setup not applied

```powershell
echo $PROFILE
```

Ensure it contains the `oopsify setup` block.

---

## 🧠 How it works

Oopsify hooks into the PowerShell prompt and detects failed commands using:

* `$?`
* `$LASTEXITCODE`
* `$Error`

When an error is detected → sound is triggered.

---

## 📁 Project Structure

```
oopsify-cli/
  bin/
    index.js
  sounds/
    *.wav
  assets/
    logo.png
```

---

## 🚀 Roadmap

* macOS support
* Linux support
* Random sound mode
* Volume control
* Custom sound upload

---

## 👨‍💻 Author

**Shreyash Shrivastava**

---

## 📄 License

MIT License
npm package: @shreyash21/ms
Description: A better time converter for your projects.
Author: Shreyash
Latest version: 2.1.0

# parse-ms

Parse ms is a Node js library to convert human-readable format into milliseconds and viceversa.

## Installation

Use the package manager **npm** to install parse-ms.
Type `npm install @shreyash21/ms`

```bash
npm install @shreyash21/ms
```

## Usage

```javascript
const ms = require('@shreyash21/ms');

ms("1 week and 23 days"); //return 2592000000
ms("2592000000", {short: true}); //return 30d
ms("5 days, 4hours and 3 minutes."); //return 446580000
ms("446580000", {short: true}); //return 5d 4h 3m
ms(446580000, {extended: true}); //return 5 days 4 hours 3 minutes
ms(446580000); //return { days: 5, hours: 4, minutes: 3, seconds: 0}
ms("-86400000"); //return {days: -1, hours: -0, minutes: -0, seconds: -0}
ms("- 1 day"); //return -86400000
ms("-21 days and 24 hours"); //returns -1900800000
//what about some more changed
ms("1.2 million", {type: "num"}); //return 1200000
ms("2.3 billion and 1.2 million", {type: "num"}); //return 2301200000
ms("1k", {type: "num"}); //return 1000
```

#### It supports almost every time units like 
###### For milliseconds:
 milliseconds, msecs, ms etc.
###### For seconds:
seconds, second, secs, sec, s etc.
###### For minutes:
minutes, mins, m etc.
###### For hours:
 hours, hrs, h etc.
###### For days:
days, day, d etc.
###### For weeks:
 weeks, week, w etc.
###### For years:
 years, year, yrs, y etc.


##### -ve values are also supported. As you see in above examples.

#### It also supports some daily life values like 2k

**For 1000:**
kilo, kilos, k etc.

**For million:**
millions, million, mil, m etc.

**For billion:**
billions, billion, bil, b etc.

And many more..... like gillion and trillion also supported.
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

I would love if you update my README.md file
## License
[MIT](https://choosealicense.com/licenses/mit/)
npm package: @shreyazz/genie
Description: Genie is an utility CLI which helps to setup the basic backend project for developers, by downloading the usual required packages. It also sets up the `server.js` file with boiler plate code to get the server up and running with just one command.
Author: Shreyas Pahune
Latest version: 1.1.1

# Genie 🧞

Genie is an utility CLI that makes the life of a developer easy by doing the boring and monotonous tasks.

[![Featured on Openbase](https://badges.openbase.com/js/featured/@shreyazz/genie.svg?token=cGD1paktfWnt6BmYZnlkb2+jDnCYlvXFjtH9CzIToUI=)](https://openbase.com/js/@shreyazz/genie?utm_source=embedded&amp;utm_medium=badge&amp;utm_campaign=rate-badge)

## What Genie can do for you 🔮

- Backend Builder
  - It helps to setup the basic backend project for developers, by downloading the usual required packages. It also sets up the `server.js` file with boiler plate code to get the server up and running with just one command.
- Components / Pages Creator 
  - It helps you to build React Funtional Components/Pages and initialise them with a `.css` and a `.jsx` file with boilerplate code in it. 
- React Cleaner
  - It let's you clean a react app with unnecessary files and add important folders.
  - Unnecessary Files include:
    - logo.svg
    - reportWebVitals.js
    - App.test.js
  - Important folders include:
    - assets
    - components
    - pages

## How to use Genie ⚡️

- Backend Builder Flag 
  - Run `npx @shreyazz/genie --port <port> --backend` to setup a basic backend directly.
- Page Builder
  - Run `npx @shreyazz/genie --page <PageName>` in the root directory to build React Components (different pages) in `src/pages/` folder.  
- Select Options
  - Run `npx @shreyazz/genie --opts` to view different options and select from them. These options include `React Cleaner` and `Backend Builder`.


## Future Updates ⚙️

- MongoDB Schema Generator
npm package: @shreyazz/random_pass
Description: A package which let's you generate random passwords with options
Author: Shreyas Pahune
Latest version: 1.0.1

# Random-Pass-Package

This is package which lets you generate random passwords with options like, length and should it contain: numbers / letters / speacial chars.

<!-- [![download badge](https://badgen.net/npm/dt/@shreyazz/random_pass/?color=blue&icon=npm&labelColor=black&scale=1.1)](https://www.npmjs.com/package/@shreyazz/random_pass) -->

## Installation and Importing

1. Install the package

```bash
npm i @shreyazz/random_pass
```

2. Import package

```js
const randomPass = require("@shreyazz/random_pass");
```

or

```js
import randomPass from "@shreyazz/random_pass";
```

---

## Functions

There are two functions in the package. (Here I'm assuming that the package is imported in `randomPass` variable)

- .info()
- .generateRandomPass()

1. **randomPass.info()**
   It console logs the information about the package and how to use it.
   <br />
2. **randomPass.generateRandomPass()**
   This function takes one parameter, an object. That object contains two properties. Length (Length of the password) and shouldContain (array of things you want to include in the password like, numbers or special chars)

   ```js
   const password = randomPass.generateRandomPass({
     length: 10,
     shouldContain: ["numbers", "letters", "spl-chars"],
   });
   ```

---

## Stuff to know before usage.

- `shouldContain` array must have at least two options.
- To include:
  - Letters: `letters`
  - Numbers: `numbers`,
  - Speacial Characters: `spl-chars`

Example: If I want to include only Numbers and Special Characters

```js
const password = randomPass.generateRandomPass({
  length: 5,
  shouldContain: ["numbers", "spl-chars"],
});
```

---

Made with ❤️ by [Shreyas Pahune](https://github.com/shreyazz)
npm package: @shreyazz/react-cleaner
Description: A npx command which helps you delete all the unnecessary files and add the necessary folders to your react-app.
Author: Shreyas Pahune
Latest version: 1.0.13

# React-Cleaner

React-Cleaner is a utilitarian npx command which let's you delete all the unnecessary files from the create-react-app's defaultfolder structure and add all the important directories.

Files which would be deleted:

- reportWebVitals.js
- app.test.js
- setupTest.js
- logo.svg

Folders/Directories which would be added:

- assets
- components
- pages

## Usage

> npx react-cleaner
npm package: @shreyjain1994/fancy-cars-api-typings
Description: Typescript definitions for models returned by the API of fancycars.ca
Author: Shrey Jain
Latest version: 0.0.1

# Note for self

This is part of a group of repos that make up a project
that needed to be completed as part of a job interview
process.

# About

Typescript definitions for models returned by the API of fancycars.ca

# Installation

```
npm install --save-dev @shreyjain1994/fancy-cars-api-typings
```
npm package: @shreyjain1994/fancy-cars-constants
Description: Constants for fancycars.ca
Author: Shrey Jain
Latest version: 0.0.1

# Note for self

This is part of a group of repos that make up a project
that needed to be completed as part of a job interview
process.

# About

Constants for the components of the fancycars.ca site.

# Installation

```
npm install --save-dev @shreyjain1994/fancy-cars-constants
```
npm package: @shreymahendru/vite-plugin-n-app-vuetify
Description: A Vite plugin for treeshaking Vuetify components and more
Author: Kael Watts-Deuchar
Latest version: 4.0.0

# vite-plugin-vuetify

<div align="center">
  <a href="https://www.patreon.com/kaelwd">
    <img src="https://c5.patreon.com/external/logo/become_a_patron_button.png" alt="Become a Patron" />
  </a>
  <br>
  <a href="https://opencollective.com/vuetify">
    <img src="https://opencollective.com/static/images/become_sponsor.svg" alt="Donate to OpenCollective">
  </a>
</div>

## Automatic imports
```js
// vite.config.js
plugins: [
  vue(),
  vuetify({ autoImport: true }), // Enabled by default
]
```
```js
// plugins/vuetify.js
import 'vuetify/styles'
import { createVuetify } from 'vuetify'

export default createVuetify()
```

### Include labs components
```js
// vite.config.js
plugins: [
  vue(),
  vuetify({
    autoImport: { labs: true }
  }),
]
```

### Ignoring components or directives
```js
// vite.config.js
plugins: [
  vue(),
  vuetify({ 
    autoImport: {
      ignore: [
        'VAlert', // Component name
        'Ripple', // Directive name
      ]
    }
  }), 
]
```
Note `ignore` values are case-sensitive

## Style loading
### Customising variables
```js
// vite.config.js
plugins: [
  vue(),
  vuetify({ styles: { configFile: 'src/settings.scss' } }),
]
```
```js
// plugins/vuetify.js
import 'vuetify/styles'
import { createVuetify } from 'vuetify'

export default createVuetify()
```
```scss
// settings.scss
@use 'vuetify/settings' with (
  $color-pack: false,
  $utilities: false,
);
```

`settings.scss` can be used in your own components to access vuetify's variables.

### Remove all style imports
```js
// vite.config.js
plugins: [
  vue(),
  vuetify({ styles: 'none' }),
]
```
```js
// plugins/vuetify.js
import { createVuetify } from 'vuetify'

export default createVuetify()
```

### Import sass from source
Vuetify 3 uses precompiled css by default, these imports can optionally be modified to point to sass files instead:

```js
// vite.config.js
plugins: [
  vue(),
  vuetify({ styles: 'sass' }),
]
```

## Image loading

https://github.com/vitejs/vite-plugin-vue/blob/main/packages/plugin-vue/README.md#asset-url-handling

```js
// vite.config.js
import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'

export default {
  plugins: [
    vue({ 
      template: { transformAssetUrls }
    }),
    vuetify(),
  ],
}
```
npm package: @shreyravi/decrypt-caesar
Description: Help decrypt Caesar shift cipher-encrypted strings with an unknown shift value.
Latest version: 2.1.0

# @shreyravi/decrypt-caesar
[![npm (scoped)](https://img.shields.io/npm/v/@shreyravi/decrypt-caesar.svg)](https://www.npmjs.com/package/@shreyravi/decrypt-caesar)
[![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/@shreyravi/decrypt-caesar.svg)](https://www.npmjs.com/package/@shreyravi/decrypt-caesar)

A package to help decrypt Caesar shift cipher-encrypted strings with an unknown shift value.

## Install
```
$ npm install @shreyravi/decrypt-caesar
```

## Usage
```
const decryptCaesar = require("@shreyravi/decrypt-caesar");

decryptCaesar("Fdhvdu Flskhu Xqhqfubswhg");
```
Unencrypted: "Caesar Cipher Unencrypted" with shift of 3,

Thus, the _third_ element of resulting array is the correct decrypted result.
```
decryptCaesar("Fdhvdu Flskhu Xqhqfubswhg") => [
    0:  Fdhvdu Flskhu Xqhqfubswhg,
    1:  Ecguct Ekrjgt Wpgpetarvgf,
    2:  Dbftbs Djqifs Vofodszqufe,
    3:  Caesar Cipher Unencrypted,
    4:  Bzdrzq Bhogdq Tmdmbqxosdc,
    5:  Aycqyp Agnfcp Slclapwnrcb,
    6:  Zxbpxo Zfmebo Rkbkzovmqba,
    7:  Ywaown Yeldan Qjajynulpaz,
    8:  Xvznvm Xdkczm Pizixmtkozy,
    9:  Wuymul Wcjbyl Ohyhwlsjnyx,
    10: Vtxltk Vbiaxk Ngxgvkrimxw,
    11: Uswksj Uahzwj Mfwfujqhlwv,
    12: Trvjri Tzgyvi Levetipgkvu,
    13: Squiqh Syfxuh Kdudshofjut,
    14: Rpthpg Rxewtg Jctcrgneits,
    15: Qosgof Qwdvsf Ibsbqfmdhsr,
    16: Pnrfne Pvcure Harapelcgrq,
    17: Omqemd Oubtqd Gzqzodkbfqp,
    18: Nlpdlc Ntaspc Fypyncjaepo,
    19: Mkockb Mszrob Exoxmbizdon,
    20: Ljnbja Lryqna Dwnwlahycnm,
    21: Kimaiz Kqxpmz Cvmvkzgxbml,
    22: Jhlzhy Jpwoly Bulujyfwalk,
    23: Igkygx Iovnkx Atktixevzkj,
    24: Hfjxfw Hnumjw Zsjshwduyji,
    25: Geiwev Gmtliv Yrirgvctxih
]
```
Index of result in array is equal to shift of Caesar cipher.

If shift is known, then just index result with shift value:
```
const shift = 3; // known shift
decryptCaesar("Fdhvdu Flskhu Xqhqfubswhg")[shift] => "Caesar Cipher Unencrypted"
```

## License
MIT License. Open Source. Contact [author](mailto:shrey@shreyravi.com) with any concerns.