open-index/open-npm huggingface dataset:
npm package: @sarshay/react-utils
Description: React utilities for content management
Latest version: 0.1.6

# @sarshay/react-utils

A comprehensive collection of React utilities and components for modern web applications, featuring content management, viewport detection, local storage handling, and URL query parameter management.


## 🌐 Homepage

**[📖 Visit Documentation & Examples](https://sarshay.github.io/react-utils)**
npm package: @sarsoo/finlib
Description: Quant finance functions implemented in Rust
Latest version: 0.0.10

# finlib

[![Build Binaries](https://github.com/Sarsoo/finlib/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/Sarsoo/finlib/actions/workflows/build.yml)

Some quantitative finance functionality written in Rust and consumable from many higher-level languages.

## Derivatives Pricing
- Options
  - Black-Scholes
    - Prices
    - Greeks

## Risk
- Value-at-Risk
  - Historical
  - Variance-Covariance (Parametric)
    - Single Asset
    - Portfolio

# FFI

- C++
  - FFI header files for C++ are generated automatically during build by [cbindgen](https://github.com/mozilla/cbindgen). 
- .NET
  - FFI wrapper code for C# tareting .NET Standard 2.0 is generated automatically using [csbindgen](https://github.com/Cysharp/csbindgen/).
- Python
  - An adapter library for Python is generated usign [PyO3](https://github.com/PyO3/pyo3)
- WASM (Js)
  - A Javascript library is generated using [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen)

## [.NET](./finlib-ffi)

```bash
cargo build
cd FinLib.NET
dotnet build
```

## [Python](./pyfinlib)

```bash
cd pyfinlib
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
maturin develop
```

## [WASM](finlib-wasm)

```bash
cd finlib-wasm
wasm-pack build
```
npm package: @sarthakagrawal/strapi-plugin-ckeditor5
Description: Replace Strapi default WYSIWYG editor with enhanced build of CKEditor 5 and oembeded media
Author: Sarthak Agrawal
Latest version: 1.1.3

# strapi-plugin-ckeditor5

[strapi-plugin-ckeditor5](https://www.npmjs.com/package/strapi-plugin-ckeditor5) plugin for strapi v4.

## How to install

Go to your strapi project and execute

```bash
npm i @sarthakagrawal/strapi-plugin-ckeditor5
```

Then rebuild your strapi project using

```bash
npm run strapi build
```
npm package: @sarthakb009/prompt-input
Description: Prompt Input
Author: Sarthak
Latest version: 1.0.4

# PromptInput

A modern, accessible React component for text input with send, attach, and voice action buttons. Built with TypeScript and GSAP animations.

## Installation

```bash
npm install @sarthakb009/prompt-input
```

## Peer Dependencies

Make sure you have these installed in your project:

```bash
npm install react react-dom lucide-react gsap @gsap/react
```

Required versions:
- `react` ^18.0.0
- `react-dom` ^18.0.0
- `lucide-react` ^0.294.0
- `gsap` ^3.13.0
- `@gsap/react` ^2.1.2

## Usage

### Basic Example

```tsx
import { PromptInput } from '@sarthakb009/prompt-input';

function App() {
  const handleSend = (message: string) => {
    console.log('Message sent:', message);
  };

  return (
    <PromptInput
      placeholder="Type a message..."
      onSend={handleSend}
      onAttach={() => console.log('Attach clicked')}
      onVoice={() => console.log('Voice clicked')}
    />
  );
}
```

### Controlled Mode

```tsx
import { PromptInput } from '@sarthakb009/prompt-input';
import { useState } from 'react';

function App() {
  const [value, setValue] = useState('');

  return (
    <PromptInput
      value={value}
      onChange={setValue}
      onSend={(message) => {
        console.log('Sending:', message);
        setValue('');
      }}
    />
  );
}
```

## Props

| Prop | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| `placeholder` | `string` | `"Ask anything..."` | No | Placeholder text for the input field |
| `value` | `string` | `undefined` | No | Controlled value. When provided, component becomes controlled |
| `onChange` | `(value: string) => void` | `undefined` | No | Callback fired when input value changes |
| `onSend` | `(value: string) => void` | `undefined` | No | Callback fired when message is sent (Enter key or send button) |
| `onAttach` | `() => void` | `undefined` | No | Callback fired when attach button is clicked |
| `onVoice` | `() => void` | `undefined` | No | Callback fired when voice button is clicked |
| `className` | `string` | `""` | No | Additional CSS classes to apply to the container |

## Features

- ✅ **Controlled & Uncontrolled**: Supports both controlled and uncontrolled modes
- ✅ **Keyboard Support**: Press Enter to send, Shift+Enter for new line
- ✅ **Smooth Animations**: GSAP-powered entrance animations
- ✅ **Accessible**: Proper ARIA labels and keyboard navigation
- ✅ **TypeScript**: Full TypeScript support with exported types
- ✅ **Customizable**: Style override via className prop

## TypeScript

The component is written in TypeScript and exports all types:

```tsx
import { PromptInput, PromptInputProps } from '@sarthakb009/prompt-input';

const props: PromptInputProps = {
  placeholder: "Type here...",
  onSend: (value) => console.log(value),
};
```

## License

MIT
npm package: @sarthakb009/reasoning
Description: Reasoning
Author: Sarthak
Latest version: 1.0.0

# Reasoning

Reasoning - A React component built with TypeScript and Tailwind CSS.

## Installation

```bash
npm install @sarthakb009/reasoning
```

## Usage

```tsx
import { Reasoning } from '@sarthakb009/reasoning';

function App() {
  return <Reasoning />;
}
```

## Peer Dependencies

- react ^18.0.0
- react-dom ^18.0.0
- lucide-react ^0.294.0

## License

MIT
npm package: @sarthakb009/shimmer
Description: Shimmer
Author: Sarthak
Latest version: 1.0.0

# Shimmer

Shimmer - A React component built with TypeScript and Tailwind CSS.

## Installation

```bash
npm install @sarthakb009/shimmer
```

## Usage

```tsx
import { Shimmer } from '@sarthakb009/shimmer';

function App() {
  return <Shimmer />;
}
```

## Peer Dependencies

- react ^18.0.0
- react-dom ^18.0.0
- lucide-react ^0.294.0

## License

MIT
npm package: @sarthakb009/suggestion
Description: Suggestion
Author: Sarthak
Latest version: 1.0.0

# Suggestion

Suggestion - A React component built with TypeScript and Tailwind CSS.

## Installation

```bash
npm install @sarthakb009/suggestion
```

## Usage

```tsx
import { Suggestion } from '@sarthakb009/suggestion';

function App() {
  return <Suggestion />;
}
```

## Peer Dependencies

- react ^18.0.0
- react-dom ^18.0.0
- lucide-react ^0.294.0

## License

MIT
npm package: @sarthakb009/tool
Description: Tool
Author: Sarthak
Latest version: 1.0.0

# Tool

Tool - A React component built with TypeScript and Tailwind CSS.

## Installation

```bash
npm install @sarthakb009/tool
```

## Usage

```tsx
import { Tool } from '@sarthakb009/tool';

function App() {
  return <Tool />;
}
```

## Peer Dependencies

- react ^18.0.0
- react-dom ^18.0.0
- lucide-react ^0.294.0

## License

MIT
npm package: @sarthakk04/slugify-url
Description: 🔗 Convert any string into a clean, URL-friendly slug.
Latest version: 1.4.2

# slugify-url

🔗 Convert any string into a clean, URL-friendly slug.

## 📦 Installation

```bash
npm install @sarthakk04/slugify-url
```

🛠 Usage

const slugify = require('@sarthakk04/slugify-url');

console.log(slugify("Top 10 JavaScript Tricks!"));
// Output: "top-10-javascript-tricks"
npm package: @sarthakkimtani/libjwt
Description: JWT Library for Node.js
Author: Sarthak Kimtani
Latest version: 1.0.3

# libjwt

**libjwt** is a lightweight library for creating and validating JSON Web Tokens (JWT) using the HS256 algorithm. It provides a simple interface for encoding, decoding, and validating JWTs, making it easy to integrate secure authentication into your Node.js applications.

## Features

- **HS256 Algorithm:** Utilizes the HS256 (HMAC with SHA-256) algorithm for JWT signing and verification.
- **Simple API:** Easily encode, decode, and validate JWTs.
- **Custom Payloads:** Supports custom payload data with standard JWT claims like `iat` (issued at) and `exp` (expiration).

## Installation

Install the library using npm:

```bash
npm install @sarthakkimtani/libjwt
```

## Usage

### Importing the Library

To use the library, import the necessary functions:

```javascript
import { encode_jwt, decode_jwt, validate_jwt } from "@sarthakkimtani/libjwt";
```

### Encoding a JWT

Create a JWT with a secret, payload, and an optional time-to-live (TTL) in seconds (default is 900 seconds or 15 minutes):

```javascript
const secret = "your-secret-key";
const payload = { id: "user123", role: "admin" };

const token = encode_jwt(secret, payload, 3600); // TTL is 1 hour
console.log("Generated JWT:", token);
```

### Decoding a JWT

Decode a JWT to extract its payload. The function returns an object containing the `id`, full `payload`, and `expires_at` date:

```javascript
const decoded = decode_jwt(secret, token);
console.log("Decoded JWT:", decoded);
```

### Validating a JWT

Check if a JWT is valid by verifying its signature and expiration. Returns `true` if the token is valid, otherwise `false`:

```javascript
const isValid = validate_jwt(secret, token);
console.log("Is the JWT valid?", isValid);
```

## API Reference

### `encode_jwt(secret: string, payload: JWTPayload, ttl?: number): string`

- **secret**: The secret key used to sign the JWT.
- **payload**: The payload to include in the JWT. This can contain any custom claims.
- **ttl**: Optional. Time-to-live in seconds. Defaults to 900 seconds (15 minutes).

### `decode_jwt(secret: string, jwt: string): DecodedJWT`

- **secret**: The secret key used to sign the JWT.
- **jwt**: The JWT string to decode.

Returns an object containing the decoded `id`, `payload`, and `expires_at` date.

### `validate_jwt(secret: string, jwt: string): boolean`

- **secret**: The secret key used to sign the JWT.
- **jwt**: The JWT string to validate.

Returns `true` if the JWT is valid (correct signature and not expired), otherwise `false`.

## Demo

A demo of this project is available in the `demo` folder. The demo includes practical examples of how to use the library, demonstrating its functionality in real-world scenarios.

## License

This library is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.

## Author

**Sarthak Kimtani**

Feel free to contribute to the project or open issues if you encounter any problems!