open-index/open-npm huggingface dataset:
npm package: @nitestack/tnrpc
Description: Writing type-safe route handlers, server actions and fetching type-safe data
Latest version: 0.1.4
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# tNRPC - Typescript Next.js 13 Remote Procedure Call

Writing type-safe route handlers, server actions and fetching type-safe data

`npm install @nitestack/tnrpc`

## Validators

### Zod

- `npm install zod`

### Yup

- `npm install yup`

And more coming soon...

## Initialize tNRPC

```ts
// lib/tnrpc.ts
import { createTNRPC } from "@nitestack/tnrpc";

export const { tNRH, tNSA } = createTNRPC(
  {
    baseUrl: "http://localhost:3000"
  },
  async () => ({}) //Context
);
```

## Route Handler

```ts
// app/api/example/route.ts
import { tNRH } from "@/lib/tnrpc";
import { TNRHError } from "@nitestack/tnrpc/error";
import { z } from "zod";

export const { GET, tNRHFetch: getExample } = tNRH.get(
  z.object({ text: z.string() })
)(
  //Type-safe
  ({ input, request, context }) => {
    return input.text;
  },
  {
    url: "/api/example"
  }
);
```

### Page

```tsx
// app/page.tsx
import { getExample } from "@/app/api/example/route";

async function getData() {
  const res = await getExample({ text: "Hello from Server Component!" });
  return res.json();
}

export default async function ServerComponent() {
  const data = await getData();
  return <pre>{JSON.stringify(data)}</pre>;
}
```

## Server Actions (alpha)

```tsx
// actions/example.ts
"use server";

import { tNSA } from "@/lib/tnrpc";

import { z } from "zod";

export const getExample = tNSA(z.string())(({ input, context }) => {
  return input;
});
```

### Client Component

```tsx
// app/page.text
"use client";

import { useTNSA } from "@nitestack/tnrpc/client";
import { getExample } from "@/actions/example";

export default function ClientComponent() {
  const { data, error, loading, mutate, success } = useTNSA(getExample);

  return (
    <>
      {loading && <p>Pending...</p>}
      <button onClick={() => mutate("Call Server Action")}>
        Call Server Action
      </button>
      <button onClick={() => mutate("Another button to call Server Action")}>
        Another button to call Server Action
      </button>
      {success && JSON.stringify(data)}
    </>
  );
}
```
npm package: @nithin-sivakumar/mail-sender
Description: A simple utility for sending emails using Gmail's SMTP server via Nodemailer.
Author: Nithin Sivakumar
Latest version: 1.0.1

# Nodemailer Mail Sender

A simple utility for sending emails using Gmail's SMTP server via Nodemailer.

## Installation

You can install this package using npm:

```bash
npm install nodemailer-mail-sender
```

## Usage

1. **Configure the transporter with your Gmail credentials:**

```javascript
import { config, sendMail } from "nodemailer-mail-sender";

// Configure with your Gmail email and app password
config("your-email@gmail.com", "your-app-password");
```

> **Note:** You can generate an [App Password for Gmail](https://support.google.com/accounts/answer/185833?hl=en) if you have 2-Step Verification enabled on your Google account.

2. **Send an email:**

Once the transporter is configured, you can use the `sendMail` function to send an email.

```javascript
sendMail(
  "recipient@example.com", // Recipient's email address
  "Email Subject", // Email Subject
  "<h1>Welcome!</h1><p>This is a test email.</p>" // HTML content of the email
);
```

### Default Parameters

- **Subject**: The default subject is `"Sent using Mail Sender"`.
- **Content**: The default content is `"Test Email"`.

You can override these parameters when calling `sendMail`.

## Example

Here is a full example showing how to send an email:

```javascript
import { config, sendMail } from "nodemailer-mail-sender";

// Configure the transporter with your Gmail credentials
config("your-email@gmail.com", "your-app-password");

// Send an email with custom subject and content
sendMail(
  "recipient@example.com",
  "Welcome to My Service",
  "<h1>Hello!</h1><p>This is your welcome email.</p>"
);
```

## Features

- Simple configuration using Gmail email and app password.
- Uses Nodemailer to send emails over secure connections (TLS).
- Easily configurable to send emails using any SMTP service.
npm package: @nithin1712/mac-focus-window
Description: Focus a window and bring it to the front on macOS
Author: George Karagkiaouris
Latest version: 1.0.0

# mac-focus-window

> Focus a window and bring it to the front on macOS

Requires [accessibility permissions](https://www.applegazette.com/mac/what-are-accessibility-permissions-all-about/).

Requires macOS 10.12 or later. macOS 10.13 or earlier needs to download the [Swift runtime support libraries](https://support.apple.com/kb/DL1998).

## Install

```
$ npm install mac-focus-window
```

## Usage

```js
const focusWindow = require('mac-focus-window');

if (focusWindow.isSupported && focusWindow.hasPermissions()) {
  focusWindow(12345);

  // true
} else {
  focusWindow.requestPermissions();
}
```

## API

### `focusWindow(windowNumber: number | string): Boolean`

Focus the given window and bring it to the front.

An error will be thrown if:
- Accessibility permissions are not enabled for the current app
- You provide `windowNumber` as a string, but it's not a number
- There is no window with the given number

Returns `true` if the window was focused successfully, and `false` otherwise.

#### `focusWindow.isSupported`

Will be `true` if the module is supported (based on macOS version).

#### `focusWindow.hasPermissions(): Boolean`

Check if the current app has accessibility permissions. This will not prompt the user with the system dialog.

Returns `true` if the app has permissions, and `false` otherwise.

#### `focusWindow.checkPermissions(): Boolean`

Same as `hasPermissions`, but it will present the user with the native permissions dialog.

**Notes:**
- The permissions dialog will only be shown if the app doesn't have permissions
- The user has to go into the System Preferences to give access, so if the app doesn't have permissions, this will return `false` immediately after presenting the dialog. You have to check again after the user has granted the permissions for this to be `true` (restart of the app not required)

## Related

- [mac-window-select](https://github.com/karaggeorge/mac-window-select) - Prompt the user to select a window on macOS, mimicking the native screenshot utility
- [mac-windows](https://github.com/karaggeorge/mac-windows) - Provide Information about Application Windows running

## License

MIT
npm package: @nithin554/common-utils
Description: common utility functions
Author: nithin554
Latest version: 1.0.4

# @nithin554/common-utils

[![npm version](https://img.shields.io/npm/v/@nithin554/common-utils.svg)](https://www.npmjs.com/package/@nithin554/common-utils)  
[![downloads](https://img.shields.io/npm/dm/@nithin554/common-utils.svg)](https://www.npmjs.com/package/@nithin554/common-utils)  
[![TypeScript](https://img.shields.io/badge/TypeScript-%E2%9C%93-blue)](https://www.typescriptlang.org/)  
[![Build Status](https://img.shields.io/github/actions/workflow/status/nithin554/common-utils/publish.yml?branch=main)](https://github.com/nithin554/common-utils/actions)

---

## 🚀 Overview

**@nithin554/common-utils** is a lightweight utility library for JavaScript and TypeScript providing reusable functions for strings, arrays, and more. Fully typed for TypeScript, easy to extend, and compatible with both Node.js and browser projects.

---

## 📦 Installation

### Using npm

```bash
npm install @nithin554/common-utils
npm package: @nithin93/encrypted-share
Description: A cross-platform CLI tool for securely sharing files and directories using AES-256-GCM encryption over TCP
Author: Nithin
Latest version: 1.0.0

# Encrypted Share CLI

A cross-platform CLI tool for securely sharing files and directories using AES-256-GCM encryption over TCP.

## Features

- **Secure**: Uses AES-256-GCM for authenticated encryption.
- **Cross-Platform**: Works on Windows, macOS, and Linux.
- **Versatile**: Send single files or entire directories.
- **Simple**: Minimal setup required.

## Installation

1. Clone the repository.
2. Install dependencies:
   ```bash
   npm install
   ```
3. Build the project:
   ```bash
   npm run build
   ```
   (Or use `npx tsc` if `npm run build` is not defined in package.json yet)

## Usage

The tool operates in two modes: `serve` (receiver) and `send` (sender).

### 1. Start the Server (Receiver)

Start the server to listen for incoming files.

```bash
node dist/cli.js serve --port 3000 --key <your-secret-key> --out ./received-files
```

**Options:**
- `-p, --port <number>`: Port to listen on (default: 3000).
- `-k, --key <string>`: Encryption key (required).
- `-o, --out <path>`: Directory to save received files (default: `./received-files`).
- `-c, --config <path>`: Path to configuration file.

### 2. Send Files (Sender)

Send a file or directory to the server.

```bash
node dist/cli.js send --target localhost:3000 --key <your-secret-key> ./path/to/files
```

**Options:**
- `-t, --target <host:port>`: Server address (required).
- `-k, --key <string>`: Encryption key (required).
- `-c, --config <path>`: Path to configuration file.

### Configuration File

You can also use a JSON configuration file (default: `~/.encrypted-share.json`) to avoid typing arguments every time.

```json
{
  "key": "my-super-secret-password",
  "server": "localhost:3000",
  "port": 3000,
  "outputDir": "./downloads"
}
```

## Development

- **Build**: `npx tsc`
- **Run**: `node dist/cli.js`
npm package: @nithish_atum/svg2react
Description: CLI: convert SVG files to React icon components (jsx/tsx) with SVGO + SVGR
Latest version: 1.0.2

# svg-to-react-icon

A simple CLI + API tool to convert **SVG files** into ready-to-use **React functional components**.  
Useful for creating your own icon library from raw SVG assets without manually wrapping them.

---

## ✨ Features

- 🛠 **Convert** any `.svg` file to a React component.
- ⚡ **Batch process** multiple SVGs at once.
- 🎯 Outputs **tree-shakable** ES modules.
- 💡 Supports **custom component name formatting**.
- 📦 Works in **Vite**, **CRA**, **Next.js**, etc.

---

## 📦 Installation

```bash
npm install -g svg-to-react-icon
# or
yarn global add svg-to-react-icon
npm package: @nithishdts001/theme-engine
Description: Professional Theme Management Module — React + TypeScript + MUI design token system
Latest version: 1.0.2


  # Theme Management module (V3)

  This is a code bundle for Theme Management module (V3). The original project is available at https://www.figma.com/design/m6fuQQPuKXq0HKQvGVhteZ/Theme-Management-module--V3-.

  ## Running the code

  Run `npm i` to install the dependencies.

  Run `npm run dev` to start the development server.